| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157628 | 汪明轩 | 字符串中最大的数字 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 241 | 2026-08-08 10:38:59 |
#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[j]>max){ max=a[j]; } } cout<<max; return 0; }