https://www.luogu.org/problem/P1781
#include<bits/stdc++.h> using namespace std; int main() { int n,bianhao=-1; string a,piao="0"; cin>>n; for(int k=1; k<=n; k++) { cin>>a; if(a.length()>piao.length()||(a.length()==piao.length())&&(a>piao)) { piao=a; bianhao=k; } } cout<<bianhao<<endl<<piao; } //先比较位数,位数不同再直接比大小 //直接比大小不能正常输出,为撒??