結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
![]() |
提出日時 | 2025-09-06 14:42:54 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 3,443 ms |
コンパイル使用メモリ | 278,116 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-09-06 14:42:59 |
合計ジャッジ時間 | 4,486 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 17 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string r="yiwiy9",l="9yiwiy"; int h,w; cin>>h>>w; vector<string> s(h); for (int i=0;i<h;i++) cin>>s[i]; for (int i=0;i<h;i++){ for (int j=0;j+5<w;j++){ string t=s[i].substr(j,6); if (t==r) s[i][j+4]='Y'; if (t==l) s[i][j+1]='Y'; } cout<<s[i]<<endl; } }