結果

問題 No.82 市松模様
ユーザー ohanaohana
提出日時 2023-09-26 17:54:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 1,520 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 76,532 KB
最終ジャッジ日時 2023-09-26 17:54:40
合計ジャッジ時間 3,191 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,884 KB
testcase_01 AC 76 ms
71,192 KB
testcase_02 AC 75 ms
71,124 KB
testcase_03 AC 76 ms
71,164 KB
testcase_04 AC 77 ms
71,008 KB
testcase_05 AC 77 ms
71,016 KB
testcase_06 AC 104 ms
70,992 KB
testcase_07 AC 79 ms
71,300 KB
testcase_08 AC 89 ms
76,532 KB
testcase_09 AC 89 ms
76,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w, h, c = input().split()
s = "BW"
for i in range(int(h)):
    for j in range(int(w)):
        print(s[(i + j + (c == "W")) % 2], end="")
    print()
0