結果

問題 No.2827 Enter User Name to Play
ユーザー friedrice
提出日時 2024-08-05 13:32:12
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 258 bytes
コンパイル時間 2,813 ms
コンパイル使用メモリ 247,184 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-08-05 13:32:19
合計ジャッジ時間 6,739 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int N;
	string S;
	cin >> N >> S;
	vector<int> P(N);
	for(int i = 0; i < N; i++) {
		cin >> P.at(i);
	}
	string T = "";
	for(int i = 0; i < N; i++) {
		T += S.at(P.at(i));
	}
	cout << T << endl;
}
0