SHARE
TWEET

Untitled

Have_To_Freeze Sep 20th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cnt = 0
  2.  
  3. for B1 in range(5):
  4.     for B2 in range(5):
  5.         for J in range(5):
  6.             for S1 in range(5):
  7.                 for S2 in range(5):
  8.                     if not B1 in (B2, J, S1, S2) and \
  9.                        not B2 in (J, S1, S2) and \
  10.                        not J in (S1, S2) and \
  11.                        S1 != S2:
  12.                         if B1 < J < B2 or B2 < J < B1:
  13.                             printList = [i for i in range(5)]
  14.                             cnt += 1
  15.  
  16.                             printList[B1] = 'B1'
  17.                             printList[B2] = 'B2'
  18.                             printList[J] = 'J'
  19.                             printList[S1] = 'S1'
  20.                             printList[S2] = 'S2'
  21.  
  22.                             print('( {}, {}, {}, {}, {} ), {}번째'.format(printList[0],
  23.                                                                         printList[1],
  24.                                                                         printList[2],
  25.                                                                         printList[3],
  26.                                                                         printList[4], cnt))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top