問題一覧 > 通常問題

No.1040 Vertical University

レベル : / AI推定難易度 : 96 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 522
作問者 : Suunn / テスター : ast210
お気に入りにしたユーザー ProblemId : 3618 / 自分の提出
問題文最終更新日: 2020-05-01 22:13:16
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 246 (順位表) の他の問題:

Problem Statement

 Takahashi is a student at Vertical University (abbreviated: Choku-dai).

 Today's assignment at Vertical University is to draw $2$ perpendicular lines.
 First, Takahashi drew $2$ long line segments $l,m$, each having point $O$ as one endpoint, and a small circle $C$ centered at point $O$. Then, letting $A$ be the intersection of segment $l$ and circle $C$, and $B$ be the intersection of segment $m$ and circle $C$, he started walking along circle $C$ from point $A$ and finished walking at point $B$.

 Takahashi remembers that he went $N$° counterclockwise along the circle (corrected at 22:12: 度→°). Determine whether Takahashi has managed to draw $2$ perpendicular lines.

Input

$N$

$1 \le N \le 10^3$
$N$ is an integer.

Output

Print "Yes" if Takahashi has managed to draw $2$ perpendicular lines, and "No" otherwise.

Sample

Sample 1
Input
90
Output
Yes

Sample 2
Input
180
Output
No

Sample 3
Input
630
Output
Yes

He may have gone around the circle one or more full times.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。