| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62561 | 张誉腾 | 字符串中最大的数字 | C++ | Wrong Answer | 1 MS | 272 KB | 211 | 2023-12-24 12:09:03 |
#include<iostream> #include<cstring> using namespace std; int main(){ char n='0'; int b; char a[12]; b=strlen(a); cin>>a; for(int i=0;i<b;i++){ if(a[i]>n){ n=a[i]; } } cout<<n; }
------Input------
0
------Answer-----
0
------Your output-----