| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157625 | 汪明轩 | 字符串中最大的数字 | C++ | Time Limit Exceeded | 1000 MS | 264 KB | 241 | 2026-08-08 10:34:53 |
#include<iostream> using namespace std; int main(){ int a[13],n,i=0,max; cin>>n; while(n>0){ i++; a[i]=n%10; n/10; } max=a[1]; for(int j=1;j<=i;j++){ if(a[i]>max){ max=a[i]; } } cout<<max; return 0; }