結果

問題 No.3261 yiwiy9 → yiwiY9
コンテスト
ユーザー Kazu
提出日時 2025-09-07 11:12:01
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 334 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 271 ms
コンパイル使用メモリ 95,848 KB
実行使用メモリ 89,788 KB
最終ジャッジ日時 2026-07-14 22:11:55
合計ジャッジ時間 6,075 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import re


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

grid = []

for _ in range(H):
    s = input()
    for c in s:
        if c == '.':
            continue
        if c == '9':
            s = re.sub("9yiwiy", "9Yiwiy", s)
        elif c == 'y':
            s = re.sub("yiwiy9", "yiwiY9", s)
    grid.append(s)

for g in grid:
    print(g)
0