| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 91699 | sh25_shenpy | 202412GESP二级02 | C++ | 无测评数据 | 0 MS | 0 KB | 517 | 2026-06-14 14:47:21 |
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); // 加速读写,应对 1e5 数据 int n; cin >> n; int max_sum = 0; while (n--) { string s; cin >> s; int sum = 0; for (char c : s) { sum += c - '0'; } if (sum > max_sum) max_sum = sum; } cout << max_sum << endl; return 0; }