Skip to content

Instantly share code, notes, and snippets.

@junaidrahim
Last active March 24, 2020 10:34
Show Gist options
  • Save junaidrahim/a41de78f3277fe6d265ff4a360e3e188 to your computer and use it in GitHub Desktop.
Save junaidrahim/a41de78f3277fe6d265ff4a360e3e188 to your computer and use it in GitHub Desktop.
Competitive Programming Example
#include <iostream>
using namespace std;
int main(){
int t;
cin >> t;
int a;
double n;
double frac_part;
for(int i=0; i<t; i++){
cin >> a;
n = (double) 360/(180-a);
if(!(double)(n - (int)n))
cout << "YES" << '\n';
else
cout << "NO" << '\n';
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment