| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155852 | 张蔚林 | 字符串中最大的数字II | C++ | Accepted | 1 MS | 276 KB | 227 | 2026-06-14 10:52:25 |
#include<bits/stdc++.h> using namespace std; int main(){ char n[101]={}; cin>>n; int t=strlen(n),max=0; for(int i=0;i<t;i++){ if(n[i]=='.')continue; if(n[i]-'0'>=max)max=n[i]-'0'; } cout<<max; return 0; }