Submission #10368

# Submission time Handle Problem Language Result Execution time Memory
10368 2014-10-20T10:12:45 Z gs14004 Prosjek (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));
    }
}
# Verdict Execution time Memory 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