結果
問題 | No.2827 Enter User Name to Play |
ユーザー |
![]() |
提出日時 | 2024-08-02 22:46:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 70,940 KB |
最終ジャッジ日時 | 2025-02-23 20:14:27 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<iostream> #include<vector> using namespace std; int main() { int n; string s; cin >> n >> s; string ans=""; for(int i=0;i<n;i++){ int a; cin >> a; ans+=s[a-1]; } cout << ans << endl; }