Rectangle-free Grid

아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Construct an N×NN \times N grid with the following conditions:

  • 2N1502 \leq N \leq 150
  • Each cell is filled with either 'O' or '.'.
  • There are at least 1700 cells with 'O'.
  • For each tuple of four integers i,j,k,li, j, k, l such that 1i<jN1 \leq i < j \leq N and 1k<lN1 \leq k < l \leq N, at least one of the four cells (i,k)(i,k), (i,l)(i,l), (j,k)(j,k), (j,l)(j,l) is filled with '.'.

입력

There is no input.

출력

The first line should contain an integer NN. The following NN lines should contain NN characters each ('O' or '.'), and these NN lines describe the grid.

힌트

Output for this example satisfies all conditions but the third (number of 'O' in the grid).