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 (1 \le T \le 10\,000): the number of cases to follow. Each of the following T lines contains an integer N (-10^6 < N < 10^6), 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

4
123
1
-12
0

Sample Output

3
1
2
1

Comments

There are no comments at the moment.