結果

問題 No.105 arcの六角ボルト
ユーザー hiragnhiragn
提出日時 2022-11-01 02:37:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 742 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 29,788 KB
最終ジャッジ日時 2023-09-22 23:16:10
合計ジャッジ時間 3,717 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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.average(np.rad2deg(np.arctan2(y, x)) % 60)
        print(res)


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