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 1.00
C++ 1.00
C++14 1.00
C# 3.00
Go 3.00
Java 3.00
JavaScript 3.00
Objective-C 3.00
Perl 3.00
PHP 3.00
Python 3.00
Python3 3.00
Ruby 3.00
VB.Net 3.00

Problem Stats

315/687

Solve/Submission

Ranking

# User Language Timing
01 joy25896 Cpp14 0.00s
02 ronok_cse Cpp14 0.00s
03 Aman_khan Cpp14 0.00s
04 emrul Cpp14 0.00s
05 Ansarul_14 Cpp14 0.00s
06 Ronysplanet Cpp14 0.00s
07 ash12 Cpp14 0.00s
08 return_SS Cpp14 0.00s
09 MarufAhmed Cpp14 0.00s
10 jalal Cpp14 0.00s
11 Avijeet Cpp14 0.00s
12 Indro_BU Cpp14 0.00s
13 USB16 Cpp14 0.00s
14 TalukderMuhammad Cpp14 0.00s
15 White_Death Cpp14 0.00s
16 KratosR Cpp14 0.00s
17 golapraj Cpp14 0.00s
18 iftekher2283 Cpp14 0.00s
19 terminator_c Cpp14 0.00s
20 gulzar Cpp14 0.00s
21 Sojal Cpp14 0.00s
22 JubayerSohel Cpp14 0.00s
23 seyedssz Cpp14 0.00s
24 piyal_ict_mbstu Cpp14 0.00s
25 ProMAGFAT Cpp14 0.00s
26 Nurul_CSE Cpp14 0.00s
27 Sabuj_CSE Cpp14 0.00s
28 rezaul_karim Cpp14 0.00s
29 mir003 Cpp14 0.00s
30 Iqbal1013 Cpp14 0.00s
31 nurul_islam Cpp14 0.00s
32 Mehedi07 Cpp14 0.00s
33 maxhasan Cpp14 0.00s
34 gazi93 Cpp14 0.00s
35 jayed_al_hasan Cpp14 0.00s
36 Mr_KAJOL_JUST Cpp14 0.00s
37 The_Viper Cpp14 0.00s
38 abd007 Cpp14 0.00s
39 Nazmul0092 Cpp14 0.00s
40 Masum_ice Cpp14 0.00s
41 lazyfahim Cpp14 0.00s
42 muhaimin Cpp14 0.00s
43 CodeMechanix Cpp14 0.00s
44 giash_uddin Cpp14 0.00s
45 Snails_AR_Munna Cpp14 0.00s
46 deder Cpp14 0.00s
47 rafsandevs Cpp14 0.00s
48 Koushik54 Cpp14 0.00s
49 non_coder Cpp14 0.00s
50 Anubis Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support