Run ID:117670

提交时间:2025-04-19 17:20:12

#include<iostream> using namespace std; int main() { char str[12]; cin>>str; int i=0; char max='0'; while(str[i]!='\0') { if(str[i]>max) { max=str[i]; } i++; } cout<<max; return 0; }