From b9cac8afc4eea8c0b5a8235c75c3789d57189548 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Mon, 20 Sep 2021 20:03:58 +0800 Subject: [PATCH] =?UTF-8?q?891.=20Nim=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/7830890/ --- AcWing/891/891.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 AcWing/891/891.cpp diff --git a/AcWing/891/891.cpp b/AcWing/891/891.cpp new file mode 100644 index 00000000..f05ce04c --- /dev/null +++ b/AcWing/891/891.cpp @@ -0,0 +1,15 @@ +#include + +using namespace std; + +int n, r, a; + +int main() { + cin >> n; + while (n--) { + cin >> a; + r ^= a; + } + cout << (r ? "Yes" : "No") << endl; + return 0; +}