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 | rana_cse | Cpp14 | 0.00s |

02 | Jubayer_Hasan | Cpp14 | 0.00s |

03 | Nazmul_WUB | Cpp14 | 0.00s |

04 | 7Mahfuz | Cpp14 | 0.00s |

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

15 | adil_reza | Cpp14 | 0.00s |

16 | asfak | Cpp14 | 0.00s |

17 | Alice_2 | Cpp14 | 0.00s |

18 | golapraj | Cpp14 | 0.00s |

19 | sadia2427 | Cpp14 | 0.00s |

20 | nazmul_bzs | Cpp14 | 0.00s |

21 | smriad | Cpp | 0.00s |

22 | hmtanbir | Cpp14 | 0.00s |

23 | abdulmukit | Cpp | 0.00s |

24 | ismail_cse15 | Cpp14 | 0.00s |

25 | saeefad | Cpp | 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 |

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. :(