Untitled
unknown
plain_text
2 years ago
440 B
6
Indexable
#include <iostream>
using namespace std;
int main()
{
int t, n;
cin >> t;
int nextn = 1;
while(t != 0){
if (nextn) {
cin >> n;
nextn = 0;
}
if (n > 180) {
int x = n / 180;
n = n - (x * 180);
}
if (n <= 180 && n % 4 == 0) {
cout << "YES" << endl;
t -= 1;
nextn = 1;
}
else if (n <= 180 && n % 4 != 0) {
cout << "NO" << endl;
t -= 1;
nextn = 1;
}
}
}
Editor is loading...
Leave a Comment