結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    
string s;
int temp;
cin>>temp;
cin>>s;

for (int i = 0; i < s.length(); i++)
{
    int t;
    cin>>t;
    // cout<<endl<<t<<endl;
    cout<<s[t-1];
}

    
}
0