| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 125025 | 陈华仁星 | 字符串中最大的数字II | C++ | Wrong Answer | 0 MS | 192 KB | 285 | 2025-07-13 09:52:23 |
#include <cstdio> #include <cstring> using namespace std; char a[100]; int main() { int num='0'; scanf("%s",a); int len=strlen(a); int i=0; if(a[0]=='-') { i=1; } for(i;i<len;i++) { if(a[i]>num) { num=a[i]; } } return 0; }
------Input------
214748.3647
------Answer-----
8
------Your output-----