結果

問題 No.3261 yiwiy9 → yiwiY9
コンテスト
ユーザー cologne
提出日時 2025-11-14 22:51:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 55,124 KB
最終ジャッジ日時 2025-11-14 22:51:53
合計ジャッジ時間 2,657 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    h, w = map(int, input().split())
    for _ in range(h):
        s = input()
        s = s.replace('yiwiy9', 'yiwiY9')
        s = s.replace('9yiwiy', '9YiwiY')
        print(s)


if __name__ == "__main__":
    main()
0