#include<bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
int a,b,c;
cin>>a>>b>>c;
unsigned int sum=b*c;
if(sum%a==0)
{
cout<<sum/a<<"\n";
}
else cout<<-1<<"\n";
}
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
int t__=1;
cin>>t__;
while(t__--)
{
solve();
}
return 0;
}

京公网安备 11010502036488号