結果

問題 No.105 arcの六角ボルト
ユーザー DialBirdDialBird
提出日時 2017-03-18 21:36:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 108 ms / 5,000 ms
コード長 390 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-18 02:57:53
合計ジャッジ時間 895 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *

T = int(input())

rad_to_deg = lambda rad: rad * 180 / pi

degs = list(range(0, 360, 60))

for _ in range(T):
    input()
    x, y = map(float, input().split())
    rad = atan2(y, x)
    deg = rad_to_deg(rad)
    goal = deg // 60
    res = deg - goal * 60
    if 0 < res and res <= 50:
        print(res)
    else:
        print(0)
    for _ in range(5):
        input()
0