Advertisement
trds

two+two=four

Nov 17th, 2020 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. for x in range (0,2):
  2.     for y in range (0,2):
  3.         for o in range (2,9):
  4.             for r in range (0,9,2):
  5.                 for t in range (5,10):
  6.                     for u in range (2,10):
  7.                         for w in range (2,10):
  8.                             c1=(0+0==r+10*x)
  9.                             c2=(x+w+w==u+10*x)
  10.                             c3=(y+t+t==10+o)
  11.                             c4=(o!=u and o!=r and o!=t)
  12.                             c5=(u!=r and u!=t and u!=w)
  13.                             c6=(r!=t and r!=w)
  14.                             c7=(t!=w)
  15.                             if c1 and c2 and c3 and c4 and c5 and c6 and c7:
  16.                                 print(str(t)+str(w)+str(o))
  17.                                 print(str(t)+str(w)+str(o))
  18.                                 print("--------")
  19.                                 print("1"+str(o)+str(w)+str(r))
  20. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement