Skip to content

Instantly share code, notes, and snippets.

@Ph0enixKM
Created February 11, 2019 13:23
Show Gist options
  • Save Ph0enixKM/3652c92a479becdcc7b0633894c17cf0 to your computer and use it in GitHub Desktop.
Save Ph0enixKM/3652c92a479becdcc7b0633894c17cf0 to your computer and use it in GitHub Desktop.
import math
file = open("okregi.txt")
okregi = file.readlines()
stats = [""]
q = []
for line in okregi:
# Get stats for them all
for i, sym in enumerate(line):
if (sym == " ") and (stats[-1] == ""):
continue
elif sym == " ":
stats.append("")
else:
stats[-1] += sym
for i, val in enumerate(stats):
stats[i] = float(val)
a = stats[0]
b = stats[1]
r = stats[2]
if math.sqrt(pow(a, 2) + pow(b, 2)) < r:
print("WSZYSTKIE CWIARTKI")
# print(stats)
stats = [""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment