Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158451 汪明轩 字符串中最大的数字II C++ Time Limit Exceeded 1000 MS 268 KB 221 2026-08-21 21:54:25

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { double n; int max=0,s; cin>>n; s=n*10000; while(n){ if(s%10>max){ max=s%10; } s/=10; } cout<<max; return 0; }