DCP-34: Number of Digits Back to All Problems

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 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

327/714

Solve/Submission

Ranking

# User Language Timing
01 jalal Cpp14 0.00s
02 ash12 Cpp14 0.00s
03 iftekher2283 Cpp14 0.00s
04 subhashis_cse Cpp14 0.00s
05 KIRIN_36 Cpp14 0.00s
06 Core_i14 Cpp14 0.00s
07 Saimum_140128 Cpp14 0.00s
08 Alamgir_Hossain Cpp14 0.00s
09 Nazmul0092 Cpp14 0.00s
10 emrul Cpp14 0.00s
11 muhaimin Cpp14 0.00s
12 ronok_cse Cpp14 0.00s
13 Masum_ice Cpp14 0.00s
14 bengal_tiger Cpp14 0.00s
15 maxhasan Cpp14 0.00s
16 gazi93 Cpp14 0.00s
17 lazyfahim Cpp14 0.00s
18 saiful130104 Cpp14 0.00s
19 atqrhmn Cpp14 0.00s
20 joy25896 Cpp14 0.00s
21 The_Viper Cpp14 0.00s
22 Aman_khan Cpp14 0.00s
23 deder Cpp14 0.00s
25 BugMechanic Cpp14 0.00s
26 Sojal Cpp14 0.00s
27 non_coder Cpp14 0.00s
28 pulak_ict_mbstu Cpp14 0.00s
29 Anubis Cpp14 0.00s
30 Peregrine_Falcon Cpp14 0.00s
31 rezaul_karim Cpp14 0.00s
32 afzalul Cpp14 0.00s
33 giash_uddin Cpp14 0.00s
34 Nurul_CSE Cpp14 0.00s
35 Sabuj_CSE Cpp14 0.00s
36 mrinmoi Cpp14 0.00s
37 abd007 Cpp14 0.00s
38 Indro_BU Cpp14 0.00s
39 feodorv C 0.00s
40 mahbubcse095 C 0.00s
41 Mr_KAJOL Cpp14 0.00s
42 Ansarul_14 Cpp14 0.00s
43 SHAHIDUL_VU_CSE Cpp14 0.00s
44 SyntaxError10 Cpp14 0.00s
45 gulzar Cpp14 0.00s
46 JubayerSohel Cpp14 0.00s
47 seyedssz Cpp14 0.00s
48 Mehedi07 Cpp14 0.00s
49 nurul_islam Cpp14 0.00s
50 KratosR Cpp14 0.00s
Feedback