Yushia Sou says to YSITD#include<cstdio> bool b[300]; void f(int d) { if(d == 300) { for(int i = 0; i < 300; i++) putchar(b[i]? '1' : '0'); }else { b[d] = false; f(d+1); b[d] = true; f(d+1); } } int main() { f(0); return 0; }差不多的感覺,*3自己寫at Tue, Jan 30, 2018 11:07 PM