結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-09-10 00:24:26 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 879 bytes |
| コンパイル時間 | 3,214 ms |
| コンパイル使用メモリ | 278,716 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-09-10 00:24:30 |
| 合計ジャッジ時間 | 4,524 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int h, w;
cin >> h >> w;
vector<string> s(h);
rep(i, h) cin >> s[i];
rep(i, h) {
while (true) {
auto pos = s[i].find("yiwiy9");
if (pos == string::npos) break;
s[i].replace(pos, 6, "\\");
}
while (true) {
auto pos = s[i].find("9yiwiy");
if (pos == string::npos) break;
s[i].replace(pos, 6, "/");
}
while (true) {
auto pos = s[i].find("\\");
if (pos == string::npos) break;
s[i].replace(pos, 1, "yiwiY9");
}
while (true) {
auto pos = s[i].find("/");
if (pos == string::npos) break;
s[i].replace(pos, 1, "9Yiwiy");
}
cout << s[i] << '\n';
}
return 0;
}
a01sa01to