Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. def loop(v1, v2, v3):
  2. for a in xrange(127):
  3. for b in xrange(127):
  4. for c in xrange(127):
  5. if b + a - c == v1 and a - b + c == v2 and b - a + c == v3:
  6. return chr(a) + chr(b) + chr(c)
  7.  
  8. output = []
  9. output.append(loop(81, 53, 87))
  10. output.append(loop(90, 156, 66))
  11. output.append(loop(98, 140, 92))
  12. output.append(loop(38, 170, 60))
  13. output.append(loop(29, 161, 69))
  14. output.append(loop(163, 27, 69))
  15. output.append(loop(147, 43, 59))
  16. output.append(loop(146, 86, 44))
  17. output.append(loop(67, 89, 75))
  18. output.append(loop(117, 125, 125))
  19. print "".join(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement