#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
#define pf printf
#define sf scanf
typedef long long ll;
int main()
{
int test, a;
sf("%d", &test);
while(test--)
{
sf("%d", &a);
if( 360 % (180-a) ==0)
{
pf("YES\n");
}
else
{
pf("NO\n");
}
}
}
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
#define pf printf
#define sf scanf
typedef long long ll;
int main()
{
int test, a;
sf("%d", &test);
while(test--)
{
sf("%d", &a);
if( 360 % (180-a) ==0)
{
pf("YES\n");
}
else
{
pf("NO\n");
}
}
}
No comments:
Post a Comment