1373A - Donut Shops
题意&&思路:
if(a<c)cout<<1;
else cout<<-1;
if(a*b>c)cout<<b;
else cout<<-1;
代码附:
#pragma GCC optimize("Ofast","inline","-ffast-math")
#pragma GCC target("avx,sse2,sse3,sse4,mmx")
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N = 2e5+10;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int t,a,b,c;
cin>>t;
while(t--)
{
cin>>a>>b>>c;
if(a<c)
cout<<1<<" ";
else
cout<<-1<<" ";
if(a*b>c)
cout<<b<<endl;
else
cout<<-1<<endl;
}
return 0;
}