結果

問題 No.3098 tan 2
ユーザー もちふわゆるゆるもちふわゆるゆる
提出日時 2023-03-31 21:34:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 455 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 81,692 KB
実行使用メモリ 53,844 KB
最終ジャッジ日時 2023-10-24 07:23:31
合計ジャッジ時間 1,386 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
53,844 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 39 ms
53,844 KB
testcase_04 WA -
testcase_05 AC 39 ms
53,844 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 42 ms
53,844 KB
testcase_09 AC 40 ms
53,844 KB
testcase_10 WA -
testcase_11 AC 39 ms
53,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0