Guest User

Untitled

a guest
Sep 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. char mat[200][200];
  5.  
  6. int main(void) {
  7.     for (int i=0; i<200; ++i) for (int j=0; j<200; ++j) mat[i][j] = '.';
  8.  
  9.     for (int i=0; i<13; ++i) {
  10.         for (int j=0; j<13; ++j) {
  11.             for (int k=0; k<12; ++k) {
  12.                 mat[i*13 + j][k * 13 + ((j + k*i) % 13)] = 'O';
  13.             }
  14.         }
  15.     }
  16.     cout << 150 << endl;
  17.     for (int i=0; i<150; ++i) {
  18.         for (int j=0; j<150; ++j) {
  19.             cout << mat[i][j];
  20.         }
  21.         cout << endl;
  22.     }
  23.     return 0;
  24. }
Add Comment
Please, Sign In to add comment