fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. long long n,i=0;
  5. scanf("%;llg",&n);
  6. do
  7. {
  8. n/=10;i++;
  9. }
  10. while(n>0);
  11. printf("%llg", i);
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2164KB
stdin
12345
stdout
6.56136e-4950