From 94d0033ed89bb5bfb6500051296892fb7cea6c29 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 25 Dec 2023 17:56:34 +0100 Subject: Small cleanup --- 2023/25/25a.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to '2023/25') diff --git a/2023/25/25a.c b/2023/25/25a.c index 7626c74..1f3161c 100644 --- a/2023/25/25a.c +++ b/2023/25/25a.c @@ -1,18 +1,11 @@ -#include #include #include -#include #include #define N 1500 -#define M 15000 -#define MIN(x,y) ((x)<(y)?(x):(y)) #define ischar(c) (c >= 'a' && c <= 'z') -typedef struct { - int nout, out[N]; - char s[4], outc[N][4]; -} node_t; +typedef struct { int nout, out[N]; char s[4], outc[N][4]; } node_t; bool visited[N]; char *buf, line[N][N]; @@ -90,6 +83,6 @@ int main() { for (int t = 1; t < n; t++) if (flowatmost(0, t, 3)) nother++; - printf("%d (%d %d)\n", nother * (n-nother), nother, n-nother); + printf("%d\n", nother * (n-nother)); return 0; } -- cgit v1.3