提交时间:2019-11-26 21:09:44

运行 ID: 2472

#include<iostream> int main() { int N,a[100],i=0; scanf("%d",&N); for(;i<=N-1;N++) { scanf("%d",a[i]); } while(1) { for(;i<=N-1;N++) { if(a[i]%2==0) { printf("%d",a[i]); } else if(a[i%2]!=0) { printf("%d",a[i]); } } } return 0; }