// Author : decoder97
/*
*/
#include<bits/stdc++.h>
#define ll long long int
#define vll vector<long long int>
#define pb push_back
#define ff first
#define ss second
#define SORT(v) sort(v.begin(), v.end())
#define REVERSE(v) sort(v.rbegin(), v.rend())
#define brk(x) cout << #x << " is " << x << endl;
#define floop(i,g,n) for(auto i=g;i<n;i++)
#define floopr(i,g,n) for(auto i=g;i>=n;i--)
#define show_values(v) \
cout<< "\n"<<#v<<" : "; \
for(auto i : v) \
cout << i << " "; \
cout << "\n";
#define nl cout<<"\n"
using namespace std;
void solve(){
ll n,x,y;
cin>>n>>x>>y;
ll k = min(x,y);
cout<<fixed<<setprecision(0)<<ceil(n/(k*1.0))<<"\n";
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tc;
cin>>tc;
while(tc--){
solve();
}
return 0;
}
Ly8gQXV0aG9yIDogZGVjb2Rlcjk3Ci8qCgoqLwojaW5jbHVkZTxiaXRzL3N0ZGMrKy5oPgojZGVmaW5lIGxsIGxvbmcgbG9uZyBpbnQKI2RlZmluZSB2bGwgdmVjdG9yPGxvbmcgbG9uZyBpbnQ+CiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgZmYgZmlyc3QKI2RlZmluZSBzcyBzZWNvbmQKI2RlZmluZSBTT1JUKHYpIHNvcnQodi5iZWdpbigpLCB2LmVuZCgpKQojZGVmaW5lIFJFVkVSU0Uodikgc29ydCh2LnJiZWdpbigpLCB2LnJlbmQoKSkKI2RlZmluZSBicmsoeCkgY291dCA8PCAjeCA8PCAiIGlzICIgPDwgeCA8PCBlbmRsOwojZGVmaW5lIGZsb29wKGksZyxuKSBmb3IoYXV0byBpPWc7aTxuO2krKykKI2RlZmluZSBmbG9vcHIoaSxnLG4pIGZvcihhdXRvIGk9ZztpPj1uO2ktLSkKI2RlZmluZSBzaG93X3ZhbHVlcyh2KSAgICAgICAgXAogICAgY291dDw8ICJcbiI8PCN2PDwiIDogIjsgICAgICAgICAgXAogICAgZm9yKGF1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