Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117670 常钰杰 字符串中最大的数字 C++ Accepted 1 MS 280 KB 280 2025-04-19 17:20:12

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { char str[12]; cin>>str; int i=0; char max='0'; while(str[i]!='\0') { if(str[i]>max) { max=str[i]; } i++; } cout<<max; return 0; }