結果
| 問題 | No.3261 yiwiy9 → yiwiY9 | 
| コンテスト | |
| ユーザー |  高橋ゆに | 
| 提出日時 | 2025-04-19 01:23:30 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 383 bytes | 
| コンパイル時間 | 495 ms | 
| コンパイル使用メモリ | 82,644 KB | 
| 実行使用メモリ | 68,796 KB | 
| 最終ジャッジ日時 | 2025-05-11 23:56:13 | 
| 合計ジャッジ時間 | 3,250 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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[j : j + 6]
        if s == T1:
            S[i][j + 4] = "Y"
            j += 6
        elif s == T2:
            S[j][j + 1] = "Y"
            j += 6
        else:
            j += 1
for s in S:
    print("".join(s))
            
            
            
        