Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146649 李折曦 字符串中最大的数字 C++ Accepted 1 MS 280 KB 212 2026-01-29 14:40:36

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ char n[11]; cin>>n; int m=n[0]-'0'; int i=0; while(n[i]!='\0'){ if(n[i]-'0'>m)m=n[i]-'0'; i++; } cout<<m<<endl; return 0; }