Submission #104654

#TimeUsernameProblemLanguageResultExecution timeMemory
104654MatesV13평균 (COCI14_prosjek)C++11
50 / 50
4 ms512 KiB
#include <bits/stdc++.h> using namespace std; long long n, stara, nova, a; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; for (int i=1;i<=n;i++){ cin >> a; nova = a*i; cout << nova-stara << " "; stara = nova; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...