#1087
Unrated
SAHOVNICA
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Mirko has become a hardcore patriot, so he has asked you to draw him a Croatian chessboard (checkerboard). The chessboard consists of red and white cells. The upper left cell is red, with the remaining cells alternating between white and red in rows as well as columns. We will represent red areas with ‘X’ (uppercase letter x) characters, and white areas with ‘.’ (period) characters. Mirko's chessboard should consist of R × C cells, that is, R rows and C columns. Each row should be A characters high, and each column B characters wide. Consider the sample tests below for further clarification.

입력

The first line of input contains two positive integers R and C (1 ≤ R, C ≤ 10) from the problem statement. The second line of input contains two positive integers A and B (1 ≤ A, B ≤ 10) from the problem statement.

출력

The output must consist of a total of R * A rows and C * B columns, forming the chessboard described above.

예제 입력 1

2 4
2 2

예제 출력 1

XX..XX..
XX..XX..
..XX..XX
..XX..XX

예제 입력 2

5 5
2 3

예제 출력 2

XXX...XXX...XXX
XXX...XXX...XXX
...XXX...XXX...
...XXX...XXX...
XXX...XXX...XXX
XXX...XXX...XXX
...XXX...XXX...
...XXX...XXX...
XXX...XXX...XXX
XXX...XXX...XXX
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Unrated0명 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.