Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157006 邓弘锐 字符串中最大的数字II C++ Accepted 1 MS 272 KB 239 2026-07-12 14:28:49

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char n[10000001]; int main(){ cin>>n; int len=strlen(n); char max='0'; for(int i=0;i<=len-1;i++){ if(max<n[i]){ max=n[i]; } } cout<<max; return 0; }