Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112286 黎瑾萱 字符串中最大的数字 C++ Accepted 1 MS 276 KB 223 2025-03-09 11:42:22

Tests(10/10):


Code:

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