結果
| 問題 | No.3419 Ars magna |
| コンテスト | |
| ユーザー |
ZeriToki
|
| 提出日時 | 2026-01-11 13:32:03 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 427 bytes |
| 記録 | |
| コンパイル時間 | 1,707 ms |
| コンパイル使用メモリ | 214,892 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 13:32:33 |
| 合計ジャッジ時間 | 2,212 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long mod=998244353;
const long long mod2=469762049;
int main(){
cin.tie(0)->sync_with_stdio(0);
cout.tie(0);
int N;
string S;
cin>>N>>S;
int P[N+1];
for(int i=1;i<=N;i++) cin>>P[i];
S='-'+S;
for(int i=1;i<=N;i++){
cout<<S[P[i]];
}
cout<<endl;
}
ZeriToki