标签:
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int T,N,ans1=1,ans2=0;
cin>>T;
while (T--)
{
cin>>N;
if(N%2==1)
cout<<ans1<<endl;
else
cout<<ans2<<endl;
}
}
标签:
原文地址:http://www.cnblogs.com/xiangrutt/p/5032979.html