Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88751 陈昊然 字符串中最大的数字II C++ Accepted 1 MS 272 KB 209 2024-08-21 10:45:47

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[10000001],d=-2e9;; int main(){ cin>>a; int n=strlen(a); for(int i=0;i<=n-1;i++){ if(a[i]>d){ d=a[i]; } } cout<<d; return 0; }