Run ID:82520
提交时间:2024-07-13 11:53:33
#include<bits/stdc++.h> using namespace std; string a; int main() { int max=0,x; cin>>a; for(int i=0;i<a.size();i++){ if(a[i]>max){ max = a[i]-1; x = i; } } cout<<x; return 0; }