adventofcode/2017/day23/input-disassemble

53 lines
509 B
Plaintext
Raw Normal View History

2017-12-23 15:01:32 +00:00
b = 99
c = b
if a != 0 {
b = b * 100
b = b + 100000
c = b
c = c + 17000
}
// b = 109900
// c = 126900
for {
f = 1
d = 2
for {
e = 2
g = d
for {
g = g * e
g = g - b
if g == 0 {
f = 0
}
e = e + 1
g = e
g = g - b
if g != 0 {
break
}
}
d = d + 1
g = d
g = g - b
if g != 0 {
break
}
}
if f == 0 {
h = h + 1
}
g = b
g = g - c
if g == 0 {
break
}
b = b + 17
}