DCP-34: Number of Digits Back to All Problems

Beginner Beginners Problems > Ad-hoc


Shakil always loves to fun with children. One day shakil asks his 5 years old cousin Nishi, to solve a problem. Shakil says “I will Give you an integer (0 – 1000). Now tells me, how many digits contain that integer? “ . Nishi is totally stuck in this problem. Can you help Nishi to make a smile on her little face? Input: ------ First line of the input will consist of an integer which represent the test case **T (0 < T <= 1001)**. Each test case contains an integer **X (0 <= X <= 1000)**. Output: ------- For every test case, print number of digits of **X**. Sample Input ------------ 2 1 30 Sample Output ------------- 1 2


Problem Setter:

Shakil Ahmed

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C/C++ 1.00
Java 3.00
C# 3.00
PHP 3.00

Problem Stats

185/362

Solve/Submission

Ranking

# User Language Timing
01 joy25896 Cpp 0.00s
02 ronok_cse Cpp 0.00s
03 Aman_khan Cpp 0.00s
04 ishrafislam2727 Cpp 0.00s
05 emrul Cpp 0.00s
06 Ansarul_14 Cpp 0.00s
07 Ronysplanet Cpp 0.00s
08 ash12 Cpp 0.00s
09 return_SS Cpp 0.00s
10 MarufAhmed Cpp 0.00s
11 jalal Cpp 0.00s
12 Avijeet Cpp 0.00s
13 Indro_BU Cpp 0.00s
14 USB16 Cpp 0.00s
15 TalukderMuhammad Cpp 0.00s
16 Uap_Amit Cpp 0.00s
17 KratosR Cpp 0.00s
18 golapraj Cpp 0.00s
19 maxhasan Cpp 0.00s
20 gazi93 Cpp 0.00s
21 jayed_al_hasan Cpp 0.00s
22 iftekher2283 Cpp 0.00s
23 terminator_c Cpp 0.00s
24 gulzar Cpp 0.00s
25 Sojal Cpp 0.00s
26 JubayerSohel Cpp 0.00s
27 seyedssz Cpp 0.00s
28 piyal_ict_mbstu Cpp 0.00s
29 The_Viper Cpp 0.00s
30 Kira Cpp 0.01s
31 burhan103335 Cpp 0.01s
32 Sharif_42 Cpp 0.01s
33 Ashish972 Cpp 0.01s
34 Tania PHP 0.03s
35 tanmoycsit CSharp 0.05s
36 ishtupeed Cpp 0.06s
37 kamolroy9943 Cpp 0.06s
38 abdurrahmanriyad Cpp 0.06s
39 Yeasin10A Cpp 0.07s
40 SkSaber Cpp 0.07s
41 Faridur Cpp 0.07s
42 Alamin_sheikh Cpp 0.07s
43 Sheikh_Fahad Cpp 0.07s
44 haasib Cpp 0.07s
45 Rana_EEE_DUET Cpp 0.07s
46 Sabbir2015 Cpp 0.07s
47 mahrahat Cpp 0.07s
48 ririyad Cpp 0.07s
49 Dinar Cpp 0.07s
50 Tanvir6364 Cpp 0.07s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support