From 583947680244162b770bc3f0bfcb90606f7dbf01 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Tue, 21 Sep 2021 20:12:47 +0800 Subject: [PATCH] =?UTF-8?q?P7589=20=E9=BB=91=E7=99=BD=E6=A3=8B=EF=BC=88202?= =?UTF-8?q?1=20CoE-II=20B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R58357682 --- Luogu/problem/P7589/P7589.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Luogu/problem/P7589/P7589.cpp diff --git a/Luogu/problem/P7589/P7589.cpp b/Luogu/problem/P7589/P7589.cpp new file mode 100644 index 00000000..96128e78 --- /dev/null +++ b/Luogu/problem/P7589/P7589.cpp @@ -0,0 +1,19 @@ +#include + +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; +}