# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1191729 | peteza | 평균 (COCI14_prosjek) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int n;
ll last, x;
int main() {
cin.tie(0) -> sync_with_stdio(0);
cin >> n;
for(int i=1;i<=n;i++) {
cin >> x;
cout << x*i - last*(i-1) << ' ';
last = x;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |