Submission #685643

#TimeUsernameProblemLanguageResultExecution timeMemory
685643mdubProsjek (COCI14_prosjek)C++14
50 / 50
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; int main () { int n; cin >> n; long long sum; cin >> sum; cout << sum << " "; for (int i = 1; i < n; i++) { long long num; cin >> num; cout << num*(i + 1)-sum << " "; sum = num*(i + 1); } }
#Verdict Execution timeMemoryGrader output
Fetching results...