답안 #1092797

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1092797 2024-09-25T07:06:10 Z vibeslayer 평균 (COCI14_prosjek) Python 3
50 / 50
12 ms 2908 KB
n = map(int, input().split())
a = list(map(int, input().split()))

ans = []
for x in a:
    x = x * (len(ans)+1)
    ans.append(x - sum(ans))

print(' '.join(map(str, ans)))
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 2908 KB Output is correct
2 Correct 11 ms 2908 KB Output is correct
3 Correct 10 ms 2908 KB Output is correct
4 Correct 10 ms 2768 KB Output is correct
5 Correct 11 ms 2764 KB Output is correct
6 Correct 10 ms 2716 KB Output is correct
7 Correct 10 ms 2908 KB Output is correct
8 Correct 11 ms 2908 KB Output is correct
9 Correct 11 ms 2908 KB Output is correct
10 Correct 10 ms 2908 KB Output is correct