結果

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

ソースコード

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;
        string T = S;
        for (int j=0; j<=W-6; j++){
            if (S.substr(j, 6) == "yiwiy9") T.replace(j, 6, "yiwiY9");
            else if (S.substr(j, 6) == "9yiwiy") T.replace(j, 6, "9Yiwiy");
        }
        cout << T << '\n';
    }

    return 0;
}
0