Remove not used code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-17 12:03:19 +01:00
parent 90f2e88b1f
commit e022a7db44

View File

@@ -40,14 +40,6 @@ def part_2(input):
x_min, x_max = [int(c) for c in x.split('..')] x_min, x_max = [int(c) for c in x.split('..')]
y_min, y_max = [int(c) for c in y.split('..')] y_min, y_max = [int(c) for c in y.split('..')]
vx_0 = 0 vx_0 = 0
num_steps = 0
while True:
vx_0 += 1
x_end = vx_0 * (vx_0 + 1) / 2
if x_min <= x_end <= x_max:
num_steps = vx_0
elif x_end > x_max:
break
for vx_0 in range(x_max + 1): for vx_0 in range(x_max + 1):
for vy_0 in range(y_min, -y_min): for vy_0 in range(y_min, -y_min):
vx = vx_0 vx = vx_0