結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-20 20:46:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 5,000 ms |
| + 623µs | |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-12 16:58:38 |
| 合計ジャッジ時間 | 2,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
W, H, C = input().split()
W = int(W)
H = int(H)
for h in range(H):
if (h & 1 and C == 'B') or (h % 2 == 0 and C == 'W'):
print('WB' * (W // 2) + ('W' if W & 1 else ''))
else:
print('BW' * (W // 2) + ('B' if W & 1 else ''))