Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129683 薛承谦 字符串相等判断 C++ Wrong Answer 1 MS 268 KB 220 2025-09-01 20:30:38

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ long long n; int i=0; cin>>n; if(n<0){ n/=-1; } while(n){ if(n%10>i){ i=n%10; } n/=10; } cout<<i; return(0); }


Run Info:

------Input------
9KKt2LEjCIM5UVUI3oG4gMD8 9KKt2LEjCIM5UVUI3oG4gMD8
------Answer-----
yes
------Your output-----
9