結果

問題 No.82 市松模様
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-19 21:47:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 76,124 KB
最終ジャッジ日時 2023-08-15 08:11:54
合計ジャッジ時間 1,936 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,384 KB
testcase_01 AC 73 ms
71,488 KB
testcase_02 AC 78 ms
71,504 KB
testcase_03 AC 73 ms
71,220 KB
testcase_04 AC 72 ms
71,288 KB
testcase_05 AC 73 ms
71,280 KB
testcase_06 AC 74 ms
71,476 KB
testcase_07 AC 75 ms
71,312 KB
testcase_08 AC 80 ms
76,064 KB
testcase_09 AC 78 ms
76,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w,h,c = input().split()
w,h = int(w),int(h)
for i in range(h):
    ans = ""
    now = c
    for j in range(w):
        ans += now
        now = "W" if now == "B" else "B"
    c = "W" if c == "B" else "B"
    print(ans)
0