Run ID:81518
提交时间:2024-07-12 14:33:03
#include<iostream> #include<cstring> using namespace std; int main(){ char a[100]; cin>>a; int mxx = 0; for(int i=0;i<strlen(a);i++){ if(a[i] > mxx){ mxx = a[i]; } } cout<<mxx - '0'; }