結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ぬるぽ
                         | 
                    
| 提出日時 | 2024-08-02 21:41:53 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 152 ms / 2,000 ms | 
| コード長 | 877 bytes | 
| コンパイル時間 | 298 ms | 
| コンパイル使用メモリ | 82,444 KB | 
| 実行使用メモリ | 91,008 KB | 
| 最終ジャッジ日時 | 2024-08-02 21:41:59 | 
| 合計ジャッジ時間 | 4,969 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
from copy import deepcopy, copy
import sys
import io
from typing import Optional
import time
from random import randrange, randint, random, uniform
import sys, io
from collections import deque, defaultdict
import heapq
from collections import Counter
import math
from math import gcd
from functools import lru_cache
from itertools import combinations, permutations
from bisect import bisect_left, bisect_right
from itertools import groupby
from itertools import accumulate
from math import factorial
import decimal
import math
# from sortedcontainers import SortedList
# import pypyjit
# pypyjit.set_param("max_unroll_recursion=-1")
sys.setrecursionlimit(1000000000)
sys.set_int_max_str_digits(1000000000)
start_time = time.time()
N = int(input())
S = list(input())
P = [int(x) - 1 for x in input().split()]
T = []
for p in P:
    T.append(S[p])
print("".join(T))
            
            
            
        
            
ぬるぽ