Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62706 张江鹏 字符串中最大的数字 C++ Accepted 2 MS 276 KB 194 2023-12-24 18:05:59

Tests(10/10):


Code:

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