# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
383308 | Iwanttobreakfree | Prosjek (COCI14_prosjek) | C++17 | 2 ms | 384 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 <iostream>
#include <vector>
using namespace std;
int main(){
long long int n,m,sum=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>m;
int x=m*i-sum;
sum+=x;
cout<<x<<' ';
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |