Run ID:81514

提交时间:2024-07-12 14:30:44

#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'; }