BlueBook - Digits

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem types
BlueBook

Determine the number of digits in a given number. A negative number has the same number of digits as its absolute value: for example, 12 has 2 digits; the negative sign is not a digit.

Input Specification

The first line of input contains an integer T (1T10000): the number of cases to follow. Each of the following T lines contains an integer N (106<N<106), with no leading zeroes.

Output Specification

The number of digits in the integer given. Answers to the test cases should be printed in order.

Sample Input

Copy
4
123
1
-12
0

Sample Output

Copy
3
1
2
1

Comments

There are no comments at the moment.