結果

問題 No.105 arcの六角ボルト
ユーザー hiragn
提出日時 2022-11-01 02:37:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,052 KB
最終ジャッジ日時 2024-07-08 13:56:14
合計ジャッジ時間 3,573 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

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