結果
問題 | No.2827 Enter User Name to Play |
ユーザー |
![]() |
提出日時 | 2024-08-03 13:38:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 555 bytes |
コンパイル時間 | 2,819 ms |
コンパイル使用メモリ | 247,016 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-08-03 13:38:09 |
合計ジャッジ時間 | 4,176 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/dsu> using namespace std; using namespace atcoder; typedef long long ll; typedef pair<ll,ll> pi; #define ALL(x) x.begin(),x.end() #define LB(A,x) (ll)(lower_bound(ALL(A),x)-A.begin()) #define rep(i,a,b) for(int i=a;i<b;i++) using vi = vector<int>; using vvi = vector<vi>; using li =vector<ll>; using lli=vector<li>; void chmin(int &a, int b) { a = min(a, b); } const long long mod=998244353; //for (auto [key, val] : mp) int main() { int n;cin>>n; string s;cin>>s; rep(i,0,n){ int a;cin>>a; cout<<s[a-1]; } }