OJ-Problems-Source/HDOJ/4519_autoAC.cpp
2016-09-06 13:32:33 +08:00

24 lines
417 B
C++

#include <iostream>
using namespace std;
int main()
{
int n,k,m,t;
cin >> t;
while(t--)
{
cin >> n >> k >> m;
if(m>n)
cout << k<< endl;
else
{
int sub = n*k;
if(sub%m==0)
cout << sub/m;
else
cout << sub/m+1;
cout << endl;
}
}
return 0;
}