結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 15:13:59 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 459 bytes |
| コンパイル時間 | 3,352 ms |
| コンパイル使用メモリ | 274,944 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-09-06 15:14:15 |
| 合計ジャッジ時間 | 4,068 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 19 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll =long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll H,W;
cin>>H>>W;
for(int h=0;h<H;h++){
string S;
cin>>S;
for(int i=0;i<W-1;i++){
if(S[i]=='y'&&S[i+1]=='9'){
S[i]='Y';
}
if(S[i]=='9'&&S[i+1]=='y'){
S[i+1]='Y';
}
}
cout<<S<<"\n";
}
}