advent of code day 1

This commit is contained in:
2025-12-18 14:04:44 +01:00
parent 7855e5b092
commit 9f39f627ad
21 changed files with 114 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
func main[] : I64
let sum: I64 = 0
let a: I64 = 0
let b: I64 = 1
while a < 4000000
if a % 2 == 0
sum = sum + a
let temp: I64 = b
b = a + b
a = temp
io.println_i64(sum)