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