結果

問題 No.82 市松模様
ユーザー yuki2006yuki2006
提出日時 2015-02-21 14:42:51
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 77,532 KB
実行使用メモリ 77,400 KB
最終ジャッジ日時 2023-09-06 02:43:32
合計ジャッジ時間 1,594 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
76,520 KB
testcase_01 AC 73 ms
76,384 KB
testcase_02 AC 74 ms
76,400 KB
testcase_03 AC 72 ms
76,464 KB
testcase_04 AC 73 ms
76,460 KB
testcase_05 AC 75 ms
76,152 KB
testcase_06 AC 71 ms
76,188 KB
testcase_07 AC 73 ms
76,396 KB
testcase_08 AC 74 ms
77,352 KB
testcase_09 AC 73 ms
77,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W, H, C = map(str, raw_input().split())
W = int(W)
H = int(H)

st = ["B", "W"]

if st[0] != C:
    st.reverse()

for _ in xrange(H):

    row = ""
    for i in xrange(W):
        row += st[i % 2]

    print row
    st.reverse()
0