답안 #104654

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
104654 2019-04-08T14:08:16 Z MatesV13 평균 (COCI14_prosjek) C++11
50 / 50
4 ms 512 KB
#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;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 512 KB Output is correct
2 Correct 2 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 2 ms 384 KB Output is correct
6 Correct 3 ms 384 KB Output is correct
7 Correct 2 ms 384 KB Output is correct
8 Correct 2 ms 384 KB Output is correct
9 Correct 2 ms 384 KB Output is correct
10 Correct 3 ms 392 KB Output is correct