結果

問題 No.82 市松模様
ユーザー akitsugu777akitsugu777
提出日時 2019-09-19 11:27:49
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-25 19:44:42
合計ジャッジ時間 1,061 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,788 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,892 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,952 KB
testcase_06 WA -
testcase_07 AC 15 ms
7,796 KB
testcase_08 AC 15 ms
7,896 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

s = 'BW'
W = int(W)
H = int(H)
x = [0, 1][C == 'W']

for i in range(H):
    print(((W//2+1)*s)[i%2+x:][:W])
0