# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
12143 | kipa00 | Prosjek (COCI14_prosjek) | C++98 | 0 ms | 1088 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 <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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |