結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-07-23 18:12:06 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| + 482µs | |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 81,664 KB |
| 最終ジャッジ日時 | 2026-07-17 17:25:35 |
| 合計ジャッジ時間 | 1,766 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
import string
W, H, C = raw_input().strip().split(" ")
w, h = int(W), int(H)
bw = ['B', 'W']
if C == 'W':
bw = list(reversed(bw))
for i in range(0, h):
row = []
for j in range(0, w):
row.append(bw[(i+j) & 1])
print(string.join(row, ''))
tnoda_