Submission #560387

#TimeUsernameProblemLanguageResultExecution timeMemory
560387Trisanu_DasProsjek (COCI14_prosjek)C++17
0 / 50
1 ms340 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int a[n]; cin >> a[0]; for(int i = 1; i < n; i++){ int x; cin >> x; a[i] = (i + 1) * x - a[i - 1]; } for(int i = 0; i < n; i++) cout << a[i] << ' '; cout << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...