Submission #16361

#TimeUsernameProblemLanguageResultExecution timeMemory
16361eaststarProsjek (COCI14_prosjek)C++14
50 / 50
0 ms1084 KiB
#include <stdio.h> int main(){ int i,n; long long a=0,b; scanf("%d",&n); for(i=1;i<=n;++i){ scanf("%lld",&b); printf("%lld ",b*i-a*(i-1)); a=b; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...