蓝桥杯 BASIC-2 01字串

来源:互联网 发布:纪念日软件 编辑:程序博客网 时间:2024/06/05 20:49

枚举,没什么可说的

#include<iostream>using namespace std;int main(){     int a,b,c,d,e;     for(a=0;a<2;a++)          for(b=0;b<2;b++)               for(c=0;c<2;c++)                      for(d=0;d<2;d++)                             for(e=0;e<2;e++)                                   cout<<a<<b<<c<<d<<e<<endl;      return 0;}


0 0
原创粉丝点击