# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713505 | ALTAKEXE | 평균 (COCI14_prosjek) | C++14 | 2 ms | 212 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;
int main(){
long long int n,t=0,s=0;
cin>>n;
while(n--){
long long int b;
cin>>b;
int a=b*(t+1)-s;
if(t>0) cout<<" "<<a;
else cout<<a;
t++;
s+=a;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |