# DCP-191: Counting Multiples Back to All Problems

Easy Math > Number Theory

Oishi will give you 2 integers N & K. You have to tell her how many N digit counting numbers are divisible by K. Suppose for N = 2 and K = 10 , we see that the 2 digits numbers are from 10 to 99 and only 9 of them is divisible by 10. So the answer is 9. Input: ------ Input starts with an integer **T (1<=1000)**, denoting the number of test cases. Each case contains two integer **N (2 ≤ N ≤ 9)** denoting the number of digits and **K (1 ≤ K ≤ 999999999)** denoting the divisible integer. Output: ------- Output how many counting numbers of digit N is divisible by K. Sample Input ------------ 2 2 10 3 3 Sample Output ------------- 9 300

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

# 182/688

Solve/Submission

### Ranking

# User Language Timing
01 rana_cse Cpp14 0.00s
02 Jubayer_Hasan Cpp14 0.00s
03 Nazmul_WUB Cpp14 0.00s
04 7Mahfuz Cpp14 0.00s
06 MamunAmin Cpp14 0.00s
07 anis Cpp14 0.00s
08 t0whid Cpp 0.00s
09 Pure_Protea Cpp14 0.00s
10 chandan Cpp14 0.00s
11 The_Viper Cpp14 0.00s
12 mrinmoi Cpp 0.00s
13 feodorv Cpp14 0.00s
14 seyedssz Cpp14 0.00s
16 asfak Cpp14 0.00s
17 Alice_2 Cpp14 0.00s
18 golapraj Cpp14 0.00s
20 nazmul_bzs Cpp14 0.00s
22 hmtanbir Cpp14 0.00s
23 abdulmukit Cpp 0.00s
24 ismail_cse15 Cpp14 0.00s
26 zahidsheikh Cpp 0.01s
27 Morass Cpp14 0.01s
28 RandyWaterhouse Cpp 0.01s
29 10102020 Cpp 0.01s
30 deloar1 Cpp 0.01s
31 souravahmed C 0.01s
32 waqqas Cpp 0.01s
33 joymollick Cpp14 0.01s
34 mahmud2690 Cpp14 0.01s
35 TAISEER990 Cpp14 0.01s
36 sukanta Cpp14 0.01s
37 omaer1510033 Cpp14 0.01s
38 Ruhul1975 Cpp 0.01s
39 Ansarul_14 Cpp14 0.01s
40 sohag_AUST Cpp14 0.01s
41 onucsecu Cpp14 0.01s
42 prantacse14 Cpp14 0.01s
43 Dinar Cpp14 0.01s
44 Aizen Cpp 0.01s
45 Anubis Cpp14 0.01s
46 mohibur Cpp14 0.01s
47 yakin Cpp14 0.01s
48 rifat_cse Cpp14 0.01s
49 Trusted_Frustrated Cpp14 0.01s
50 Saimum_140128 Cpp14 0.01s
Feedback