| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1342415 | nathlol2 | Prosjek (COCI14_prosjek) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, sm;
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> n;
for(int i = 1;i<=n;i++){
int x; cin >> x;
cout << x * i - sm << ' ';
sm += x * i - sm;
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
