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:
parent
c35d417c81
commit
e23f0cd392
18
CodeForces/1605/A/A.cpp
Normal file
18
CodeForces/1605/A/A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user