結果

問題 No.2827 Enter User Name to Play
ユーザー Hyoka7
提出日時 2024-08-03 00:21:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 517 bytes
コンパイル時間 1,425 ms
コンパイル使用メモリ 168,856 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-03 00:21:03
合計ジャッジ時間 2,637 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < (int)(n); i++)
using namespace std;

void faster() {
    ios::sync_with_stdio(false);
    cin.tie(0);
}

template <typename T>
void input(T &x) {
    cin >> x;
}
template <typename T, typename... Args>
void input(T &x, Args&... args) {
    cin >> x;
    input(args...);
}

int main() {
    faster();
    int n; string s;
    input(n,s);
    vector<int> name(n);
    rep(i,0,n){
    	int pos;
    	input(pos);
    	cout<<s[pos-1];
    }
    return 0;
}
0