OJ-Problems-Source/SDUTOJ/3560.cpp
2016-10-07 21:32:47 +08:00

18 lines
248 B
C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a/b+!!(a%b));
}
return 0;
}