結果
| 問題 |
No.2628 Shrinkage
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2024-02-17 00:18:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 255 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-28 23:13:54 |
| 合計ジャッジ時間 | 2,023 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
for _ in range(int(input())):
a,b,c,d,e,f,g,h = map(int,input().split())
i = (a,b,c,d)==(e,f,g,h)
j = (a-c)**2+(b-d)**2>(e-g)**2+(f-h)**2
k = (a-c)*(f-h)==(b-d)*(e-g)
l = (a-c)*(e-g)>=0
print("Yes" if i or j and k and l else "No")
ニックネーム