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

Tests(1/10):


Code:

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


Run Info:

------Input------
0
------Answer-----
0
------Your output-----
-48