| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157675 | Kevin | 字符串中最大的数字 | C++ | Wrong Answer | 1 MS | 268 KB | 204 | 2026-08-15 09:40:20 |
#include<bits/stdc++.h> using namespace std; int main() { long long a; cin>>a; int max=0; while(a){ int y=a%10; if(y>max){ max=y; } a/=10; } cout<<max; return 0; }
------Input------
-987654321
------Answer-----
9
------Your output-----
0