結果

問題 No.3180 angles sum
ユーザー catupper
提出日時 2025-06-14 16:06:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 592 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,908 KB
実行使用メモリ 76,744 KB
最終ジャッジ日時 2025-06-14 16:07:06
合計ジャッジ時間 9,904 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
  ax,ay,bx,by,cx,cy = map(int,input().split())
  x = ax * bx - ay * by
  y = ax *by + ay * bx
  if x * cy == y * cx and cx * x >= 0:
    print("Yes")
  else:
    print("No")


T = int(input())
for _ in range(T):
  solve()
0