Guest User

Untitled

a guest
Dec 6th, 2019
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def transform(s):
  2. if s[0] == '+':
  3. s = s[2::]
  4. elif s[0] == '8':
  5. s = s[1::]
  6. new = []
  7. for i in range(0, len(s)):
  8. if s[i] != '-' and s[i] != '(' and s[i] != ')':
  9. new.append(int(s[i]))
  10. return new
  11.  
  12.  
  13. def check_region(s):
  14. ans = []
  15.  
  16.  
  17. s = input()
  18. right = transform(s)
  19. s = input()
  20. first = transform(s)
  21. s = input()
  22. second = transform(s)
  23. s = input()
  24. third = transform(s)
RAW Paste Data