fork(3) download
  1. #include<iostream>
  2. #include<cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. int t; cin >> t;
  8. for(int i = 0; i < t; i++) {
  9. int a; cin >> a;
  10. cout << (360 % (180-a) == 0 ? "YES" : "NO") << endl;
  11. }
  12. }
  13.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
Standard output is empty