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