0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:28:48 +00:00

P7589 黑白棋(2021 CoE-II B)

R58357682
This commit is contained in:
Baoshuo Ren 2021-09-21 20:12:47 +08:00 committed by Baoshuo Ren
parent b9cac8afc4
commit 5839476802
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View 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;
}