結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:11:08 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 311 bytes |
| コンパイル時間 | 3,565 ms |
| コンパイル使用メモリ | 273,364 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 13:13:27 |
| 合計ジャッジ時間 | 4,751 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int h,w;
cin>>h>>w;
for(int i=0;i<h;i++){
string s;
cin>>s;
for(int j=0;j<w;j++){
if(s[j]=='.')continue;
else if(s[j]=='y'){
s[j+4]='Y';
j+=5;
}else{
s[j+1]='Y';
j+=5;
}
}
cout<<s<<endl;
}
}