結果
問題 |
No.2827 Enter User Name to Play
|
ユーザー |
![]() |
提出日時 | 2025-04-19 16:14:11 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 5,709 ms |
コンパイル使用メモリ | 209,508 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-19 16:14:21 |
合計ジャッジ時間 | 6,696 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int,int> pi; #define F first #define S second #define PB push_back #define MP make_pair #define popcount __builtin_popcountll #define forn(i,a,b) for (int i = a; i < b; i++) void solve(){ int n;cin>>n; string s;cin>>s; vi arr(n); forn(i,0,n) cin>>arr[i]; forn(i,0,n){ cout<<s[arr[i]-1]; } } signed main(){ ios::sync_with_stdio(0); cin.tie(0); int t=1; // cin >> t; forn(i,0,t){ solve(); } }