#include<stdio.h>int a[10];void quanpailie(int i){ if(i==10) {for(i=0;i<10;i++) { printf("%d",a[i]);} printf(" "); return; } a[i]=0; quanpailie(i+1); a[i]=1; quanpailie(i+1);}int main(){ quanpailie(0); return 0;}