시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 (추가 시간 없음) | 512 MB | 10 | 5 | 5 | 50.000% |
Consider a flat rectangular field consisting of $r \times c$ squares. A cross is a figure consisting of five squares: a center squares and its four neighbors, horizontal and vertical.
A placement of crosses on the field is a collection of crosses which satisfies the following conditions:
A placement is blocking when additional conditions are satisfied:
Given the dimensions of the field, find any blocking placement of crosses on it.
The first line of input contains two integers $r$ and $c$: the number of rows and columns on the field ($10 \le r, c \le 100$).
Print $r$ lines, each containing $c$ characters: any placement of crosses which satisfies all the conditions. Empty squares are denoted by ".
" (dot, ASCII code 46). Centers of crosses are denoted by "+
" (plus, ASCII code 43), horizontal parts by "-
" (minus, ASCII code 45), and vertical parts by "|
" (vertical line, ASCII code 124).
10 12
.|..|...|... -+--+-|-+-|. .|.||-+-|-+- .|-+-||..||. -+-|-+-|-+-. .||..|-+-|.. .-+-|..||... .||-+-|-+-|. -+-.|-+-|-+- .|....|...|.