Educational Codeforces Round 90 (Rated for Div. 2) A. Donut Shops (1000)

    技术2022-07-11  93

    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; }
    Processed: 0.015, SQL: 9