# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
802958 |
2023-08-02T16:27:28 Z |
Theo830 |
Fruits (NOI22_fruits) |
C++17 |
|
174 ms |
16232 KB |
#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 time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
296 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
9 ms |
948 KB |
Output is correct |
4 |
Correct |
92 ms |
8380 KB |
Output is correct |
5 |
Correct |
174 ms |
16232 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
125 ms |
11396 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |