結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:45:37 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 670 bytes |
| コンパイル時間 | 3,221 ms |
| コンパイル使用メモリ | 274,544 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-09-06 13:45:54 |
| 合計ジャッジ時間 | 4,262 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define ALL(a) (a).begin(), (a).end()
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define endl '\n'
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int H, W;
cin >> H >> W;
for (; H--;) {
string S;
cin >> S;
for (int i = 0; i < ssize(S) - 2; i++) {
if (S[i] == 'i' && S[i + 1] == 'y' && S[i + 2] == '9') {
S[i + 1] = 'Y';
}
if (S[i] == '9' && S[i + 1] == 'y' && S[i + 2] == 'i') {
S[i + 1] = 'Y';
}
}
cout << S << endl;
}
}