結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             vjudge1
                         | 
                    
| 提出日時 | 2025-04-18 22:36:28 | 
| 言語 | C++17(gcc12)  (gcc 12.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 1,290 bytes | 
| コンパイル時間 | 7,528 ms | 
| コンパイル使用メモリ | 206,996 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-04-18 22:36:39 | 
| 合計ジャッジ時間 | 7,163 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
// Bismillah 
#include<bits/stdc++.h>
#define ll long long
#define nl "\n"
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vector<int>>
#define vvl vector<vector<ll>>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define mod 1000000007
#define print(a) for(auto it: a) cout << it << " " << endl;
#define forn(a,n) for(int i = a ; i < n ; i++)
#define io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
void solve() {
    int x;
    cin >> x;
    string s; cin >> s;
    int arr[x];
    forn(0,x){
        int l;
        cin >> l;
        --l;
        arr[i] = l;
    }
    forn(0, x ){
        cout << s[arr[i]];
    }
}
signed main() {
    io;
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    int t = 1;
    // cin >> t;
    // auto st = chrono::high_resolution_clock::now();
    forn(1, t + 1) {
        // cout << "Case #" << i << ": ";
        solve();
        nl;
    }
    // cerr << "Time: " << (ld)(chrono::duration_cast<chrono::milliseconds>(
    //     chrono::high_resolution_clock::now() - st).count()) / 1000.0 << "s";
    return 0;
}
            
            
            
        
            
vjudge1