# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
392817 | rainboy | Prosjek (COCI14_prosjek) | C11 | 1 ms | 280 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
#define N 100
int main() {
static long long aa[N];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%lld", &aa[i]);
aa[i] *= i + 1;
}
for (i = n - 1; i > 0; i--)
aa[i] -= aa[i - 1];
for (i = 0; i < n; i++)
printf("%lld ", aa[i]);
printf("\n");
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |