Submission #335628

#TimeUsernameProblemLanguageResultExecution timeMemory
335628JoshcProsjek (COCI14_prosjek)Cpython 3
50 / 50
19 ms2924 KiB
n = int(input()) num = input().split() o = 0 for i in range(n - 1): a = (int(num[i]) * (i + 1)) - o o += a print(a, end = ' ') print((int(num[-1]) * n) - o)
#Verdict Execution timeMemoryGrader output
Fetching results...