| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81525 | 王冠中 | 字符串中最大的数字II | C++ | Accepted | 2 MS | 280 KB | 291 | 2024-07-12 14:35:03 |
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char a[1000]={},b[1000]={},max='0'; cin>>a; int n=strlen(a); for(int i=0;i<n;i++){ if(a[i]=='.'){ continue; } if(a[i]>max){ max=a[i]; } }cout<<max; return 0; }