結果

問題 No.2827 Enter User Name to Play
ユーザー elphe
提出日時 2024-08-11 15:18:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 661 ms
コンパイル使用メモリ 66,400 KB
最終ジャッジ日時 2025-02-23 22:25:04
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	uint16_t N, i, P;
	string S;
	cin >> N;
	S.reserve(N), cin >> S;
	for (i = 0; i != N; ++i)
		cin >> P, cout << S[P - 1];

	cout << '\n';
	return 0;
}
0