結果

問題 No.1335 1337
ユーザー warm4C0
提出日時 2024-05-25 11:18:08
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 3,376 ms
コンパイル使用メモリ 242,796 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-20 19:40:22
合計ジャッジ時間 4,114 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    string a, s;
    cin >> a >> s;

    for (char c: s) {
        if (isdigit(c)) {
            printf("%c", a[c-'0']);
        } else {
            printf("%c", c);
        }
    }
    puts("");

    return 0;
}
0