题意: 数据范围:x<=10100 解法: 一开始英文题面读错了,以为f(x)是数位和... 观察到f(f(i))只是将末尾的0去掉, 那么i/f(f(i))=后导0的个数. 那么答案为x的长度. code: #include <bits/stdc++.h> using namespace std; signed main(){ int T;cin>>T; while(T--){ string s;cin>>s; cout<<s.size()<<endl; } return 0; }