# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
758108 | KN200711 | Prosjek (COCI14_prosjek) | C++14 | 1 ms | 296 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 <bits/stdc++.h>
# define ll long long
using namespace std;
int main() {
int N;
scanf("%d", &N);
ll sum = 0ll;
for(int i=1;i<=N;i++) {
ll a;
scanf("%d", &a);
printf("%d ", (1ll * a * 1ll * i) - sum);
sum = (1ll * a * 1ll * i);
}
printf("\n");
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |