| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155565 | 张蔚林 | 统计字符数量 | C++ | Runtime Error | 1 MS | 276 KB | 227 | 2026-06-07 15:56:19 |
#include<bits/stdc++.h> using namespace std; int main() { char s[27]={}; int sum[1001]={},max=0; cin>>s; int i=0; for(char c='a';c<='z';c++){ if(max==sum[c]){ cout<<c<<' '<<max<<endl; break; } } return 0; }
Runtime Error:Segmentation fault