結果
問題 |
No.3180 angles sum
|
ユーザー |
![]() |
提出日時 | 2025-06-13 21:54:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 521 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,180 KB |
実行使用メモリ | 77,972 KB |
最終ジャッジ日時 | 2025-06-14 01:24:30 |
合計ジャッジ時間 | 9,460 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 WA * 1 |
ソースコード
from math import degrees, atan EPS = 1e-9 for _ in range(int(input())): ax, ay, bx, by, cx, cy = map(int, input().split()) a = degrees(atan(ay/ax)) if ax != 0 else 90 b = degrees(atan(by/bx)) if bx != 0 else 90 if 0 <= cx: c = degrees(atan(cy/cx)) if cx != 0 else 90 else: if cy != 0: c = 90+degrees(atan(abs(cx)/cy)) elif 1 <= cx: c = 0 else: c = 180 if abs((a+b)-c) <= EPS: print("Yes") else: print("No")