結果
| 問題 | 
                            No.1335 1337
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-01-15 22:58:11 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 540 bytes | 
| コンパイル時間 | 1,834 ms | 
| コンパイル使用メモリ | 201,028 KB | 
| 最終ジャッジ日時 | 2025-01-17 20:17:57 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 14 | 
ソースコード
#include <bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL);
using namespace std;
int solve(){
    map<int, char> m;
    string s,a;
    string ans = "";
    cin>>s>>a;
    for(int i = 0 ; i<10;i++){
        m[i]=s[i];
    }
    for(int i =0; i<a.size();i++){
        if(isdigit(a.at(i))){
            ans+=m[(int)a[i]-48];
        }
        else{
            ans+=a[i];
        }
    }
    cout<<ans<<endl;
    return 0;
}
int main(){
    fastio
    solve();
    return 0;
}