結果
問題 | No.2827 Enter User Name to Play |
ユーザー |
![]() |
提出日時 | 2024-08-02 21:23:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 443 ms |
コンパイル使用メモリ | 41,600 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-08-02 21:23:26 |
合計ジャッジ時間 | 1,244 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
// // Created by HakuroKawashiro on 2024/8/2. // #include <cstdio> #include <cstring> #include <algorithm> #define ll long long using namespace std; ll n; char str[100]; int main() { scanf("%lld",&n); scanf("%s",str + 1); for (ll i = 1;i <= n;i++) { ll x; scanf("%lld",&x); printf("%c",str[x]); } return 0; }