mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 23:08:47 +00:00
20 lines
328 B
C++
20 lines
328 B
C++
#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;
|
|
}
|