結果

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

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int size;
    cin >> size;
    int arr[16];
    string name1;
    cin >> name1;
    for(int i=0; i< size; i++){
        cin>> arr[i];
    }
    string s = "";
    for(int i = 0; i< size; i++){
        int temp = arr[i];
        char c = name1[temp-1];
        s+= c;
    }
    cout << s;


    return 0;
}
0