結果

問題 No.82 市松模様
ユーザー k0825
提出日時 2019-03-31 17:36:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-21 22:40:59
合計ジャッジ時間 1,010 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

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 int(w)%2 and i%2:
			print(['B','W'][not f%2],end='')
		else:
			print(['B','W'][f%2],end='')
		f+=1
	print()	
0