結果

問題 No.3261 yiwiy9 → yiwiY9
コンテスト
ユーザー Kazu
提出日時 2025-09-07 11:28:46
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 132 ms / 2,000 ms
+ 929µs
コード長 465 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 254 ms
コンパイル使用メモリ 96,236 KB
実行使用メモリ 88,700 KB
最終ジャッジ日時 2026-07-14 22:12:01
合計ジャッジ時間 5,657 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import re


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

grid = []

for _ in range(H):
    temp = ""
    s = input()
    i = 0
    while i < len(s):
        if s[i] == '.':
            temp += s[i]
            i += 1
            continue
        if s[i] == '9':
            temp += "9Yiwiy"
            i += 6
            continue
        if s[i] == 'y':
            temp += "yiwiY9"
            i += 6
            continue
    grid.append(temp)


for g in grid:
    print(g)
0