結果
問題 |
No.2628 Shrinkage
|
ユーザー |
|
提出日時 | 2024-02-16 23:04:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-28 21:39:33 |
合計ジャッジ時間 | 1,836 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")