merge with local files

This commit is contained in:
2025-08-13 10:49:47 +02:00
parent 5e6a26a4ae
commit 4b102c7104
12 changed files with 3279 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
3 4
4 3
2 5
1 3
3 9
3 3
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
+31
View File
@@ -0,0 +1,31 @@
package aoc2024day1
import "core:fmt"
import "core:os"
import "core:strconv"
import "core:strings"
main :: proc() {
fmt.println("hello world")
fmt.println("timmy's first odin")
buf: [15000]byte
num_bytes, _ := os.read(os.stdin, buf[:])
dyn := make([dynamic]byte)
for i := 0; i < num_bytes; i += 1 do append(&dyn, buf[i])
s := strings.to_string({dyn})
lines, _ := strings.split_lines(s)
for l in lines {
if l == "" do break
t, _ := strings.split(l, " ")
l, r := t[0], t[1]
a, _ := strconv.parse_int(l)
b, _ := strconv.parse_int(r)
fmt.println(a, b)
}
}