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