All submissions for this problem are available.
In UVCE Hostel there is a metal stand in which all students keep their plates. There are lot of students in the hostel and lot of plates too. So Stand may not hold all the plates in it.
Now the Manager of UVCE Hostel is planning to buy new stands so that everybody can keep their plates comfortably. But he hates counting. Help him to decide the number of new stands required.
First line contains T,number of test cases.
Each test contains two space seperated integers
- N, number of plates in the hostel
- C, capacity of each stand
Output should contain T lines containing R, number of new stands required to be bought for that testcase.
- 1 <= T <= 105
- 1 <= N,C <= 109
|Time Limit:||0.64 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, JAR, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, CLOJ, FS|
Fetching successful submissions