結果

問題 No.3180 angles sum
ユーザー pitP
提出日時 2025-06-13 21:44:35
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 365 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,620 KB
実行使用メモリ 78,244 KB
最終ジャッジ日時 2025-06-14 01:23:22
合計ジャッジ時間 11,561 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import acos, degrees


T = int(input())
for _ in range(T):
    Ax, Ay, Bx, By, Cx, Cy = map(float, input().split())

    a = degrees(acos(Ax / (Ax ** 2 + Ay ** 2) ** 0.5))
    b = degrees(acos(Bx / (Bx ** 2 + By ** 2) ** 0.5))
    c = degrees(acos(Cx / (Cx ** 2 + Cy ** 2) ** 0.5))
    # print(a, b, c)

    print("Yes" if abs(a + b - c) < 1e-6 else "No")
0