No.8059 tan
問題文最終更新日: 2020-03-11 07:20:56
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 2020
(順位表)
の他の問題:
Problem Statement
Is $\tan{x^\text{o}}$ a rational number?
Input
$T$
$x_{0}$
$x_{1}$
$\vdots$
$x_{T-1}$
・$T$ is the number of test cases, an integer in the range $1 \le T \le 90$.
・$x_{t}$ is an angle in degrees, an integer in the range $0 \le x_{t} \lt 90$.
Output
For each test case, print Y if $\tan{{x_{t}}^\text{o}}$ is rational, or N if it is irrational, followed by a newline.
When there are $T$ test cases, the output consists of $T$ lines.
Sample
Input
1 1
Output
N
$\tan 1^\text{o}$ is irrational, so print N.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。