結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
![]() |
提出日時 | 2025-09-14 11:43:08 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 433 bytes |
コンパイル時間 | 717 ms |
コンパイル使用メモリ | 88,040 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-09-14 11:43:15 |
合計ジャッジ時間 | 1,838 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 17 |
ソースコード
// ,,廿_廿,, #include<iostream> #include<vector> using namespace std; int main(){ int h,w;cin>>h>>w; vector<string>hw(h);for(int i=0;i<h;++i)cin>>hw[i]; string yiwiy[] { "yiwiy9", "9yiwiy", "yiwiY9", "9Yiwiy", }; for(int i=0;i<h;++i){ for(int j=0;j<w-5;++j){ string str=hw[i].substr(j,6); if(str==yiwiy[0])hw[i][j+4]='Y'; if(str==yiwiy[1])hw[i][j+1]='Y'; } } for(int i=0;i<h;++i)cout<<hw[i]<<'\n'; }