結果
| 問題 | No.2628 Shrinkage |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-16 23:04:11 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 21,340 KB |
| 実行使用メモリ | 15,920 KB |
| 最終ジャッジ日時 | 2026-09-05 18:19:25 |
| 合計ジャッジ時間 | 4,790 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 28 |
ソースコード
N = int(input())
for _ in range(N) :
A = list(map(int, input().split()))
D = [A[2] - A[0], A[3] - A[1], A[6] - A[4], A[7] - A[5]]
all_same = True
for i in range(4) :
all_same = all_same and A[i] == A[i + 4]
if all_same :
print("Yes")
else :
det = D[3] * D[0] - D[2] * D[1]
dot = D[0] * D[2] + D[1] * D[3]
if det == 0 and dot > 0 :
print("Yes")
else :
print("No")