Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
440 B
0
Indexable
Never
#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;
		}

	}
}

Leave a Comment