https://codeforces.com/problemset/problem/270/A
所以n边形的内角和是(n-2)·180°.(n为边数)
先打表符合的所有的角度
#include<bits/stdc++.h>
using namespace std;
map<double,int>mp;
int main(void)
{
for(int i=3;i<=700;i++) mp[1.0*(i-2)*180/i]++;
int t; cin>>t;
while(t--)
{
int x; cin>>x;
if(mp[x]) puts("YES");
else puts("NO");
}
return 0;
}