結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー Rumain831
提出日時 2025-09-06 13:11:56
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 431 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 77,964 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-06 13:14:54
合計ジャッジ時間 1,868 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;

int main(void){
  int h, w; cin >> h >> w;
  vector<string> s(h);
  for(auto&x:s) cin >> x;
  for(int i=0; i<h; i++){
    for(int j=0; j<w; j++){
      if(s[i][j]=='.') cout << '.';
      else{
        if(s[i][j]=='y') cout << "yiwiY9";
        else cout << "9Yiwiy";
        j+=5;
      }
    }
    cout << endl;
  }
  return 0;
}
0