Submission #802958

#TimeUsernameProblemLanguageResultExecution timeMemory
802958Theo830Fruits (NOI22_fruits)C++17
5 / 100
174 ms16232 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define f(i,a,b) for(ll i = a;i < b;i++) #define pb push_back #define ii pair<ll,ll> #define iii pair<ii,ll> #define F first #define S second int main(){ ll n; cin>>n; ll a[n],c[n]; f(i,0,n){ cin>>a[i]; } f(i,0,n){ cin>>c[i]; } ll ans = 0; f(i,0,n){ ans += c[n-i-1]; cout<<ans<<" "; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...