Logo
(追記) (追記ここまで)

19525번 - Rectangle-free Grid 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB2491106439.264%

문제

Construct an $N \times N$ grid with the following conditions:

  • 2ドル \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, l$ such that 1ドル \leq i < j \leq N$ and 1ドル \leq k < l \leq N,ドル at least one of the four cells $(i,k),ドル $(i,l),ドル $(j,k),ドル $(j,l)$ is filled with '.'.

입력

There is no input.

출력

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

제한

예제 입력 1

예제 출력 1

5
.....
.....
..OOO
...O.
..O..

노트

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

출처

Camp > Petrozavodsk Programming Camp > Summer 2016 > Day 9: Grand Prix of Japan G번

Contest > Open Cup > 2016/2017 Season > Stage 1: Grand Prix of Japan G번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /