結果

問題 No.1335 1337
ユーザー nao109nao109
提出日時 2021-03-29 11:50:42
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 532 bytes
コンパイル時間 1,135 ms
コンパイル使用メモリ 144,412 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-08-19 16:04:51
合計ジャッジ時間 2,733 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s,t;
    cin >> s >> t;
    for(int i=0; i<t.size(); i++){
        if(t[i]=='0') t[i]=s[0];
        else if(t[i]=='1') t[i]=s[1];
        else if(t[i]=='2') t[i]=s[2];
        else if(t[i]=='3') t[i]=s[3];
        else if(t[i]=='4') t[i]=s[4];
        else if(t[i]=='5') t[i]=s[5];
        else if(t[i]=='6') t[i]=s[6];
        else if(t[i]=='7') t[i]=s[7];
        else if(t[i]=='8') t[i]=s[8];
        else if(t[i]=='9') t[i]=s[9];
    }
    cout << t << endl;
}
0