No.8098 tan 2
問題文最終更新日: 2026-09-26 09:21:32
English (AI translation)
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 April Fool Contest 2023
(順位表)
の他の問題:
Problem Statement
Is $\tan I^{ \textrm{o} }$ a rational number?
Constraints
$I$ is an integer between $1$ and $89$, inclusive.
Input
The input is given in the following format.
$I$
The $1$st line contains $I$.
Output
If $\tan I^{ \textrm{o} }$ is a rational number, print Yes; otherwise, print No, on $1$ line.
Note the following example: $\tan 45^{\circ} = 1$$+ \textrm{o}$
Incidentally, the angle in this example is expressed in degrees. Note that everywhere other than this example, angles are expressed in radians.
Sample
Sample 1
Input
1
Output
No
$\tan 1^{ \textrm{o} }$ is not a rational number, so print No.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
MasKoaTS