結果

問題 No.105 arcの六角ボルト
ユーザー pluto77pluto77
提出日時 2016-09-14 18:51:36
言語 Python2
(2.7.18)
結果
AC  
実行時間 100 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 6,460 KB
最終ジャッジ日時 2023-08-10 20:30:41
合計ジャッジ時間 800 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#yuki_105
import math

eps=1.0e-10
t=int(raw_input())
sin50=math.sin(100.0*math.pi/360)
cos50=math.cos(100.0*math.pi/360)
for i in xrange(t):
 dummy=raw_input()
 for j in xrange(6):
  a,b=map(float,raw_input().split())
  if cos50<=a and a<=1.0+eps and 0.0-eps<=b and b<=sin50:
   res=360.0*math.atan(b/a)/(2*math.pi)
   if res<eps:
    print "%.7f" % 0.0
   else:
    print "%.7f" % res
0