結果

問題 No.82 市松模様
ユーザー ytftytft
提出日時 2022-11-08 08:06:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 75,944 KB
最終ジャッジ日時 2023-09-28 19:54:32
合計ジャッジ時間 2,078 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,320 KB
testcase_01 AC 78 ms
71,440 KB
testcase_02 AC 74 ms
71,312 KB
testcase_03 AC 76 ms
71,312 KB
testcase_04 AC 75 ms
71,320 KB
testcase_05 AC 76 ms
71,220 KB
testcase_06 AC 76 ms
71,304 KB
testcase_07 AC 76 ms
71,252 KB
testcase_08 AC 78 ms
75,788 KB
testcase_09 AC 81 ms
75,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
table=['W','B']
W,H,S=input().split()
for i in range(int(H)):
	print(''.join([table[(i+j)%2^table.index(S)] for j in range(int(W))]))
0