| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62551 | 何睿哲 | 字符串中最大的数字 | C++ | Wrong Answer | 1 MS | 272 KB | 227 | 2023-12-24 11:53:03 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[11]={}; scanf("%s",a); int n=strlen(a),m=0; for(int i=0;i<n;i++){ if(a[i]>a[m]){ m=a[i]; } } cout<<(char)m; return 0; }
------Input------
2147483647
------Answer-----
8
------Your output-----
7