結果
| 問題 |
No.3005 トレミーの問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-17 22:02:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 433 bytes |
| コンパイル時間 | 715 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,112 KB |
| 最終ジャッジ日時 | 2025-01-17 22:03:21 |
| 合計ジャッジ時間 | 2,989 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 1 |
ソースコード
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 (abs(ans.imag) != 0) or (abs(ans1.imag) == 0 and abs(ans2.imag) == 0):
print("NO")
else:
print("YES")