jakaria_hossain

codeforces - donut shops

Jun 25th, 2020
995
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define fast()(ios_base::sync_with_stdio(0),cin.tie(NULL));
  5. int main()
  6. {
  7.     fast();
  8.     ll t;
  9.     cin>>t;
  10.  
  11.  
  12.     while(t--)
  13.     {
  14.  
  15.         ll a,b,c;
  16.         cin>>a>>b>>c;
  17.  
  18.         if(a>=c)cout<<-1<<" ";
  19.  
  20.         else
  21.         {
  22.             cout<<1<<" ";
  23.         }
  24.  
  25.         ll d=a*b;
  26.  
  27.         if(c<d)
  28.             cout<<b<<endl;
  29.  
  30.         else cout<<-1<<endl;
  31.  
  32.  
  33.  
  34.     }
  35. }
RAW Paste Data