mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
16 lines
229 B
C++
16 lines
229 B
C++
#include<cstdio>
|
|
int n,a,tag;
|
|
bool pos=true;
|
|
signed main(void){
|
|
scanf("%d",&n);
|
|
scanf("%d" ,&a);
|
|
tag =(a&1);
|
|
for(int i=1;i<n;i++){
|
|
scanf("%d",&a);
|
|
if((a&1)!=tag){
|
|
pos=false;
|
|
}
|
|
}
|
|
printf("%d\n",pos?1:0);
|
|
return 0;
|
|
} |