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
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9316번 Hello Judge(python) (0) | 2021.02.20 |
---|---|
백준 알고리즘 9310번 Arithmetic and Geometric Sums(python) (0) | 2021.02.20 |
백준 알고리즘 9298번 Ant Entrapment(python) (0) | 2021.02.20 |
백준 알고리즘 9297번 Reducing Improper Fractions(python) (0) | 2021.02.20 |
백준 알고리즘 9295번 주사위(python) (0) | 2021.02.20 |