| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 125022 | 罗锦墨 | 字符串中最大的数字II | C++ | Wrong Answer | 1 MS | 268 KB | 236 | 2025-07-13 09:51:39 |
#include<bits/stdc++.h> using namespace std; char n[100]; int main() { long long n; cin>>n; int max=0; if(n<0){ n = -1*n; } while(n>0){ if(max<n%10){ max =n%10; } n =n/10; } cout<<max; return 0; }
------Input------
1.0000007
------Answer-----
7
------Your output-----
1