Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62699 邓昊源 字符串中最大的数字 C++ Accepted 1 MS 272 KB 228 2023-12-24 17:57:16

Tests(10/10):


Code:

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