結果
問題 |
No.1335 1337
|
ユーザー |
|
提出日時 | 2021-01-15 21:59:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 1,736 ms |
コンパイル使用メモリ | 165,992 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-26 14:37:25 |
合計ジャッジ時間 | 2,271 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 1 WA * 13 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define ll long long const int maxn = 2e5+5; int main(){ string s,t; cin>>s>>t; for(int i=0;i<t.length();i++){ if(t[i]-'0'<10&&t[i]-'0'>=0){ cout<<s[t[i]-'0']; }else cout<<s[i]; } cout<<"\n"; }