結果

問題 No.3261 yiwiy9 → yiwiY9
コンテスト
ユーザー srjywrdnprkt
提出日時 2025-10-20 15:38:18
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 571 bytes
コンパイル時間 2,922 ms
コンパイル使用メモリ 279,472 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-10-20 15:38:23
合計ジャッジ時間 4,628 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
//#include <atcoder/modint>

using namespace std;
//using namespace atcoder;
using ll = long long;
//using mint = modint998244353;

int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    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.replace(j, 6, "9Yiwiy");
            else if (S.substr(j, 6) == "9Yiwiy") S.replace(j, 6, "yiwiy9");
        }
        cout << S << '\n';
    }

    return 0;
}
0