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/08/8a.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to '2023/08/8a.c') diff --git a/2023/08/8a.c b/2023/08/8a.c index 62f6fcd..f6d58b5 100644 --- a/2023/08/8a.c +++ b/2023/08/8a.c @@ -1,17 +1,13 @@ -#include -#include -#include #include -#include #include #define N 30000 - -bool isnum(char c) { return c >= '0' && c <= '9'; } -int index(char *c) { return c[0]-'A' + (c[1]-'A' + (c[2]-'A')*26)*26; } +#define ISNUM(c) (c >= '0' && c <= '9') int map[N][2]; +int index(char *c) { return c[0]-'A' + (c[1]-'A' + (c[2]-'A')*26)*26; } + int main() { char *buf, dir[N], line[N]; int n, i, s; -- cgit v1.3