mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 20:28:48 +00:00
1981 - 铁憨憨骑士团的缎带分配
77470
This commit is contained in:
parent
6746568778
commit
d4e5d47133
30
bjtu/1981/1981.cpp
Normal file
30
bjtu/1981/1981.cpp
Normal file
@ -0,0 +1,30 @@
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
int n;
|
||||
|
||||
cin >> n;
|
||||
|
||||
while (n--) {
|
||||
std::pair<int, int> p[2];
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
cin >> p[i].first >> p[i].second;
|
||||
}
|
||||
|
||||
std::sort(p, p + 2);
|
||||
|
||||
cout << (p[1].first < p[0].second ? "YES" : "NO") << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user