結果

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

ソースコード

diff #

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

c = C
for _ in range(H):
    for _ in range(W):
        print(c, end="")
        if c == 'B':
            c = 'W'
        elif c == 'W':
            c = 'B'
    print("")
0