제출 #104654

#제출 시각아이디문제언어결과실행 시간메모리
104654MatesV13Prosjek (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...