Advertisement
jakaria_hossain

codeforce - Fance Fancy

Apr 3rd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL));
  4. int main()
  5. {
  6. int t;
  7. fastread()
  8. cin>>t;
  9. while(t--)
  10. {
  11. int a;
  12. cin>>a;
  13. if(360%(180-a)>0)cout<<"NO"<<endl;
  14. else cout<<"YES"<<endl;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement