mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Add FZOI Codes
This commit is contained in:
16
FZOI/俄罗斯方块.cpp
Normal file
16
FZOI/俄罗斯方块.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user