結果

問題 No.82 市松模様
ユーザー ああいいああいい
提出日時 2022-05-22 19:53:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 81,816 KB
実行使用メモリ 64,368 KB
最終ジャッジ日時 2023-10-20 17:16:38
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

H,W,C = input().split()
H = int(H)
W = int(W)
if C == "B":
    D = "W"
else:
    D = "B"

for i in range(H):
    for j in range(W):
        if (i + j) % 2 == 0:
            print(C,end = "")
        else:
            print(D,end = "")
    print()
0