Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2011  |  syntax: Python  |  size: 0.86 KB  |  views: 104  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. The cryptarithm to solve:
  2. a+b=c
  3.  
  4. Variables in this cryptarithm:
  5. ['a', 'b', 'c']
  6.  
  7. Variables that can't be zero:
  8. ['a', 'b', 'c']
  9.  
  10. Breadth-first Search:
  11. {'a': 8, 'c': 9, 'b': 1}
  12.  
  13. The cryptarithm to solve:
  14. i+bb=ill
  15.  
  16. Variables in this cryptarithm:
  17. ['b', 'i', 'l']
  18.  
  19. Variables that can't be zero:
  20. ['b', 'i']
  21.  
  22. Breadth-first Search:
  23. {'i': 1, 'b': 9, 'l': 0}
  24.  
  25. The cryptarithm to solve:
  26. ibm+hal=irix
  27.  
  28. Variables in this cryptarithm:
  29. ['a', 'b', 'h', 'i', 'l', 'm', 'r', 'x']
  30.  
  31. Variables that can't be zero:
  32. ['h', 'i']
  33.  
  34. Breadth-first Search:
  35. {'a': 9, 'b': 2, 'i': 1, 'h': 8, 'm': 3, 'l': 4, 'r': 0, 'x': 7}
  36.  
  37. The cryptarithm to solve:
  38. send+more=money
  39.  
  40. Variables in this cryptarithm:
  41. ['d', 'e', 'm', 'n', 'o', 'r', 's', 'y']
  42.  
  43. Variables that can't be zero:
  44. ['m', 's']
  45.  
  46. Breadth-first Search:
  47. {'e': 5, 'd': 7, 'm': 1, 'o': 0, 'n': 6, 's': 9, 'r': 8, 'y': 2}
clone this paste RAW Paste Data