OJ-Problems-Source/SDUTOJ/3560.cpp

18 lines
248 B
C++
Raw Permalink Normal View History

2016-10-07 21:32:47 +08:00
#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;
}