結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-26 16:34:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-28 17:26:09 |
| 合計ジャッジ時間 | 931 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
W, H, C = input().split()
W = int(W)
H = int(H)
nxt = C
for h in range(H):
ans = nxt
for w in range(W):
if ans[-1] == 'B':
ans += 'W'
elif ans[-1] == 'W':
ans += 'B'
print(ans)
if nxt == 'B':
nxt = 'W'
else:
nxt = 'B'