結果

問題 No.1335 1337
ユーザー MisterMister
提出日時 2021-01-15 21:55:52
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 513 ms
コンパイル使用メモリ 66,304 KB
最終ジャッジ日時 2025-01-17 19:16:09
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#line 1 "main.cpp"
#include <iostream>
#include <string>

using namespace std;

void solve() {
    string s, t;
    cin >> t >> s;

    for (char &c : s) {
        if (isdigit(c)) c = t[c - '0'];
    }
    cout << s << "\n";
}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    solve();

    return 0;
}
0