結果
| 問題 |
No.1335 1337
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-15 21:27:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 719 bytes |
| コンパイル時間 | 1,464 ms |
| コンパイル使用メモリ | 167,432 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 13:17:12 |
| 合計ジャッジ時間 | 2,055 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define rep(i, n) for(ll i=0; i<n; i++)
#define rrep(i, n) for(ll i=n-1; i>=0; i--)
#define rep2(i, a, b) for(ll i=a; i<b; i++)
#define Pii pair<int, int>
#define Pll pair<ll, ll>
#define fi first
#define se second
#define Vi vector<int>
#define VVi vector<vector<int>>
#define Vl vector<ll>
#define VVl vector<vector<ll>>
using namespace std;
string YES[2] = {"NO", "YES"};
string Yes[2] = {"No", "Yes"};
string yes[2] = {"no", "yes"};
int main(){
string a, s;
cin >> a >> s;
rep(i, s.size()){
if(s[i]-'0'<10){
cout<<a[s[i]-'0'];
}else{
cout<<s[i];
}
}
cout<<endl;
return 0;
}