From e23f0cd392ceae1624f740f0ce1d5851e18b2f88 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Fri, 12 Nov 2021 22:55:54 +0800 Subject: [PATCH] A - A.M. Deviation https://codeforces.com/contest/1605/submission/135117662 --- CodeForces/1605/A/A.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CodeForces/1605/A/A.cpp diff --git a/CodeForces/1605/A/A.cpp b/CodeForces/1605/A/A.cpp new file mode 100644 index 00000000..eb87c045 --- /dev/null +++ b/CodeForces/1605/A/A.cpp @@ -0,0 +1,18 @@ +#include + +using namespace std; + +int t, a1, a2, a3; + +int main() { + cin >> t; + while (t--) { + cin >> a1 >> a2 >> a3; + if ((a1 + a2 + a3) % 3) { + cout << 1 << endl; + } else { + cout << 0 << endl; + } + } + return 0; +}