advent of code day 1
This commit is contained in:
7
examples/puzzles/euler9.zr
Normal file
7
examples/puzzles/euler9.zr
Normal file
@@ -0,0 +1,7 @@
|
||||
func main[] : I64
|
||||
for a in 1..1000
|
||||
for b in 1..1000
|
||||
let c: I64 = 1000 - b - a
|
||||
if a * a + b * b == c * c
|
||||
io.println_i64(a * b * c)
|
||||
return 0
|
||||
Reference in New Issue
Block a user