# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
731713 | rainboy | ASM (LMIO18_asm) | C11 | 50 ms | 852 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 50
#define M 18
#define K 1212
#define A 1000000000000000000LL
#define INF 0x3f3f3f3f
int min(int a, int b) { return a < b ? a : b; }
int ppp[M + 1][K][M], ll[M + 1][K], kk[M + 1], pp[M];
void brute(int m, int s, int p, int l) {
int h;
pp[l] = m - s;
for (h = 0; h <= l; h++)
ppp[m][kk[m]][h] = pp[l - h];
ll[m][kk[m]] = l + 1;
kk[m]++;
for (p = min(p, m - 1 - s); p > 0; p--)
pp[l] = p, brute(m, s + p, p, l + 1);
}
void init() {
int m;
for (m = 1; m <= M; m++)
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... |