Want more features on Pastebin? Sign Up, it's FREE!

# Untitled

By: a guest on Feb 27th, 2011  |  syntax: Python  |  size: 0.86 KB  |  views: 108  |  expires: Never
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.
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.
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.
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.