結果

問題 No.82 市松模様
ユーザー pof
提出日時 2019-06-17 22:41:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-29 03:31:55
合計ジャッジ時間 1,210 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

w,h,c = input().split()
w = int(w)
h = int(h)

if c == "B":
    d=0
else:
    d=1

for j in range(h):
    for i in range(w):
        if d %2 == 0:
            print("B", end="")
        else:
            print("W", end="")
        d += 1
    print("")

0