Submission #12143

#TimeUsernameProblemLanguageResultExecution timeMemory
12143kipa00Prosjek (COCI14_prosjek)C++98
50 / 50
0 ms1088 KiB
#include <cstdio> int main() { long long int arr[101]; int i, n; scanf("%d", &n); for (i=1; i<=n; ++i) { scanf("%lld", &arr[i]); } arr[0] = 0; for (i=0; i<=n; ++i) { arr[i] *= i; } for (i=1; i<=n; ++i) { printf("%lld ", arr[i] - arr[i - 1]); } printf("\n"); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...