結果

問題 No.105 arcの六角ボルト
ユーザー threepipes_sthreepipes_s
提出日時 2016-01-03 02:53:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 163 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 11,912 KB
実行使用メモリ 10,384 KB
最終ジャッジ日時 2023-10-19 14:34:16
合計ジャッジ時間 869 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from math import *
eps = 1e-10
for i in range(int(input())):
    input()
    pos = [tuple(map(float, input().split())) for i in range(6)]
    for p in pos:
        (x, y) = p
        if x==0: continue
        d = degrees(atan(y/x))
        if(d<=eps+50 and d>=-eps):
            print("%.12f" % d)
            break
0