結果

問題 No.2827 Enter User Name to Play
ユーザー VvyLw
提出日時 2024-08-07 10:02:58
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 1,074 ms
コンパイル使用メモリ 106,404 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-08-07 10:03:03
合計ジャッジ時間 2,154 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize("O2")
#ifdef local
#include <C++/core/io/debug_print.hpp>
#else
#define dump(...) void(0);
#endif

#include <iostream>
#include <ranges>
int main() {
    std::cin.tie(nullptr) -> sync_with_stdio(false);
    int n;
    std::string s, t;
    std::cin >> n >> s;
    for([[maybe_unused]] const auto _: std::views::iota(0, n)) {
        int p;
        std::cin >> p;
        t += s[--p];
    }
    std::cout << t << '\n';
}
0