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)))
# |
Verdict |
Execution time |
Memory |
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 |