Saleh127

Cf 1373A

Jun 25th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. test
  9. {
  10. ll a,b,c,d,e,f,i,j,k,l;
  11. cin>>a>>b>>c;
  12. d=-1,e=-1;
  13.  
  14. if(c>a) d = 1;
  15. if(c/b<a) e = b;
  16. cout << d << " " << e << endl;
  17. }
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment