結果

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

ソースコード

diff #

#include "bits/stdc++.h"
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main()
{
    int n=0;
    int a=0;
    string s;
    vector<int> v;
    cin>>n;
    cin>>s;
    
    for(int i=0;i<n;i++){
        cin>>a;
        v.push_back(a);
    }
    
    for(int i=0;i<n;i++){
        cout<<s[v[i]-1];
    }
    

    return 0;
}
0