結果

問題 No.82 市松模様
ユーザー k0825k0825
提出日時 2019-03-31 17:35:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 200 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-08-14 04:29:08
合計ジャッジ時間 1,055 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

w,h,c=input().split();f=[0,1][c=='W']
for i in range(int(h)):
	for j in range(int(w)):
		if not w%2 and i%2:
			print(['B','W'][not f%2],end='')
		else:
			print(['B','W'][f%2],end='')
		f+=1
	print()
0