| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82462 | 石茂诤 | 字符串中最大的数字 | C++ | Wrong Answer | 1 MS | 272 KB | 200 | 2024-07-13 11:32:31 |
#include<bits/stdc++.h> using namespace std; int m=0; string a; int main(){ getline(cin,a); for(int i=1;i<=a.length();i++){ if(a[i]>m){ m=a[i]-'0'; } } cout<<m; return 0; }
------Input------
2147483647
------Answer-----
8
------Your output-----
7