結果

問題 No.105 arcの六角ボルト
コンテスト
ユーザー rlangevin
提出日時 2023-02-26 00:56:16
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 456 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 218 ms
コンパイル使用メモリ 85,376 KB
実行使用メモリ 82,048 KB
最終ジャッジ日時 2026-04-04 06:57:15
合計ジャッジ時間 783 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from math import *

T = int(input())
for _ in range(T):
    ans = 0
    input()
    for i in range(6):
        X, Y = map(float, input().split())
        if X >= 1:
            X = 1
        elif X <= -1:
            X = -1
        if Y >= 1:
            Y = 1
        elif Y <= -1:
            Y = -1  
        x = degrees(acos(X)) - 60
        y = degrees(asin(Y)) - 60
        if 0 <= x <= 50 and 0 <= y <= 50:
            ans = x
    print(ans)        
0