結果
問題 |
No.2827 Enter User Name to Play
|
ユーザー |
![]() |
提出日時 | 2025-04-17 18:44:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 636 bytes |
コンパイル時間 | 2,093 ms |
コンパイル使用メモリ | 193,972 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-17 18:44:15 |
合計ジャッジ時間 | 3,183 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define speed ios_base::sync_with_stdio(false),cin.tie(nullptr) #define forn(x,n) for(int i=x;i<n;++i) #define fori(x,n) for(int i=x;i<n;++i) #define forj(y,m) for(int j=y;j<m;++j) #define ll long long int #define yes cout<<"YES\n" #define no cout<<"NO\n" #define pos cout<<"POSITIVE\n" #define neg cout<<"NEGATIVE\n" int main() { speed; int n; cin>>n; string s; cin>>s; vector<int> a(s.size()); forn(0,s.size()) { cin>>a[i]; } int len=s.size(); forn(0,len) { cout<<s[a[i]-1]; } // cout<<s<<"\n"; return 0; }