Submit | All submissions | Best solutions | Back to list |
DIGITCNT - Number of digits |
Given a number n, find the number of digits in it.
Input:
The first line consists of a natural number t, the number of test cases. For each test case, the first line consists of a natural number n.
Output:
For each test case, print the number of digits in the number.
Input Constraints:
1<=t<=100
1<=n<=10^100000
NOTE: Your code should not exceed 200 characters for this problem.
Sample Input:
3
1234
9999999999
9
Sample Output:
4
10
1
Added by: | cegprakash |
Date: | 2014-03-09 |
Time limit: | 0.5s |
Source limit: | 200B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: BF |