-Code
for _ in range(int(input())):
n = int(input())
nums = list(map(int, input().split()))
alpa = list("abcdefghijklmnopqrstuvwxyz")
res = []
for num in nums:
temp = alpa.pop(num)
alpa.insert(0, temp)
res.append(temp)
print(*res, sep="")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 21895번 Rock-Paper-Scissors for three (0) | 2024.01.27 |
---|---|
[백준/파이썬] 5987번 String Function Encoding (0) | 2024.01.26 |
[백준/파이썬] 31281번 THE GOLDEN (0) | 2024.01.24 |
[백준/파이썬] 31282번 HUNTING DOG (0) | 2024.01.23 |
[백준/파이썬] 8965번 Circular Sequence (0) | 2024.01.22 |