Advertisement
Guest User

Untitled

a guest
Aug 30th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. list = []
  2. result = ""
  3. total = []
  4. number = int(raw_input())
  5. for i in range(number):
  6.   n = int(raw_input())
  7.   list.append(n)
  8.  
  9. for i in list:
  10.   if i % 6 == 0:
  11.     result+=("TAK")
  12.     result+=" "
  13.   else:
  14.     result+=("NIE")
  15.     result+=" "
  16.    
  17.   if i % 8 == 0:
  18.     result+=("TAK")
  19.     result+=" "
  20.   else:
  21.     result+=("NIE")
  22.     result+=" "
  23.    
  24.   if i % 343 == 0:
  25.     result+=("TAK")
  26.   else:
  27.     result+=("NIE")
  28.    
  29.   total.append(result)
  30.   result = ""
  31.    
  32. for i in total:
  33.   print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement