fork download
  1. def from_str(x):
  2. mul = 1000000
  3. pos = -1
  4. for j in range(len(x)):
  5. if x[j] == '.':
  6. pos = j
  7. pw = mul
  8. if pos != -1:
  9. kek = len(x) - pos - 1
  10. kek = 6-kek
  11. pw = 1
  12. while kek > 0:
  13. pw = pw * 10
  14. kek = kek - 1
  15. num = 0
  16. for c in x:
  17. if c != '.':
  18. num = num * 10 + (ord(c)-ord('0'))
  19. return num * mul
  20.  
  21. X = [0, 0, 0, 0, 0, 0, 0, 0]
  22. Y = [0, 0, 0, 0, 0, 0, 0, 0]
  23.  
  24. for i in range(8):
  25. x, y = input().split(' ')
  26. X[i] = from_str(x)
  27. Y[i] = from_str(y)
Runtime error #stdin #stdout #stderr 0.02s 27712KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 25, in <module>
EOFError: EOF when reading a line