結果
| 問題 | No.3261 yiwiy9 → yiwiY9 | 
| コンテスト | |
| ユーザー |  高橋ゆに | 
| 提出日時 | 2025-04-19 01:25:00 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 386 bytes | 
| コンパイル時間 | 200 ms | 
| コンパイル使用メモリ | 82,688 KB | 
| 実行使用メモリ | 66,560 KB | 
| 最終ジャッジ日時 | 2025-05-11 23:56:16 | 
| 合計ジャッジ時間 | 2,456 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 26 | 
ソースコード
H, W = map(int, input().split())
S = []
for i in range(H):
    S.append(list(input()))
    T1, T2 = "yiwiy9", "9yiwiy"
    j = 0
    while j < W - 5:
        s = S[i][j : j + 6]
        if s == T1:
            S[i][j + 4] = "Y"
            j += 6
        elif s == T2:
            S[i][j + 1] = "Y"
            j += 6
        else:
            j += 1
for s in S:
    print("".join(s))
            
            
            
        