結果
| 問題 | No.3261 yiwiy9 → yiwiY9 |
| コンテスト | |
| ユーザー |
l33t
|
| 提出日時 | 2025-09-07 06:04:36 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 583 bytes |
| コンパイル時間 | 3,528 ms |
| コンパイル使用メモリ | 276,008 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-09-07 06:04:41 |
| 合計ジャッジ時間 | 5,010 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 19 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define all(obj) (obj).begin(), (obj).end()
using ll = long long;
using namespace std;
int main() {
int H,W;cin>>H>>W;
vector<string> S(H);
rep(i,H) cin>>S[i];
for(int y = 0; y < H; y++){
for(int x = 0; x < W-1; x++){
if( S[y][x] == 'y'&& S[y][x+1]== '9'){
S[y][x] = 'Y';
}
if( S[y][x] == '9'&& S[y][x+1]== 'y'){
S[y][x+1] = 'Y';
}
}
}
for(auto s:S){
cout << s << endl;
}
}
l33t