# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
31176 | foul3r | Prosjek (COCI14_prosjek) | C++14 | 0 ms | 2020 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>
using namespace std;
long long A[110], B[110];
int main(){
long long n, i;
scanf("%lld", &n);
for(i=1;i<=n;i++){
scanf("%lld", &B[i]);
A[i] = B[i]*i-(B[i-1])*(i-1);
printf("%lld ", A[i]);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |