結果
| 問題 |
No.1335 1337
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-07 11:17:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 2,615 ms |
| コンパイル使用メモリ | 192,088 KB |
| 最終ジャッジ日時 | 2025-01-19 12:32:58 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
int main(){
string a,s; cin>>a>>s;
for(int i=0; i<s.size(); i++){
if(isalpha(s[i])) cout<<s[i];
else cout<<a[s[i]-'0'];
}
cout<<endl;
}