Submission #483912

#TimeUsernameProblemLanguageResultExecution timeMemory
483912ktkeremProsjek (COCI14_prosjek)C++17
50 / 50
1 ms308 KiB
#include"bits/stdc++.h" using namespace std; typedef long long ll; typedef unsigned long long ull; ll _i=0; #define ffn(x) _i=x #define fora(y,x) for(ll y=_i;x>y;y++) #define pb push_back #define pf push_front #define debu cout << "hello\n" #define fi first #define sec second const ll limit =1000000007; const ll ous=150005; void solve(){ ll n; cin >> n; ll ar[n]; fora(i,n){ cin >> ar[i]; } ll sum = ar[0] , d = 2; cout << ar[0] << " "; ffn(1); fora(i,n){ cout << d*ar[i]-sum << " "; sum=d*ar[i]; d++; } ffn(0); return; } int main(){ ios_base::sync_with_stdio(false);cin.tie(NULL); ll t=1; //cin >> t; while(t--){ solve(); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...