結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-14 18:51:36 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 5,000 ms |
| コード長 | 387 bytes |
| コンパイル時間 | 46 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-11-17 05:57:35 |
| 合計ジャッジ時間 | 717 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#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