답안 #10368

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
10368 2014-10-20T10:12:45 Z gs14004 평균 (COCI14_prosjek) C++
50 / 50
0 ms 1088 KB
#include <cstdio>

int n,a[105];

int main(){
    scanf("%d",&n);
    for (int i=1; i<=n; i++) {
        scanf("%d",&a[i]);
    }
    for (int i=1; i<=n; i++) {
        printf("%lld ",1ll * a[i] * i - 1ll * a[i-1] * (i-1));
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct
6 Correct 0 ms 1088 KB Output is correct
7 Correct 0 ms 1088 KB Output is correct
8 Correct 0 ms 1088 KB Output is correct
9 Correct 0 ms 1088 KB Output is correct
10 Correct 0 ms 1088 KB Output is correct