A题目
很简单,就是求倍数,向上取整。
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
long long n;
cin >> n;
long long x, y;
cin >> x >> y;
long long tmp = min(x, y);
if (n == 0) {
cout << 0 << endl;
continue;
}
long long seconds = (n + tmp - 1) / tmp;
cout << seconds << endl;
}
}