結果

問題 No.82 市松模様
ユーザー Seha46041561Seha46041561
提出日時 2019-03-31 15:16:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 53,100 KB
最終ジャッジ日時 2024-05-01 12:33:58
合計ジャッジ時間 1,011 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,200 KB
testcase_01 AC 34 ms
52,284 KB
testcase_02 AC 33 ms
52,424 KB
testcase_03 AC 32 ms
52,460 KB
testcase_04 AC 34 ms
52,072 KB
testcase_05 AC 32 ms
52,356 KB
testcase_06 AC 34 ms
52,632 KB
testcase_07 AC 32 ms
53,000 KB
testcase_08 AC 32 ms
53,100 KB
testcase_09 AC 33 ms
52,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

BW = "BW" * 100
WB = "WB" * 100

if C == 'B':
    for i in range(int(H)):
        if i % 2 == 0:
            print(BW[:int(W)])
        else:
            print(WB[:int(W)])

elif C == "W":
    for i in range(int(H)):
        if i % 2 == 0:
            print(WB[:int(W)])
        else:
            print(BW[:int(W)])
0