diff options
Diffstat (limited to 'template/c')
-rw-r--r-- | template/c/solve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template/c/solve.c b/template/c/solve.c index 28befcf..270ca79 100644 --- a/template/c/solve.c +++ b/template/c/solve.c @@ -2,6 +2,9 @@ #include <stdlib.h> #include <time.h> +#define ABS(a) ((a) < 0 ? -(a) : (a)) +#define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define COUNT(a) ((int)(sizeof(a) / sizeof 0 [a])) #define FORLINE \ |