結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2025-09-06 13:18:06 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 814 bytes |
| コンパイル時間 | 6,291 ms |
| コンパイル使用メモリ | 333,964 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 13:19:05 |
| 合計ジャッジ時間 | 7,694 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 18 RE * 5 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
int main() {
FAST_IO
int H, W;
cin >> H >> W;
vector<string> S(H);
for (int i = 0; i < H; i++) {
cin >> S[i];
}
string s1 = "yiwiy9";
string s2 = "9yiwiy";
for (int i = 0; i < H; i ++) {
for (int j = 0; j < W; j++) {
if (S[i][j] == '9') {
S[i][j + 1] = 'Y';
j += 5;
}
if (S[i][j] == 'y') {
S[i][j + 4] = 'Y';
j += 5;
}
}
}
for (int i = 0; i < H; i++) {
cout << S[i] << endl;
}
}
hiromi_ayase