結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー まぬお
提出日時 2025-09-06 13:15:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 654 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 79,488 KB
最終ジャッジ日時 2025-09-06 13:17:57
合計ジャッジ時間 3,494 ms
ジャッジサーバーID
(参考情報)
judge / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations
from heapq import heappop, heappush
import math, sys
# input = sys.stdin.readline
_int = lambda x: int(x)-1
MOD = 998244353 #10**9+7
INF = 1<<60
Yes, No = "Yes", "No"

H, W = map(int, input().split())
S = [list(input()) for _ in range(H)]

for i in range(H):
    for j in range(W-5):
        st = ""
        for k in range(6):
            st += S[i][j+k]
        if st == "yiwiy9":
            S[i][j+4] = "Y"
        if st == "9yiwiy":
            S[i][j+1] = "Y"

for i in range(H):
    print(*S[i],sep="")
0