Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL));
- int main()
- {
- int t;
- fastread()
- cin>>t;
- while(t--)
- {
- int a;
- cin>>a;
- if(360%(180-a)>0)cout<<"NO"<<endl;
- else cout<<"YES"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement