結果

問題 No.1335 1337
ユーザー chacoder1
提出日時 2021-02-07 12:14:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 2,503 ms
コンパイル使用メモリ 191,704 KB
最終ジャッジ日時 2025-01-18 13:48:15
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(ll i=0;i<n;i++)

int main(){
  string a,s;
  cin>>a>>s;
  for(int i=0;i<s.length();i++){
    if(s.at(i)>='0' && s.at(i)<='9'){
      cout<<a.at(s.at(i)-'0');
    }
    else{
      cout<<s.at(i);
    }
  }
  cout<<endl;
  return 0;
}
0