Overview
| Comment: | 202407 2nd star |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
5a3d05d86e2ebbf26cac5fe9035b8292 |
| User & Date: | nnz on 2024-12-07 10:39:03.497 |
| Other Links: | manifest | tags |
Context
|
2024-12-07
| ||
| 13:50 | reworked operators insertion logic check-in: 9237d89a9a user: nnz tags: trunk | |
| 10:39 | 202407 2nd star check-in: 5a3d05d86e user: nnz tags: trunk | |
| 09:40 | 202407 1st star check-in: 965ad94c16 user: nnz tags: trunk | |
Changes
Modified aoc2024.c
from [e5aa25e91a]
to [d3378fca96].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | + + + + + + + + + - - + - + - + + + + + + + + + + + + + + + - + - + + + + + + + |
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aocdailies.h"
#include "aocutils.h"
/* === aoc202407 =======================================================
Part one looks easy
===================================================================== */
static unsigned long long concat(unsigned long long a, unsigned long long b) {
unsigned long long r = a, t = b;
while (b) {
r *= 10;
b /= 10;
}
return r + t;
}
static bool canbetrue(unsigned long long v, unsigned long long *a, size_t n) {
|
| ︙ |