結果
| 問題 | No.3180 angles sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-25 08:07:16 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 371 ms / 2,000 ms |
| + 894µs | |
| コード長 | 310 bytes |
| 記録 | |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 84,608 KB |
| 最終ジャッジ日時 | 2026-08-25 08:07:29 |
| 合計ジャッジ時間 | 12,558 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 |
ソースコード
t = int(input())
for _ in range(t):
ax, ay, bx, by, cx, cy = map(int, input().split())
# (ax+iay)(bx+iby) = x+iy
x = ax*bx - ay*by
y = ay*bx + ax*by
# x+iy と cx+icy が 平行 かつ 内積が正
if x*cy == y*cx and x*cx + y*cy > 0:
print("Yes")
else:
print("No")