結果
問題 | No.82 市松模様 |
ユーザー | roiti46 |
提出日時 | 2014-12-10 21:20:51 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 6,708 KB |
実行使用メモリ | 6,040 KB |
最終ジャッジ日時 | 2023-09-02 13:56:53 |
合計ジャッジ時間 | 1,321 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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 | - |
ソースコード
W,H,C = raw_input().split() W,H = int(W),int(H) C += "B" if C == "W" else "W" A = [[C]*(W/2+1) for h in range(H)] for h in range(H): print A[:W] if h%0 == 0 else A[1:W+1]