newton/solutions/python/270A.py

12 lines
170 B
Python
Raw Normal View History

2025-01-15 13:37:37 +00:00
import sys
t = int(input())
for _ in range(t):
a = int(input())
exterior = 180-a
if 360 % exterior == 0:
print("YES")
else:
print("NO")