結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             vjudge1
                         | 
                    
| 提出日時 | 2025-04-18 03:09:16 | 
| 言語 | C++17(clang)  (17.0.6 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 669 bytes | 
| コンパイル時間 | 5,990 ms | 
| コンパイル使用メモリ | 171,356 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-04-18 03:09:24 | 
| 合計ジャッジ時間 | 7,144 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define debug(x) cout << #x << " = " << x << "\n";
#define vdebug(a) cout << #a << " = "; for(auto x: a) cout << x << " "; cout << "\n";
#define int long long int
#define endl "\n"
#define fori(a, n) for(int i = a; i < n; i++)
#define vi vector<int> 
#define print(x) cout << x << endl;
#define all(a) a.begin(), a.end()
void solve() {
	int n;
	cin >> n;
	string s;
	cin >> s;
	vi a(n);
	for(auto &x : a) {
		cin >> x;
		cout << s[x-1];
	}
	cout << endl;
	return;
}
signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL); cout.tie(NULL);
	int t = 1;
	//cin >> t;
	while(t--) 
		solve();
	return 0;
}
            
            
            
        
            
vjudge1