Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118995 黄睿杰 字符串中最大的数字 C++ Wrong Answer 1 MS 264 KB 182 2025-05-11 17:02:35

Tests(5/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[100]; int main(){ char b='0'; gets(a); for(int i=1;i<=100;i++){ if(a[i]>=b) b=a[i]; } cout<<b; return 0; }


Run Info:

------Input------
1
------Answer-----
1
------Your output-----
0