fork(1) download
  1. // Author : decoder97
  2. /*
  3.  
  4. */
  5. #include<bits/stdc++.h>
  6. #define ll long long int
  7. #define vll vector<long long int>
  8. #define pb push_back
  9. #define ff first
  10. #define ss second
  11. #define SORT(v) sort(v.begin(), v.end())
  12. #define REVERSE(v) sort(v.rbegin(), v.rend())
  13. #define brk(x) cout << #x << " is " << x << endl;
  14. #define floop(i,g,n) for(auto i=g;i<n;i++)
  15. #define floopr(i,g,n) for(auto i=g;i>=n;i--)
  16. #define show_values(v) \
  17.   cout<< "\n"<<#v<<" : "; \
  18.   for(auto i : v) \
  19.   cout << i << " "; \
  20.   cout << "\n";
  21. #define nl cout<<"\n"
  22. using namespace std;
  23. void solve(){
  24.  
  25. ll n,x,y;
  26.  
  27. cin>>n>>x>>y;
  28.  
  29. ll k = min(x,y);
  30.  
  31. cout<<fixed<<setprecision(0)<<ceil(n/(k*1.0))<<"\n";
  32. }
  33.  
  34. int main(){
  35. ios::sync_with_stdio(false);
  36. cin.tie(0);
  37. cout.tie(0);
  38.  
  39. int tc;
  40. cin>>tc;
  41. while(tc--){
  42. solve();
  43. }
  44.  
  45. return 0;
  46. }
Success #stdin #stdout 0s 5268KB
stdin
6
11
3 5
5
3 4
3
1 2
6
4 3
100
4 3
1000000000
1 1
stdout
4
2
3
2
34
1000000000