Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160075 李昱龙 字符串中最大的数字II C++ Accepted 1 MS 284 KB 209 2026-09-12 14:36:21

Tests(10/10):


Code:

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