#include<iostream>#include<cstring>#include<algorithm>
using namespace std;constint N =1e5+10;int n, m;int a[N];intmain(){int T;scanf("%d",&T);while(T --){longlong a, b, c, d;scanf("%lld %lld %lld",&a,&b,&c);if(a %2&& b %2&& c %2){printf("0\n");}elseif(a %2&& b %2){printf("1\n");}elseif(a %2&& c %2){printf("0\n");}elseif(b %2&& c %2){printf("1\n");}elseif(a %2){printf("1\n");}elseif(b %2){printf("0\n");}elseif(c %2){printf("1\n");}elseprintf("0\n");}return0;}
题目链接#include <iostream>#include <cstring>#include <algorithm>using namespace std;const int N = 1e5 + 10;int n, m;int a[N];int main(){ int T; scanf("%d", &T); while (T --) { long long a, b, c, d;