結果
| 問題 |
No.1335 1337
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-01-15 21:21:18 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 298 bytes |
| コンパイル時間 | 1,879 ms |
| コンパイル使用メモリ | 191,576 KB |
| 最終ジャッジ日時 | 2025-01-17 18:26:59 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000
int main(){
string s;
cin>>s;
string t;
cin>>t;
rep(_,t.size()){
if(isdigit(t[_])){
t[_] = s[t[_]-'0'];
}
}
cout<<t<<endl;
return 0;
}
沙耶花