# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
646741 |
2022-09-30T13:57:03 Z |
Ghosty_v2 |
Labels (NOI20_labels) |
C++14 |
|
43 ms |
5736 KB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin>>n;
vector <int> dp(n);
int arr[n];
for(int i=0;i<n;i++)cin>>arr[i];
dp[0] = arr[0];
for(int i=0;i<n;i++) {
dp[i+1] = arr[i] + dp[i];
}
for(int i=0;i<n;i++) {
cout<<dp[i]<<" ";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
42 ms |
5216 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Incorrect |
43 ms |
5736 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |