結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-16 23:53:33 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,912 KB |
| 最終ジャッジ日時 | 2024-06-11 22:03:38 |
| 合計ジャッジ時間 | 711 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
import math
n = int(raw_input())
for loop in range(n):
raw_input()
XY = [map(float,raw_input().split()) for _ in range(6)]
XY = [[x,y] for x,y in XY if y >= 0]
XY = sorted(XY,reverse = True)
x,y = map(float,("%.12f %.12f"%(XY[0][0],XY[0][1])).split())
deg = math.acos((2.0-((1.0-x)**2+(0.0-y)**2))/2.0)*180/math.pi
deg = min(deg,60.0000000001-deg)
print "%.7f"%deg