Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119001 黄睿杰 字符串中最大的数字 C++ Accepted 1 MS 264 KB 187 2025-05-11 17:14:59

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[100]; int main(){ gets(a); char b=a[0]; for(int i=1;i<=100;i++){ if(a[i]>b) b=a[i]; } cout<<b-'0'; return 0; }