結果
| 問題 | 
                            No.82 市松模様
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-05-22 19:54:02 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 57 ms / 5,000 ms | 
| コード長 | 256 bytes | 
| コンパイル時間 | 147 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 63,104 KB | 
| 最終ジャッジ日時 | 2024-09-20 12:51:10 | 
| 合計ジャッジ時間 | 1,076 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
H,W,C = input().split()
H = int(H)
W = int(W)
H,W = W,H
if C == "B":
    D = "W"
else:
    D = "B"
for i in range(H):
    for j in range(W):
        if (i + j) % 2 == 0:
            print(C,end = "")
        else:
            print(D,end = "")
    print()