結果
| 問題 | No.3180 angles sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-13 21:44:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 96,228 KB |
| 実行使用メモリ | 85,640 KB |
| 最終ジャッジ日時 | 2026-07-12 05:49:28 |
| 合計ジャッジ時間 | 9,192 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 14 WA * 3 |
ソースコード
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")