1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
testCase=int(input())
ansList=[]
for i in range(testCase):
print("Scenario #%d:"%(i+1))
wordCount=int(input())
words=[]
for j in range(wordCount): words.append(input())
for j in range(int(input())):
tmp=list(map(int, input().split()))
ans=""
for k in range(1,len(tmp)):
ans+=words[tmp[k]]
print(ans)
print()
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 10426 기념일 2 (0) | 2021.12.03 |
---|---|
백준 9506 약수들의 합 (0) | 2021.12.03 |
백준 5533 유니크 (0) | 2021.12.03 |
백준 5426 비밀 편지 (0) | 2021.12.03 |
백준 2669 직사각형 네개의 합집합의 면적 구하기 (0) | 2021.12.03 |
댓글