結果
問題 |
No.3180 angles sum
|
ユーザー |
![]() |
提出日時 | 2025-06-13 23:05:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 358 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2025-06-13 23:05:41 |
合計ジャッジ時間 | 15,758 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 9 |
ソースコード
import sys input = sys.stdin.readline from math import sqrt T=int(input()) for tests in range(T): AX,AY,BX,BY,CX,CY=map(int,input().split()) A=AX*AX+AY*AY B=BX*BX+BY*BY C=CX*CX+CY*CY if AX==0: A=1 if BX==0: B=1 bunshi = AX*BX - sqrt(A-AX*AX)*sqrt(B-BX*BX) bunbo=A*B #print(bunshi,bunbo,CX,C) if abs(bunshi*bunshi*C-CX*CX*bunbo)<=0.0000000000001: print("Yes") else: print("No")