用户输出
Yes
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#2901 | #1003. 凸多边形 | Accepted | 100 | 886 ms | 2984 K | Python 3 / 563 B | t330034045 | 2023-11-22 15:37:07 |
def func(list1):
list2=[]
for i in list1:
list2.append(int(i))
return list2
a=func(input().split(" "))
b=func(input().split(" "))
c=func(input().split(" "))
d=func(input().split(" "))
m=(a[0]-b[0],a[1]-b[1])
n=(b[0]-c[0],b[1]-c[1])
p=(c[0]-d[0],c[1]-d[1])
q=(d[0]-a[0],d[1]-a[1])
list1=[]
list1.append(m[0]*n[1]-n[0]*m[1])
list1.append(n[0]*p[1]-p[0]*n[1])
list1.append(p[0]*q[1]-q[0]*p[1])
list1.append(q[0]*m[1]-m[0]*q[1])
if all(i > 0 for i in list1) or all(i < 0 for i in list1):
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