Add FZOI Codes

This commit is contained in:
2024-06-26 22:14:00 +08:00
parent 8f564ca60e
commit b80791cfad
49 changed files with 1653 additions and 0 deletions

16
FZOI/俄罗斯方块.cpp Normal file
View 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;
}