# CF955A: Soccer ## 題目連結:[CF955A](https://codeforces.com/problemset/problem/1982/A) 當原本分數較高的隊伍變成分數較低的隊伍時,中間必有平手,輸出NO。 ```cpp= #include<bits/stdc++.h> using namespace std; int main() { int t = 0; cin>>t; while(t--) { int x1,x2,y1,y2; cin>>x1>>y1; cin>>x2>>y2; if (x1 > y1 && x2 < y2) { cout<<"NO"; } else if (x1 < y1 && x2 > y2) { cout<<"NO"; } else { cout<<"YES"; } if (t != 0) { cout<<endl; } } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up