| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155987 | 杨金卓 | 字符串中最大的数字II | C++ | Wrong Answer | 1 MS | 272 KB | 273 | 2026-06-18 21:59:33 |
#include<bits/stdc++.h> using namespace std; char a[1000]; int main(){ cin>>a; for(int i=0;a[i]!='\0';i++){ if(a[i]=='.'){ a[i]=0; } } char s=a[0]; for(int i=0;a[i]!='\0';i++){ if(s<a[i]){ s=a[i]; } } cout<<s; return 0; }
------Input------
1.0000007
------Answer-----
7
------Your output-----
1