結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
Germanium32
|
| 提出日時 | 2025-09-06 14:09:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 375 bytes |
| コンパイル時間 | 1,990 ms |
| コンパイル使用メモリ | 194,624 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 14:09:19 |
| 合計ジャッジ時間 | 3,100 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#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]=='y'){
t[j+4]='Y';
j+=6;
continue;
}
if(t[j]=='9'){
t[j+1]='Y';
j+=6;
continue;
}
j++;
}
for(int j=1; j<W+1; j++){
cout<<t[j];
}
cout<<endl;
}
}
Germanium32