結果

問題 No.82 市松模様
ユーザー ktshunktshun
提出日時 2015-05-29 23:38:39
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 6,740 KB
実行使用メモリ 6,052 KB
最終ジャッジ日時 2023-09-20 17:09:05
合計ジャッジ時間 751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding:utf-8 -*-

if __name__ == "__main__":
	w,h,c = raw_input().split()
	w = int(w)
	h = int(h)
	c = list(c)
	if c[0] == "B":
		c.append("W")
	else:
		c.append("B")
	for i in range(h):
		if w % 2 == 1:
			print ''.join(c) * (w/2) + c[0]
			c = c[::-1]
		else:
			print ''.join(c) * (w/2)
0