remove aoc solutions
This commit is contained in:
13
examples/euler/euler_04.zr
Normal file
13
examples/euler/euler_04.zr
Normal file
@@ -0,0 +1,13 @@
|
||||
func main[] : i64
|
||||
out := 0
|
||||
|
||||
for a in 500..1000
|
||||
for b in 500..1000
|
||||
if a * b > out
|
||||
s := (a * b)->to_str()
|
||||
s_rev := s->reverse()
|
||||
if s->equal(s_rev)
|
||||
out = a * b
|
||||
s->free()
|
||||
s_rev->free()
|
||||
io.println_i64(out)
|
||||
Reference in New Issue
Block a user