結果
| 問題 | No.3419 Ars magna |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2026-01-11 17:12:27 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 444 bytes |
| 記録 | |
| コンパイル時間 | 426 ms |
| コンパイル使用メモリ | 52,428 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 17:12:28 |
| 合計ジャッジ時間 | 977 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3419.cc: No.3419 Ars magna - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 100;
/* typedef */
/* global variables */
char s[MAX_N + 4];
/* subroutines */
/* main */
int main() {
int n;
scanf("%d%s", &n, s);
for (int i = 0; i < n; i++) {
int pi;
scanf("%d", &pi), pi--;
putchar(s[pi]);
}
putchar('\n');
return 0;
}
tnakao0123