結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-06 13:43:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 323 bytes |
| コンパイル時間 | 589 ms |
| コンパイル使用メモリ | 64,212 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-06 13:43:24 |
| 合計ジャッジ時間 | 1,530 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include<iostream>
#include<cassert>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N,M;cin>>N>>M;
for(;N--;)
{
string S;cin>>S;
for(int i=0;i<M;)
{
if(S[i]=='.')i++;
else
{
if(S[i]=='9')S[i+1]='Y';
else S[i+4]='Y';
i+=6;
}
}
cout<<S<<"\n";
}
}