代码
C++:暴力解法for循环
具体代码
#include <bits/stdc++.h>
using namespace std;
int main(){
for(int i=0;i<=1;i++){
for(int j=0;j<=1;j++){
for(int k=0;k<=1;k++){
for(int x=0;x<=1;x++){
for(int y=0;y<=1;y++){
cout<<i<<j<<k<<x<<y<<endl;
}
}
}
}
}
return 0;
}
题目来源
http://lx.lanqiao.cn/problem.page?gpid=T6