結果

問題 No.105 arcの六角ボルト
コンテスト
ユーザー rlangevin
提出日時 2023-02-26 00:56:16
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 456 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 86 ms
コンパイル使用メモリ 64,864 KB
実行使用メモリ 61,500 KB
最終ジャッジ日時 2026-10-15 03:38:58
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 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