結果

問題 No.3180 angles sum
ユーザー hato336
提出日時 2026-11-12 12:48:16
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 153 ms / 2,000 ms
+ 190µs
コード長 558 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,401 ms
コンパイル使用メモリ 64,112 KB
実行使用メモリ 65,804 KB
最終ジャッジ日時 2026-11-12 12:48:28
合計ジャッジ時間 8,778 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
input = sys.stdin.readline
#n = int(input())
#a = list(map(int,input().split()))
#a = []
#s = input()
#
#for i in range(n):
#    a.append(list(map(int,input().split())))
def solve():
    ax, ay, bx, by, cx, cy = map(int, input().split())

    x = ax * bx - ay * by
    y = ax * by + ay * bx

    print('Yes' if x * cy == y * cx and x * cx + y * cy > 0 else 'No')

for i in range(int(input())):solve()
0