結果

問題 No.82 市松模様
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-12-30 22:21:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 463 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-21 13:34:08
合計ジャッジ時間 1,084 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

seq = input().split()

x = int(seq[0])
y = int(seq[1])
c = seq[2]

BW = []
for i in range(30):
    BW.append("BW")
BWseq = "".join(BW)

WB = []
for i in range(30):
    WB.append("WB")
WBseq = "".join(WB)

if c == "W":
    for i in range(y):
        if i % 2 == 1:
            print(BWseq[0:x])
        else:
            print(WBseq[0:x])
else:
    for i in range(y):
        if i % 2 == 1:
            print(WBseq[0:x])
        else:
            print(BWseq[0:x])
0