Agorithm/백준 알고리즘
백준 알고리즘 9299번 Math Tutoring(python)
kimjinho1
2021. 2. 20. 10:19
728x90
반응형
단순 구현 문제이다.
for case in range(int(input())):
t = list(map(int, input().split()))
n = t[0]; li = t[1:]
res = []
for i in range(n):
res.append(li[i]*(n-i))
print(f"Case {case+1}: {n-1}", *res)
728x90
반응형