#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
Go to the source code of this file.
|
#define | local static |
|
#define | INDEX(i, j, k) (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1) |
|
|
typedef unsigned long long | big_t |
|
typedef unsigned long long | code_t |
|
|
static void | cleanup (void) |
|
static big_t | count (int syms, int len, int left) |
|
static int | beenhere (int syms, int len, int left, int mem, int rem) |
|
static void | examine (int syms, int len, int left, int mem, int rem) |
|
static void | enough (int syms) |
|
int | main (int argc, char **argv) |
|
Definition at line 112 of file enough.c.
Class Members |
size_t |
len |
|
char * |
vec |
|
#define INDEX |
( |
|
i, |
|
|
|
j, |
|
|
|
k |
|
) |
| (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1) |
typedef unsigned long long big_t |
typedef unsigned long long code_t |
static int beenhere |
( |
int |
syms, |
|
|
int |
len, |
|
|
int |
left, |
|
|
int |
mem, |
|
|
int |
rem |
|
) |
| |
|
static |
static void cleanup |
( |
void |
| ) |
|
|
static |
static big_t count |
( |
int |
syms, |
|
|
int |
len, |
|
|
int |
left |
|
) |
| |
|
static |
static void enough |
( |
int |
syms | ) |
|
|
static |
static void examine |
( |
int |
syms, |
|
|
int |
len, |
|
|
int |
left, |
|
|
int |
mem, |
|
|
int |
rem |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |