結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             vjudge1
                         | 
                    
| 提出日時 | 2025-04-17 17:56:13 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 1,077 bytes | 
| コンパイル時間 | 3,053 ms | 
| コンパイル使用メモリ | 275,328 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-04-17 17:56:18 | 
| 合計ジャッジ時間 | 4,517 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
/*
*    Author: asharusmani
*    Created: Thursday, 17.04.2025 10:05 AM (GMT+5:30)
*
*    ? If the world was ending, I'd wanna be next to you ?
*    ? If the party was over and our time on Earth was through ?
*    ? I'd wanna hold you just for a while... and die with a smile ?
*/
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define nl endl
#define double long double
#define pb push_back
#define forn(i,a,n) for(int i=a;i<n;++i)
#define all(a) a.begin(),a.end()
#define getunique(v) {sort(all(v)); v.erase(unique(all(v)), v.end());}
#define MOD(a,b) ((a%b)+b)%b
#define vi vector<int>
#define vb vector<bool>
#define vvi vector<vector<int>>
#define vd vector<double>
#define vs vector<string>
#define vll vector<ll>
#define fastnuces ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);int t = 1;
void solve(){
int n;
cin>>n;
string s;
cin>>s;
vi perm(n);
forn(i,0,n)cin>>perm[i];
string ans(n,' ');
forn(i,0,n)ans[i]=s[perm[i]-1];
cout<<ans<<nl;
}
int32_t main() {
    fastnuces;
   // cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}
            
            
            
        
            
vjudge1