https://codeforces.com/contest/1900/problem/B
解析:
如果a和b之差为偶数,则可以将其变为相同的数,然后可以都变成c
所以只需要分别判断a、c和b、c之差是否为偶数即可
#include<bits/stdc++.h>
using namespace std;
//#define int long long
const int N=2e5+5;
int a,b,c;
void solve(){
scanf("%d%d%d",&a,&b,&c);
if(abs(b-c)%2==0) printf("1 ");
else printf("0 ");
if(abs(a-c)%2==0) printf("1 ");
else printf("0 ");
if(abs(a-b)%2==0) printf("1 ");
else printf("0 ");
printf("\n");
}
signed main(){
int t=1;
scanf("%d",&t);
while(t--) solve();
return 0;
}