結果

問題 No.105 arcの六角ボルト
ユーザー hiragnhiragn
提出日時 2022-11-01 03:09:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 392 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,748 KB
実行使用メモリ 29,760 KB
最終ジャッジ日時 2023-09-22 23:42:12
合計ジャッジ時間 3,144 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import numpy as np


def main():
    t = int(input())
    for _ in range(t):
        input()
        points = np.array([list(map(np.float64, input().split())) for _ in range(6)])
        x, y = points[:, 0], points[:, 1]
        res = np.rad2deg(np.arctan2(y, x)) % 60
        res[res > 50] = 0
        print(np.average(res))


if __name__ == "__main__":
    main()
0