結果

問題 No.1335 1337
ユーザー currypork2019currypork2019
提出日時 2021-01-15 21:23:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,763 bytes
コンパイル時間 3,081 ms
コンパイル使用メモリ 166,132 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-17 15:52:29
合計ジャッジ時間 3,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>        // string, to_string, stoi
#include <vector>        // vector
#include <algorithm>     // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility>       // pair, make_pair
#include <tuple>         // tuple, make_tuple
#include <cstdint>       // int64_t, int*_t
#include <cstdio>        // printf
#include <map>           // map
#include <queue>         // queue, priority_queue
#include <set>           // set
#include <stack>         // stack
#include <deque>         // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset>        // bitset
#include <cctype>        // isupper, islower, isdigit, toupper, tolower
#include <iomanip>       //setprecision
#include <math.h>
#include <functional>
#include <climits>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
template <typename T>
bool chmax(T &u, const T z)
{
    if (u < z)
    {
        u = z;
        return true;
    }
    else
        return false;
}
template <typename T>
bool chmin(T &u, const T z)
{
    if (u > z)
    {
        u = z;
        return true;
    }
    else
        return false;
}
#define ll long long
typedef pair<ll,ll> P;
const ll INF = 1LL << 60;
//const ll MOD=1000000007;
int MOD = 998244353;
#define rep(i,a, n) for (int i = a; i < (int)(n); ++i)
//using mint=modint1000000007;
int H, W;
vector<string> fi;
void chmin(int& t, int f) { if (f < t) t = f; }
ll dp[2][20000001];//0=↑↑1=➡➡2=↑➡3=➡↑
int op(int a,int b){
    return a^b;
}
int e(){
    return 0;
}
int main(){
    string a,b;cin>>a>>b;
    rep(i,0,b.size()){
        if(b[i]<='9')cout<<a[(ll)b[i]-'0'];
        else cout<<b[i];
    }
    cout<<endl;
}

0