Created
February 11, 2019 13:23
-
-
Save Ph0enixKM/3652c92a479becdcc7b0633894c17cf0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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