結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
![]() |
提出日時 | 2025-09-06 14:02:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 1,976 ms |
コンパイル使用メモリ | 195,384 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-09-06 14:03:11 |
合計ジャッジ時間 | 3,024 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int H,W; cin>>H>>W; for(int i=0; i<H; i++){ string S; cin>>S; string t="."+S; int j=1; while(j<W+1){ if(t[j-1]=='.' && t[j]=='y'){ t[j+4]='Y'; j+=6; continue; } if(t[j-1]=='.' && t[j]=='9'){ t[j+1]='Y'; j+=6; continue; } j++; } for(int j=1; j<W+1; j++){ cout<<t[j]; } cout<<endl; } }