結果

問題 No.82 市松模様
ユーザー c-yan
提出日時 2020-03-27 21:14:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 234 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-01-02 09:27:10
合計ジャッジ時間 1,033 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

W, H, C = input().split()
W, H = int(W), int(H)

d = { 'B': 'W', 'W': 'B' }
for i in range(H):
    if i % 2 == 0:
        c = C
    else:
        c = d[C]
    for _ in range(W):
        print(c, end="")
        c = d[c]
    print("")
0