結果
| 問題 | No.2827 Enter User Name to Play |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-04-17 17:56:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,070 bytes |
| 記録 | |
| コンパイル時間 | 3,113 ms |
| コンパイル使用メモリ | 275,344 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-17 17:56:23 |
| 合計ジャッジ時間 | 4,054 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
//Maqsad Nahi Bhoolna
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define nl cout<<"\n"
#define re return 0
#define vl vector<ll>
#define vll vector<vector<ll>>
#define vb vector<bool>
#define vbb vector<vector<bool>>
#define us unordered_set<ll>
#define all(vec) vec.begin(),vec.end()
#define sahi(vec) sort(vec.begin(),vec.end())
#define ulta(vec) sort(vec.begin(),vec.end(),greater<typename decltype(vec) :: value_type>())
#define fori(a,b) for(ll i=a;i<b;i++)
#define forj(a,b) for(ll j=a;j<b;j++)
#define fork(a,b) for(ll k=a;k<b;k++)
#define yes(expr) (expr)? cout<<"yes" : cout<<"no"
#define Yes(expr) (expr)? cout<<"Yes" : cout<<"No"
#define YES(expr) (expr)? cout<<"YES" : cout<<"NO"
#define input(vec) fork(0,vec.size()) cin>>vec[k]
#define print(vec) for(auto x:vec) cout<<x<<" "
#define io ios_base::sync_with_stdio;cin.tie(nullptr)
int main()
{
io;
ll n;
cin>>n;
string a;
cin>>a;
vl arr(n);
input(arr);
fori(0,n)
{
cout<<a[arr[i]-1];
}
nl;
return 0;
}
vjudge1