結果

問題 No.82 市松模様
ユーザー yaoshimaxyaoshimax
提出日時 2015-03-01 20:55:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 6,728 KB
実行使用メモリ 6,000 KB
最終ジャッジ日時 2023-09-06 05:58:15
合計ジャッジ時間 1,012 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,944 KB
testcase_01 AC 11 ms
5,944 KB
testcase_02 AC 11 ms
5,896 KB
testcase_03 AC 11 ms
5,892 KB
testcase_04 AC 12 ms
5,896 KB
testcase_05 AC 12 ms
6,000 KB
testcase_06 AC 11 ms
5,988 KB
testcase_07 AC 11 ms
5,940 KB
testcase_08 AC 11 ms
5,864 KB
testcase_09 AC 11 ms
5,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

W,H,C=raw_input().split()
D="B"
if D==C:
    D="W"
line = ""
for i in range(int(W)+1):
    if i%2==1:
        line+=D
    else:
        line+=C
for i in range(int(H)):
    print line[i%2:i%2+int(W)]
0