0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 17:32:00 +00:00

A - A.M. Deviation

https://codeforces.com/contest/1605/submission/135117662
This commit is contained in:
Baoshuo Ren 2021-11-12 22:55:54 +08:00 committed by Baoshuo Ren
parent c35d417c81
commit e23f0cd392
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

18
CodeForces/1605/A/A.cpp Normal file
View File

@ -0,0 +1,18 @@
#include <bits/stdc++.h>
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;
}