結果

問題 No.1335 1337
ユーザー bonKotsu
提出日時 2021-05-28 00:05:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 1,626 ms
コンパイル使用メモリ 166,160 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-06 17:49:01
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define P pair<int, int>

int main() {
  string a, s;
  cin >> a >> s;
  rep(i, s.size()) {
    if (s[i]-'0' >= 0 && s[i]-'0' <= 9) {
      cout << a[s[i]-'0'];
    } else cout << s[i];
  }
  cout << endl;


}
0