Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100129 杨登博 字符串中最大的数字 C++ Accepted 1 MS 280 KB 320 2024-12-02 21:07:15

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> using namespace std; int main(){ char n[1000],max='0'; int a; cin>>n; a=strlen(n); for(int i=0;i<a;i++){ if(n[i]>max) max=n[i]; } cout<<max; return 0; }