結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-20 20:46:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 372 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-07-08 11:20:13 |
| 合計ジャッジ時間 | 1,141 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 ''))