#include<stdio.h>
int main()
{
int i,a,b;
scanf("%d",&a);
while(a--){
scanf("%d",&b);
if(b%2==0){
printf("0\n");
}
else{
printf("1\n");
}
}
return 0;
}
int main()
{
int i,a,b;
scanf("%d",&a);
while(a--){
scanf("%d",&b);
if(b%2==0){
printf("0\n");
}
else{
printf("1\n");
}
}
return 0;
}
No comments:
Post a Comment