結果
| 問題 | No.3180 angles sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-15 16:15:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 273 ms / 2,000 ms |
| + 777µs | |
| コード長 | 962 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 96,228 KB |
| 実行使用メモリ | 186,888 KB |
| 最終ジャッジ日時 | 2026-07-12 06:41:26 |
| 合計ジャッジ時間 | 7,702 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 |
ソースコード
from collections import Counter, deque, defaultdict
from heapq import heapify, heappop, heappush, nlargest, nsmallest
from bisect import bisect_left, bisect, bisect_right
from copy import deepcopy
from time import perf_counter
import sys
from typing import Any, List, Callable
def debug(*args, sep=" ", end="\n") -> None:
print(*args, sep=sep, end=end, file=sys.stderr)
def main():
global inf, MOD
input = sys.stdin.read().split()
ptr = 0
inf = float("inf")
MOD = 998244353
T = int(input[ptr]); ptr += 1
for _ in range(T):
ax, ay, bx, by, cx, cy = map(int, input[ptr:ptr + 6]); ptr += 6
if cx * (ax * by + ay * bx) != cy * (ax * bx - ay * by):
print('No')
else:
if cy == 0 and ((ax > 0 and bx > 0 and cx < 0) or (ax * bx < 0 and cx > 0) or (ax < 0 and bx < 0)):
print('No')
else:
print('Yes')
if __name__ == "__main__":
main()