結果

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

ソースコード

diff #

#include<iostream>
#include<vector>
#include<set>
using namespace std;

int main(){
    int t=1;
    while (t--)
    {
        int n;
        cin>> n;
        string s1;
        cin>>s1;
        vector<int> v1;
        for(int i=0;i<n;i++){
            int val;cin>>val;
            v1.push_back(val);
        }
        string temp;
        for(int i=0;i<n;i++){
            temp+=s1[v1[i]-1];

        }
        cout<<temp<<endl;
         
    }
    
}
0