結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-16 23:56:36 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 5,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-06-11 22:04:02 |
| 合計ジャッジ時間 | 830 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 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
if deg > 59.999999: deg = abs(60.0-deg)
print "%.7f"%deg