結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー hamikan
提出日時 2025-09-06 13:26:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 1,985 ms
コンパイル使用メモリ 193,152 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-09-06 13:26:52
合計ジャッジ時間 3,050 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int H, W;
    cin >> H >> W;
    for(int i=0; i<H; i++) {
        string S;
        cin >> S;
        for(int j=0; j<=W-6; j++) {
            if(S.substr(j, 6) == "yiwiy9") S[j+4] = 'Y';
            if(S.substr(j, 6) == "9yiwiy") S[j+1] = 'Y';
        }
        cout << S << endl;
    }
}
0