| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160054 | 邹金行 | 字符串中最大的数字 | C++ | Wrong Answer | 0 MS | 272 KB | 226 | 2026-09-12 14:29:07 |
#include<bits/stdc++.h> using namespace std; string s; int main() { cin>>s; cout<<s<<endl; int len=s.size(); char mx=s[0]; for(int i=1;i<len;i++){ if(s[i]>mx){ mx=s[i]; } } cout<<mx; return 0; }
------Input------
2147483647
------Answer-----
8
------Your output-----
2147483647 8