結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:15:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 82,732 KB |
| 実行使用メモリ | 62,720 KB |
| 最終ジャッジ日時 | 2025-09-06 13:17:23 |
| 合計ジャッジ時間 | 2,742 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
h,w, = map(int, input().split())
slist = [list(input()) for i in range(h)]
for hi in range(h):
l = 0
while l < w:
if slist[hi][l] == ".":
l += 1
continue
if slist[hi][l] == "y":
slist[hi][l+4] = "Y"
elif slist[hi][l] == "9":
slist[hi][l+1] = "Y"
l += 6
for hi in range(h):
print("".join(slist[hi]))