fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. for(int Y=0;Y<2;++Y) for(int y=0;y<3;++y,cout<<endl) for(int X=0;X<2;++X) for(int x=0;x<5;++x) cout<<"10"[X^Y];
  7. return 0;
  8. }
Success #stdin #stdout 0s 4452KB
stdin
Standard input is empty
stdout
1111100000
1111100000
1111100000
0000011111
0000011111
0000011111