結果

問題 No.105 arcの六角ボルト
コンテスト
ユーザー pluto77
提出日時 2016-09-14 18:51:36
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 167 ms / 5,000 ms
コード長 387 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 283 ms
コンパイル使用メモリ 77,508 KB
最終ジャッジ日時 2025-12-03 21:30:36
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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