問題一覧 > ネタ問題

No.8059 tan

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 171
作問者 : yuppe19 😺
お気に入りにしたユーザー ProblemId : 3508 / 自分の提出
問題文最終更新日: 2020-03-11 07:20:56
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もしくは右上の雲マークをクリックしてアカウントを作成してください。