Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62698 许铭锐 字符串中最大的数字 C++ Wrong Answer 1 MS 268 KB 204 2023-12-24 17:55:55

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[11]; int mx=0; cin>>a; int n=strlen(a); for(int i=0;i<n;i++){ if(a[i]>mx){ mx=i; } } cout<<a[mx]; return 0; }


Run Info:

------Input------
2147483647
------Answer-----
8
------Your output-----
7