結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー Kazu
提出日時 2025-09-07 11:04:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 55,240 KB
最終ジャッジ日時 2025-09-07 11:04:49
合計ジャッジ時間 3,089 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W = map(int, input().split())

grid = []

for _ in range(H):
    s = input()
    if "yiwiy9" in s:
        new_s = s.replace("yiwiy9", "yiwiY9")
    else:
        new_s = s
    if "9yiwiy" in new_s:
        s_new_s = new_s.replace("9yiwiy", "9Yiwiy")
    else:
        s_new_s = new_s
    grid.append(s_new_s)

for g in grid:
    print(g)
0