結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2025-09-06 22:40:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 440 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2025-09-06 22:40:46 |
| 合計ジャッジ時間 | 2,664 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 24 RE * 1 |
ソースコード
height, width = map(int, input().split())
input_list = []
for i in range(height):
input_list.append(input())
for row in input_list:
pos_w = row.find('w')
pos_9 = row.find('9')
buf = list(row)
if pos_9 < pos_w:
buf[pos_9+1] = 'Y'
else:
buf[pos_9-1] = 'Y'
print("".join(buf))
Fullmoon85072