Last active
March 24, 2020 10:34
-
-
Save junaidrahim/a41de78f3277fe6d265ff4a360e3e188 to your computer and use it in GitHub Desktop.
Competitive Programming Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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