結果
| 問題 | No.3180 angles sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-13 22:46:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 719 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 82,736 KB |
| 実行使用メモリ | 77,828 KB |
| 最終ジャッジ日時 | 2025-06-13 22:47:02 |
| 合計ジャッジ時間 | 9,028 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 13 |
ソースコード
t=int(input())
for _ in range(t):
ax, ay, bx, by, cx, cy=map(int, input().split())
bumbo=ax*bx*cx
if ax>bx: ax, ay, bx, by=bx, by, ax, ay
if bumbo==0:
if ax==0:
if bx==0:
if cy==0: print('Yes\n')
else: print("No\n")
else:
if by==0:
if cx==0: print("Yes\n")
else: print("No\n")
else:
if(by*cy==bx*cx): print("Yes\n")
else: print("No\n")
else:
if ay*by==ax*bx: print("Yes\n")
else: print("No\n")
else:
if ay*bx*cx+by*ax*cx==cy*(ax*bx-ay*by): print("Yes\n")
else: print("No\n")