fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. const int Mod=998244353;
  5. const ll INF = -10000000000000;
  6.  
  7. void solve() {
  8. int n,x,y;
  9. cin >> n >> x >> y;
  10. y=min(y,x);
  11. cout << (n+y-1)/y << '\n';
  12. }
  13.  
  14. int main(){
  15. ios::sync_with_stdio(false);
  16. cin.tie(nullptr);
  17.  
  18. int t;
  19. cin >> t;
  20. while (t--) solve();
  21.  
  22.  
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 5324KB
stdin
5
5
3 4
3
1 2
6
4 3
100
4 3
9
3 3
stdout
2
3
2
34
3