#include一定要记得释放数组空间。否则提交的时候会出现运行错误!#include void Reverse(int n){ if(n==0) printf("0"); else if(n==1) printf("1"); else { Reverse(n>>1); printf("%d",n%2); }}int main(){ int n,i; int *a; while(scanf("%d",&n)!=EOF) { if(n<1||n>1000) continue; a=(int *)malloc(n*sizeof(int)); for(i=0;i