結果

問題 No.1040 垂直大学
ユーザー warm4C0
提出日時 2022-08-02 22:32:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 1,167 ms
コンパイル使用メモリ 158,140 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 16:35:42
合計ジャッジ時間 1,892 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

void solve(int n) {
	int x = 90;
	while(x < n) {
		x += 180;
	}
	if (x == n) {
		puts("Yes");
		return;
	}

	puts("No");
}

int main() {
	int n;
	cin >> n;

	solve(n);

	return 0;
}
0