Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88763 倪士燊 字符串中最大的数字II C++ Accepted 1 MS 272 KB 252 2024-08-21 11:18:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char s[1001]; int main(){ cin >> s; int n = strlen(s); char mx = '\0'; for(int i=0;i<=n-1;i++){ if(s[i] > mx) { mx = s[i]; } } cout << mx; return 0; }