Advertisement
BbJLeB

01. Unique PIN Codes

Jun 5th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. # 01. Unique PIN Codes
  2.  
  3. first = int(input())
  4. second = int(input())
  5. third =  int(input())
  6.  
  7. i = 1
  8. for i in range(1, first+1):
  9.     if i % 2 != 0:
  10.         i += 1
  11.         continue
  12.     j = 1
  13.     for j in range(1, second+1):
  14.         if j != 2 and j != 3 and j != 5 and j != 7:
  15.             j += 1
  16.             continue
  17.         k = 1
  18.         for k in range(1, third+1):
  19.             if k % 2 != 0:
  20.                 continue
  21.                 k += 1
  22.             print(f"{i} {j} {k}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement