結果
問題 | No.1335 1337 |
ユーザー |
|
提出日時 | 2021-01-15 22:15:57 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 496 bytes |
コンパイル時間 | 1,142 ms |
コンパイル使用メモリ | 138,516 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 15:49:25 |
合計ジャッジ時間 | 1,760 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
#include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; using ll = long long; int main() { string a, s; cin >> a >> s; int n = s.length(); for(int i = 0; i < n; i++) { if(s[i] >= '0' && s[i] <= '9') { cout << a[s[i] - '0']; } else { cout << s[i]; } } cout << endl; return 0; }