- P2's solution
P2's Solution
- @ 2025-9-4 21:59:14
众所周知,,其中 是 的数字位数。
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen("log.in", "r", stdin);
freopen("log.out", "w", stdout);
int cnt = 0;
char c = getchar();
while(c != '\n")
{
cnt++;
c = getchar();
}
printf("%d\n", cnt - 1);
return 0;
}