mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-12 03:46:29 +00:00
19 lines
289 B
C++
19 lines
289 B
C++
#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;
|
|
}
|