結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:51:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 306 bytes |
| コンパイル時間 | 1,934 ms |
| コンパイル使用メモリ | 195,008 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 13:51:19 |
| 合計ジャッジ時間 | 3,088 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
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;
if(s[j] == '9') s[j + 1] = 'Y', j += 5;
else s[j + 4] = 'Y', j += 5;
}
cout << s << endl;
}
}