結果

問題 No.105 arcの六角ボルト
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-01-21 17:18:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 204 ms / 5,000 ms
コード長 497 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 80,644 KB
最終ジャッジ日時 2023-09-06 05:52:03
合計ジャッジ時間 1,661 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
80,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

def answer():
    input()
    XY = [tuple(map(float,input().split())) for _ in range(6)]
    cand = []
    for x,y in XY:
        if (x>=0)&(y>=0):
            cand.append((x,y))
    cand.sort()
    x,y = cand[-1]
    tmp = math.degrees(math.atan2(y,x))
    if tmp >=50:
        print(0)
    else:
        print(tmp)
for _ in range(int(input())):
    answer()
0