Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132868 郑景文 字符串中最大的数字 C++ Accepted 2 MS 276 KB 227 2025-10-12 14:59:03

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char N[10]; cin>>N; char a; for(int i=0;i<strlen(N);i++){ if(N[i]>a){ a=N[i]; } } cout<<a; return 0; }