結果
| 問題 | No.3261 yiwiy9 → yiwiY9 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:11:08 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| + 136µs | |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 1,972 ms |
| コンパイル使用メモリ | 330,184 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-14 18:31:07 |
| 合計ジャッジ時間 | 3,778 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}