Advertisement
Thrashans

Potencias de 2

Aug 27th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. for _ in range(int(input())):
  2.     print('SI' if len(list(filter(lambda x: x == '1', input()))) == 1 else 'NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement