用户输出
Yes
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#2893 | #1003. 凸多边形 | Accepted | 100 | 956 ms | 2968 K | Python 3 / 807 B | t330034057 | 2023-11-22 14:38:31 |
points = []
for _ in range(4):
x, y = map(int, input().split())
points.append((x, y))
cross_product1 = (points[1][0] - points[0][0]) * (points[2][1] - points[1][1]) - (points[2][0] - points[1][0]) * (points[1][1] - points[0][1])
cross_product2 = (points[2][0] - points[1][0]) * (points[3][1] - points[2][1]) - (points[3][0] - points[2][0]) * (points[2][1] - points[1][1])
cross_product3 = (points[3][0] - points[2][0]) * (points[0][1] - points[3][1]) - (points[0][0] - points[3][0]) * (points[3][1] - points[2][1])
cross_product4 = (points[0][0] - points[3][0]) * (points[1][1] - points[0][1]) - (points[1][0] - points[0][0]) * (points[0][1] - points[3][1])
if cross_product1 > 0 and cross_product2 > 0 and cross_product3 > 0 and cross_product4 > 0:
print("Yes")
else:
print("No")
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0
用户输出
No
系统信息
Exited with return code 0