結果
| 問題 |
No.3005 トレミーの問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-17 21:57:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 493 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-01-17 21:57:52 |
| 合計ジャッジ時間 | 1,961 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 7 |
ソースコード
ax,ay = map(int,input().split())
bx,by = map(int,input().split())
cx,cy = map(int,input().split())
dx,dy = map(int,input().split())
a = complex(ax,ay)
b = complex(bx,by)
c = complex(cx,cy)
d = complex(dx,dy)
ans = ((a-c)*(b-d))/((a-d)*(b-c))
ans1 = (a-c)/(b-c)
ans2 = (a-d)/(b-d)
# print(ans)
# print(ans1)
# print(ans2)
if (ans.imag > 0.000000000000000000001) or (abs(ans1.imag) <= 0.000000000000000000001 and abs(ans2.imag) <= 0.000000000000000000001):
print("NO")
else:
print("YES")