mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 14:18:47 +00:00
P7589 黑白棋(2021 CoE-II B)
R58357682
This commit is contained in:
parent
b9cac8afc4
commit
5839476802
19
Luogu/problem/P7589/P7589.cpp
Normal file
19
Luogu/problem/P7589/P7589.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int t, n, k, d, y, b, w, r;
|
||||
|
||||
int main() {
|
||||
cin >> t;
|
||||
while (t--) {
|
||||
r = 0;
|
||||
cin >> n >> k >> d;
|
||||
while (n--) {
|
||||
cin >> y >> b >> w;
|
||||
r ^= abs(b - w) - 1;
|
||||
}
|
||||
cout << (r ? "Yes" : "No") << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user