Run ID:102716
提交时间:2024-12-22 14:54:30
#include<iostream> #include<cstring> using namespace std; int main(){ char str[20],max; int n; cin>>str; n = strlen(str); max = str[0]; for(int i=1;i<n;i++){ if(max <= str[i]){ max = str[i]; } } n = max-'0'; cout<<n; return 0; }