結果
問題 |
No.8098 tan 2
|
ユーザー |
![]() |
提出日時 | 2023-03-31 21:34:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 82,448 KB |
実行使用メモリ | 54,488 KB |
最終ジャッジ日時 | 2024-09-23 00:07:40 |
合計ジャッジ時間 | 1,273 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 6 |
ソースコード
import sys, math input = lambda: sys.stdin.readline()[:-1] def MI(): return map(int, input().split()) inf = 10**18 e = set() for i in range(1, 90): tan = math.tan(math.radians(i))**2 # 小数点第10位で四捨五入 tan_rounded = str(round(tan, 10)) # 小数点以下がすべて0なら追加 tan_int, frac = tan_rounded.split(".") if frac == "0"*len(frac): e.add(i) if int(input()) in e: print("Yes") else: print("No")