結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
DeltaStruct
|
| 提出日時 | 2025-08-06 21:07:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 1,933 ms |
| コンパイル使用メモリ | 198,396 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-08-06 21:07:40 |
| 合計ジャッジ時間 | 3,511 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int h,w; cin >> h >> w; vector<string> A(h); for (auto& a:A) cin >> a;
for (int i(0);i < h;++i){
for (int k(5);k < w;++k){
if (A[i].substr(k-5,6)=="yiwiy9") A[i][k-1] = 'Y';
if (A[i].substr(k-5,6)=="9yiwiy") A[i][k-4] = 'Y';
}
}
for (auto a:A) cout << a << endl;
}
DeltaStruct