# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
982560 | Error404 | Split the sequence (APIO14_sequence) | C++17 | 2049 ms | 24352 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define f first
#define s second
#define pb push_back
int main(){
int n,parts;
cin >> n >> parts;
ll a[n+1], pref[n+1];
for(int i = 1; i <= n; i++){
cin >> a[i];
}
pref[0]=0;
for(int i = 1; i <= n; i++){
pref[i]= pref[i-1]+a[i];
}
ll dp[n+1][parts+1];
int p[n+1][parts+1];
memset(dp,0,sizeof(dp));
memset(p,0,sizeof(p));
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |