結果
| 問題 | 
                            No.82 市松模様
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-02-13 12:16:03 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 33 ms / 5,000 ms | 
| コード長 | 401 bytes | 
| コンパイル時間 | 249 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-28 19:12:19 | 
| 合計ジャッジ時間 | 1,214 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
args = input().split()
W, H = int(args[0]), int(args[1])
C = args[2]
for i in range(H):
    for j in range(W):
        if C == 'B':
            if (i + j) % 2 == 0:
                print('B', end='')
            else:
                print('W', end='')
        else:
            if (i + j) % 2 == 0:
                print('W', end='')
            else:
                print('B', end='')
    print()