結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:11:38 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 589 bytes |
| コンパイル時間 | 3,026 ms |
| コンパイル使用メモリ | 276,528 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 13:14:05 |
| 合計ジャッジ時間 | 4,299 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
#include <cstdlib>
#include <math.h>
using namespace std;
using ll = long long;
int main(){
int h,w;
cin >> h >> w;
for(int i=0;i<h;i++){
string s;
cin >> s;
for(int j=0;j<w-5;j++){
string u;
for(int k=0;k<6;k++){
u.push_back(s[j+k]);
}
if(u=="yiwiy9"){
s[j+4]='Y';
j+=5;
}else if(u=="9yiwiy"){
s[j+1]='Y';
j+=5;
}
}
cout << s << endl;
}
return 0;
}