# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
362006 | Lawliet | K blocks (IZhO14_blocks) | C++17 | 166 ms | 41400 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;
typedef pair<int,int> pii;
typedef long long int lli;
const int MAXK = 110;
const int MAXN = 100010;
const int INF = 1000000010;
int n, k;
int v[MAXN];
int dp[MAXK][MAXN];
vector<int> value;
vector<int> minDp;
void solveTestCase()
{
scanf("%d %d",&n,&k);
for(int i = 1 ; i <= n ; i++)
scanf("%d",&v[i]);
dp[0][0] = 0;
for(int i = 1 ; i <= n ; i++)
dp[0][i] = INF;
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... |