用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#2437 | #1003. 凸多边形 | Wrong Answer | 53 | 977 ms | 2948 K | Python 3 / 468 B | s230026152 | 2023-11-17 18:21:51 |
from math import sqrt
a=[]
for i in range(4):
x,y=map(int,input().split())
a.append((x,y))
flag=True
# 计算不相邻两点
for i in range(2):
p1,p2=a[i%4],a[(i+2)%4]
v1=(p2[0]-p1[0],p2[1]-p1[1])
p3,p4=a[(i+1)%4],a[(i+3)%4]
v3=(p4[0]-p1[0],p4[1]-p1[1])
v4=(p3[0]-p1[0],p3[1]-p1[1])
# v1 与 v3
ans1=v1[0]*v3[1]-v1[1]*v3[0]
ans2=v1[0]*v4[1]-v1[1]*v4[0]
flag&=(ans1==-ans2)
print("Yes" if flag else "No")
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Files user_out and answer differ
系统信息
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