Advertisement
eNeRGy90

Untitled

Mar 14th, 2019
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. counter = 0
  2. for x1 in range(1, 49+1):
  3.     for x2 in range(2, 49+1):
  4.         for x3 in range(3, 49+1):
  5.             for x4 in range(4, 49+1):
  6.                 for x5 in range(5, 49+1):
  7.                     for x6 in range(6, 49+1):
  8.                         if x1 != x2 and x1 != x2 and x1 != x3 and x1 != x4 and x1 != x5 and x1 != x6 and x2 != x3 and x2 != x4 and x2 != x5 and x2 != x6 and x3 != x4 and x3 != x5 and x3 != x6 and x4 != x5 and x4 != x6 and x5 != x6:
  9.                             counter += 1
  10.                             if counter % 1000000 == 0:
  11.                                 print(counter)
  12.                                 print(f"{x1} {x2} {x3} {x4} {x5} {x6}")
  13.  
  14. print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement