Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105462 林嘉乐 字符串中最大的数字 C++ Wrong Answer 1 MS 272 KB 208 2025-01-13 16:42:07

Tests(0/10):


Code:

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


Run Info:

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