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

Sifat Siddiqi Shishir

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 |

Solve/Submission

# | User | Language | Timing |
---|---|---|---|

01 | asfak | Cpp14 | 0.00s |

02 | Pure_Protea | Cpp14 | 0.00s |

03 | Jubayer_Hasan | Cpp14 | 0.00s |

04 | chandan | Cpp14 | 0.00s |

05 | MamunAmin | Cpp14 | 0.00s |

06 | Shadab | Cpp14 | 0.00s |

07 | anis | Cpp14 | 0.00s |

08 | seyedssz | Cpp14 | 0.00s |

09 | golapraj | Cpp14 | 0.00s |

10 | adil_reza | Cpp14 | 0.00s |

11 | Nazmul_WUB | Cpp14 | 0.00s |

12 | rana_cse | Cpp14 | 0.00s |

13 | hmtanbir | Cpp14 | 0.00s |

14 | 7Mahfuz | Cpp14 | 0.00s |

15 | feodorv | Cpp14 | 0.00s |

16 | sadia2427 | Cpp14 | 0.00s |

17 | Alice_2 | Cpp14 | 0.00s |

18 | ismail_cse15 | Cpp14 | 0.00s |

19 | The_Viper | Cpp14 | 0.00s |

20 | nazmul_bzs | Cpp14 | 0.00s |

21 | t0whid | Cpp | 0.00s |

22 | smriad | Cpp | 0.00s |

23 | mrinmoi | Cpp | 0.00s |

24 | abdulmukit | Cpp | 0.00s |

25 | saeefad | Cpp | 0.00s |

26 | zahidsheikh | Cpp | 0.01s |

27 | 10102020 | Cpp | 0.01s |

28 | mahmud2690 | Cpp14 | 0.01s |

29 | souravahmed | C | 0.01s |

30 | deloar1 | Cpp | 0.01s |

31 | Ruhul1975 | Cpp | 0.01s |

32 | waqqas | Cpp | 0.01s |

33 | Morass | Cpp14 | 0.01s |

34 | RandyWaterhouse | Cpp | 0.01s |

35 | joymollick | Cpp14 | 0.01s |

36 | Aizen | Cpp | 0.01s |

37 | onucsecu | Cpp14 | 0.01s |

38 | Dinar | Cpp14 | 0.01s |

39 | KIRIN_36 | Cpp14 | 0.01s |

40 | Anubis | Cpp14 | 0.01s |

41 | Saimum_140128 | Cpp14 | 0.01s |

42 | rifat_cse | Cpp14 | 0.01s |

43 | TAISEER990 | Cpp14 | 0.01s |

44 | prantacse14 | Cpp14 | 0.01s |

45 | Ansarul_14 | Cpp14 | 0.01s |

46 | n_orbit | Cpp14 | 0.01s |

47 | mohibur | Cpp14 | 0.01s |

48 | sohag_AUST | Cpp14 | 0.01s |

49 | Trusted_Frustrated | Cpp14 | 0.01s |

50 | omaer1510033 | Cpp14 | 0.01s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(