結果
| 問題 | No.3419 Ars magna |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 14:02:13 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 3,072 ms |
| コンパイル使用メモリ | 337,104 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 14:02:36 |
| 合計ジャッジ時間 | 3,678 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int n;
cin>>n;
string s;
cin>>s;
vector<int> p(n);
for(int i=0;i<n;i++)cin>>p[i],p[i]--;
string t;
for(int i=0;i<n;i++)t+=s[p[i]];
cout<<t<<endl;
}