problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p03001 | s353841222 | Wrong Answer | W,H,x,y = list(map(int,input().split()))
possibility = "0"
if x == int(W / 2) and y == int(H / 2):
possibility = "1"
max = str(W * H / 2)
print(max,possibility) |
p03001 | s435661831 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
ans=0
if max(w-x,x)<max(h-y,y):s=max(w-x,x)*h
elif max(w-x,x)>max(h-y,y):s=w*max(h-y,y)
else:
s=max(w-x,x)*h
ans=1
print(s,ans)
|
p03001 | s697117233 | Wrong Answer | import sys
from operator import itemgetter
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().split())
def lmi(): return list(map(int, input().split()))
def lmif(n): return [list(map(int, input().split())) for _ in range(n)]
def ss(): return input()... |
p03001 | s508872452 | Wrong Answer | import sys
input = lambda: sys.stdin.readline().rstrip()
INF = 10 ** 9 + 7
def solve():
W, H, x, y = map(int, input().split())
area1 = -1
if not(x == 0 or x == W):
width = min(x, W - x)
area1 = width * H
area2 = -2
if not(y == 0 or y == H):
height = min(y, H - y)
... |
p03001 | s207012541 | Wrong Answer | W, H, x, y = map(int, input().split())
area = (W * H) / 2
div = 0
if W * H != 0 and W // 2 == x and H // 2 == y:
div = 1
print(area, div)
|
p03001 | s181621102 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
ans=0
if x/w<y/h:s=max(w-x,x)*h
elif x/w>y/h:s=w*max(h-y,y)
else:
s=max(w-x,x)*h
ans=1
print(s,ans)
|
p03001 | s869175726 | Wrong Answer | W,H,x,y = map(int,input().split())
if W!=H:
print(str(W*H/2)+'0')
else:
print(str(W*H/2)+'1') |
p03001 | s704900712 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
ans=0
x1=max(w-x,x)
y1=max(h-y,y)
if x1<y1:s=x1*h
elif x1>y1:s=w*y1
else:
s=x1*h
ans=1
if w*h//2==s:ans=1
print(s,ans)
|
p03001 | s000494555 | Wrong Answer | w,h,x,y=map(int,input().split())
ans=w*h/2,int(x==w/2 and y==h/2)
print(ans) |
p03001 | s601388116 | Wrong Answer | W,H,x,y = map(int,input().split())
print(W*H//2, 0+(2*x == W and 2*y == H)) |
p03001 | s391836497 | Wrong Answer | w, h, x, y = map(int, input().split())
if x == w // 2 and y == h // 2:
print(w * h / 2, 1)
else:
print(w * h / 2, 0) |
p03001 | s930500788 | Wrong Answer | W, H, x, y = map(int, input().split())
if x < W / 2:
A = x * H
else:
A = (W - x) * H
if y < H / 2:
B = y * W
else:
B = (H - y) * W
print(min(A, B))
if A == B:
print(1)
else:
print(0) |
p03001 | s011196693 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
if h==0:
print(0,0)
else:
if w//2==x and h//2==y:
print(w*h/2,1)
else:
print(w*h/2,0)
|
p03001 | s159985781 | Wrong Answer | W, H, x, y = map(int, input().split())
area = W * H
if x == 0 or x == W or y == 0 or y == H:
print(area / 2.0, 0)
elif x == W / 2.0 and y == H / 2.0:
print(area / 2.0, 1)
elif y / x == H / W or (H - y) / x == H / W:
print(area / 2.0, 0)
else:
print(area / 2.0, 1) |
p03001 | s722224779 | Wrong Answer | W, H, x, y = [int(x) for x in input().split()]
max_value = -1
# x軸と平行な直線で区切る場合
max_value = max(max_value, min((W-x)*H, x*H))
# y軸に平行な直線で区切る場合
max_value = max(max_value, min(W*(H-y), W*y))
flg = W-x == x or H-y == y
print(max_value, 1 if flg else 0) |
p03001 | s377374892 | Wrong Answer | w,h,x,y = map(int, input().split())
if x == w//2 and y == h//2: print(w*h/2, 1)
else:
if x >= w: a = x * h
else: a = (w-x) * h
if y >= h: b = y * w
else: b = (h-y) * w
print(max(a,b), 0) |
p03001 | s017492175 | Wrong Answer | w, h, x, y = map(int, input().split())
area1 = min(x, w - x) * h
area2 = min(y, h - y) * w
if area1 == area2:
print(max(area1, area2), 1)
else:
print(max(area1, area2), 0)
|
p03001 | s929935157 | Wrong Answer | def main():
w, h, x, y = map(int, input().split())
ans = w * h / 2
hasDivision = x + x == w and y + y == h
print(ans, hasDivision)
if __name__ == '__main__':
main() |
p03001 | s152462795 | Wrong Answer | import math
import collections
from operator import mul
from functools import reduce
W,H,x,y=map(int,input().split())
flag=-1
if W/2==x:
flag+=1
if H/2==y:
flag+=1
print((W*H)/2,flag)
|
p03001 | s465577216 | Wrong Answer | w, h , x, y = map(int ,input().split())
if x == w//2 and y== h // 2:
print(w*h/2, 1)
else:
print(w*h/2, 0) |
p03001 | s161356379 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
if w//2==x and h//2==y:
print(w*h/2,1)
else:
print(w*h/2,0)
|
p03001 | s007694738 | Wrong Answer | import sys
sys.setrecursionlimit(10**9)
def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))
INF=10**20
def main():
W,H,x,y = mi()
ans = '{:.10f}'.format(W*H/2)
ans2 = 1 if W==H else 0
print... |
p03001 | s087452368 | Wrong Answer | import sys
def input(): return sys.stdin.readline().rstrip()
def main():
W, H, x, y = map(int, input().split())
X, Y = min(x, W-x) * H, min(y, H-y) * W
print(max(X, Y), int(X > 0 and X == Y))
if __name__ == '__main__':
main()
|
p03001 | s088302573 | Wrong Answer | w, h, x, y = map(int, input().split())
if x==w//2 and y==h//2:
print(w*h/2, 1)
else:
print(w*h/2, 0) |
p03001 | s178621278 | Wrong Answer | '''
Created on 2020/08/29
@author: harurun
'''
def main():
import sys
pin=sys.stdin.readline
pout=sys.stdout.write
perr=sys.stderr.write
W,H,x,y=map(int,pin().split())
ans=max(min(x,W-x)*H,min(y,H-y))
pout(f"{ans} ")
if W==H and x==y:
print(1)
else:
print(0)
return
main() |
p03001 | s919445582 | Wrong Answer | a,b,x,y = map(int,input().split())
print(a*b/2,x*2==a and y*2==b) |
p03001 | s185968576 | Wrong Answer | w, h, x, y = list(map(int, input().split()))
# x = aで分割して場合
s_x = min((w - x) * h, x * h)
# y = bで分割した場合
s_y = min((h - y) * w, y * w)
if s_x == s_y:
print(str(s_x) + " " + str(1))
else:
print(str(max(s_x, s_y)) + " " + str(0))
|
p03001 | s694548646 | Wrong Answer | w, h, x, y = map(int, input().split())
menseki1 = min(w - x, x) * h
menseki2 = min(h - y, y) * w
hantei = menseki1 == menseki2
print(max(menseki1, menseki2), int(hantei))
|
p03001 | s853644466 | Wrong Answer | A, B, C, D = map(int, input().split())
S = A*B/2
#if A%2==1 and B%2==1:
#S += 0.5
ans = 0
if C == A//2 and D == B//2:
ans = 1
print(S,ans) |
p03001 | s536824268 | Wrong Answer | w, h, x, y = map(int, input().split())
s1 = min(x, w - x) * h
s2 = min(y, h - y) * w
s = max(s1, s2)
c = 0
if s == s1 and y == h / 2:
c = 1
elif s == s2 and x == w / 2:
c = 1
print('{:.6f}'.format(s), c) |
p03001 | s875487635 | Wrong Answer | w,h,x,y=map(int, input().split())
#S= w*h/2
ans = 1 if (x+x==w & y+y==h) else 0
print(w*h/2, ans) |
p03001 | s596873869 | Wrong Answer | coordinates = list(map(int, input().split()))
w = coordinates[0]
h = coordinates[1]
x = coordinates[2]
y = coordinates[3]
if x == w and y == h:
x = y = 0
prod1 = x * h
prod2 = y * w
area = min(prod1, prod2)
area = format(area, '.6f') if area != 0 else 0
addit = 0 if prod1 != prod2 else 1
print("{} {}".format(area,... |
p03001 | s386975993 | Wrong Answer | w,h,x,y=input().split()
w=int(w)
h=int(h)
x=int(x)
y=int(y)
d1=w*(h-y)
d2=w*y
d3=h*(w-x)
d4=h*x
if d1==d2 and d3==d4:
print(float(d1),1)
exit()
if d1==d2:
print(float(d1),0)
exit()
if d3==d4:
print(float(d3),0) |
p03001 | s083501750 | Wrong Answer | import sys
input = lambda: sys.stdin.readline().rstrip()
def main():
w, h, x, y = map(int, input().split())
ans = 0
if x*h == y*w:
ans = 1
print(float(min(x*h, y*w)), ans)
if __name__ == '__main__':
main() |
p03001 | s732705527 | Wrong Answer | w,h,x,y = map(int, input().split())
ans = max(min(x/w, (w-x)/w), min(y/h,(h-y)/h))
print('{:.7f}'.format(ans*w*h), end=" ")
#print(ans*w*h, end=" ")
if min(x/w, (w-x)/w)==min(y/h,(h-y)/h):
print(1)
else:
print(0) |
p03001 | s005232829 | Wrong Answer | W, H, x, y = map(int,input().split())
area_H = sorted([x * H, (W - x) * H])
area_W = sorted([y * W, (H - y) * W])
area_h = area_H[0]
area_w = area_W[0]
area = sorted([area_h, area_w])
switch = int(area[0] == area[1])
print("{} {}".format(float(area[1]), switch)) |
p03001 | s075302665 | Wrong Answer | w, h, x, y = map(int, input().split())
a = x*h
b = (w-x)*h
abmin = min(a,b)
c = y * w
d = (h-y) * w
cdmin = min(c, d)
ans = max(abmin, cdmin)
judge = 0
lis1 = sorted([a,b])
lis2 = sorted([c,d])
if lis1 == lis2:
judge = 1
print(ans, judge)
|
p03001 | s547966769 | Wrong Answer | # https://atcoder.jp/contests/abc130/tasks/abc130_c
w, h, x, y = map(int, input().split())
ans = w * h / 2
if w // 2 == x and h // 2 == y:
flag = 1
else:
flag = 0
print(ans, flag) |
p03001 | s652544245 | Wrong Answer | a,b,c,d=map(int,input().split())
print(a*b/2) |
p03001 | s709812472 | Wrong Answer | w, h, x, y = [int(i) for i in input().split()]
print(w * h // 2, 1 if x == w // 2 and y == h // 2 else 0) |
p03001 | s660598413 | Wrong Answer | r=input().split()
W=int(r[0])
H=int(r[1])
x=int(r[2])
y=int(r[3])
if (x==0 and y==0) or (x==0 and y==H) or (x==W and y==0) or (x==W and y==H):
print(str(W*H/2)+" 0")
else:
ans_1=min(H*x,H*(W-x))
ans_2=min(W*y,W*(H-y))
if ans_1==ans_2:
print(str(ans_1)+" 1")
else:
print(str(max(ans_1,... |
p03001 | s629314447 | Wrong Answer | W, H, x, y = [int(i) for i in input().split()]
mx = min(W - x, x)
my = min(H - y, y)
sx = mx * H
sy = my * W
s = max(sx, sy)
a = 1 if sx == sy else 0
print(s, a)
|
p03001 | s162814586 | Wrong Answer | w,h,x,y=map(int,input().split())
if x==int(w/2) and y==int(h/2):
print(w*h/2,1)
else:
print(w*h/2,0) |
p03001 | s284326742 | Wrong Answer | w, h, x, y = map(int, input().split())
t = (w*h)/2
a = x*h
b = (w-x)*h
abmin = min(a,b)
c = y * w
d = (h-y) * w
cdmin = min(c, d)
ans = max(abmin, cdmin,t)
judge = 0
lis1 = sorted([a,b])
lis2 = sorted([c,d])
if lis1 == lis2:
judge = 1
if ans == t:
judge = 0
print(ans, judge)
|
p03001 | s823123024 | Wrong Answer | w, h, x, y = list(map(int,input().split()))
print(w * h / 2, 1 if w == (x * 2) and h == (y * 2) else w * h / 2, 0)
|
p03001 | s904712320 | Wrong Answer | W,H,x,y=map(int,input().split())
S = (W*H)/2
if W==0 or H==0:
print(0,0)
elif x == W//2 and y == H//2:
print(S,1)
else:
print(S,0) |
p03001 | s378498686 | Wrong Answer | w,h,x,y = map(int,input().split())
max_area = w*h/2
split = 0
if x==w//2:
if y==h//2:
split = 1
print('{} {}'.format(max_area, split)) |
p03001 | s656989537 | Wrong Answer | w, h ,x, y=map(int, input().split())
m1=min((w-x)*h, x*h)
m2=min((h-y)*w, y*w)
ans=max(m1, m2)
if m1 == m2:
p=1
else:
p=0
print(ans, p) |
p03001 | s650311096 | Wrong Answer | w,h,x,y=map(int,input().split())
sx=min(x*h,h*(w-x))
sy=min(y*w,w*(h-y))
if sx==sy:
print(sx,"1")
else:
print(max(sx,sx),"0") |
p03001 | s696434549 | Wrong Answer | W, H, x, y = map(float, input().split())
print((W * H) / 2, end=" ")
print(0) if(x != W / 2 and y != H / 2) else print(1) |
p03001 | s750975406 | Wrong Answer | W, H, x, y = map(int, input().split())
WS = min(x, W - x) * H
HS = min(y, H - y) * W
ans1 = max(WS, HS)
ans2 = 0
if x * 2 == W and y * 2 == H:
ans2 = 1
print(ans1, ans2)
|
p03001 | s245667148 | Wrong Answer | W,H,x,y = map(int,input().split())
all = W * H
a = min(x*H,(W-x)*H)
b = min(y*W,(H-y)*W)
if x == W//2 and y == H//2:
print(all/2,1)
else:
print(max(a,b),0) |
p03001 | s208315455 | Wrong Answer | w, h, x, y = list(map(int, input().split()))
#b = list(map(int, input().split()))
if (x == 0 and y == 0) or (x == w and y == h):
print(w*h/2, end=" ")
print(1)
exit()
s = [x*h, (w-x)*h]
s2 = [w*y, w*(h-y)]
print(max(min(s), min(s2)), end=" ")
if min(s) == min(s2):
print(1)
else:
print(0)
|
p03001 | s952869707 | Wrong Answer | w,h,x,y = map(int,input().split())
if x ==w//2 and y ==h//2:
print(h*w//2,1)
else:
print(h*w/2,0) |
p03001 | s666321184 | Wrong Answer | import sys
input = lambda: sys.stdin.readline().rstrip()
INF = 10 ** 9 + 7
def solve():
W, H, x, y = map(int, input().split())
area1 = INF
if not(x == 0 or x == W):
width = min(x, W - x)
area1 = width * H
area2 = INF + 1
if not(y == 0 or y == H):
height = min(y, H - y)
... |
p03001 | s786578786 | Wrong Answer | W,H,X,Y = map(int,input().split())
xwari = min(X*H,(W-X)*H)
ywari = min(Y*W,(H-Y)*W)
if W//2 == X and H//2 == Y:
f = 1
else:
f = 0
print(W*H/2, f) |
p03001 | s041821291 | Wrong Answer | W,H,x,y=map(int,input().split())
if x==W//2 and y==H//2:
print(W*H/2,1)
elif x==W//2 and y!=H//2:
print(W*H/2,0)
elif x!=W//2 and y==H//2:
print(W*H/2,0)
else:
print(W*H/2,1) |
p03001 | s355247824 | Wrong Answer | w, h, x, y = [int(_) for _ in input().split()]
if w * y > h * x:
print(h * x)
if h / 2 == y:
print(1)
else:
print(0)
elif w * y < h * x:
print(w * y)
if w / 2 == x:
print(1)
else:
print(0)
else:
print(h * x)
print(1)
|
p03001 | s930458725 | Wrong Answer | def main():
import fractions
w,h,x,y=map(int,input().split())
if w==h:
print(w*h/2,1)
else:
print(w*h/2,0)
if __name__=="__main__":
main() |
p03001 | s542306607 | Wrong Answer | w,h,x,y = map(int,input().split())
if w==2*x and h==2*y:
print(w*h//2,1)
else:
print(w*h//2,0)
|
p03001 | s809585476 | Wrong Answer | W,H,x,y = map(int,input().split())
S = W*H
s1 = x*H
s2 = y*W
d1 = abs(s1-S//2)
d2 = abs(s2-S//2)
if d1 == d2:
cnt = 1
else :
cnt = 0
if d1<=d2:
print(s1,cnt)
elif d1>d2:
print(s2,cnt)
|
p03001 | s141533093 | Wrong Answer | w,h,x,y = [int(x) for x in input().split()]
if w // 2 == x and h // 2 == y:
print((w*h)/2, 1)
else:
print((w*h)/2, 0) |
p03001 | s295352704 | Wrong Answer | W, H, x, y = map(int, input().split())
# 面積の半分
area_half = W * (H / 2)
# 点 x,y が中心なら分割方法は複数
if x == W//2 and y == H//2:
print(area_half, 1)
else:
print(area_half, 0) |
p03001 | s434200981 | Wrong Answer | w, h, x, y = map(int, input().split())
a = x * h if x > w / 2 else (w - x) * h
b = w * y if y > h / 2 else (h - y) * w
if a > b:
print(a, 0)
elif b < a:
print(b, 0)
else:
print(a, 1) |
p03001 | s211115317 | Wrong Answer | W,H,x,y=map(int,input().split())
print(W*H/2,0) |
p03001 | s805368492 | Wrong Answer | w,h,x,y=list(map(int,input().split()))
if (w//2==x and h//2==y) or w==h:
print(w*h/2,1)
else:
print(w*h/2,0)
|
p03001 | s167015640 | Wrong Answer | w, h, x, y = [int(i) for i in input().split()]
print(w * h / 2, int(x != (w / 2) and y != (h / 2))) |
p03001 | s008116415 | Wrong Answer | def main():
import fractions
w,h,x,y=map(int,input().split())
if w//2==x and h//2==y:
print(w*h/2,1)
else:
print(w*h/2,0)
if __name__=="__main__":
main() |
p03001 | s571174962 | Wrong Answer | def main():
w,h,x,y = map(int,input().split())
flg = 0
if x == 0 or y == 0:
print(0,0)
return
if x * 2 == w :
flg +=1
if y * 2 == h :
flg +=1
if x * h == w * y :
flg += 1
ans = max(w * y, h*x)
if flg == 1:
print(w*h/2, 0)
elif flg >... |
p03001 | s083244992 | Wrong Answer | W, H, x, y = map(int, input().split())
area = W*H/2
center_x = W//2
center_y = H//2
if center_x == x and center_y == y:
print(area, 1)
else:
print(area, 0) |
p03001 | s051315858 | Wrong Answer |
w,h,x,y = map(int,input().split())
s = w*h
if (w-x)*h > (h-y)*w:
print(float((w-x))*h,end = " ")
print(0)
elif (w-x)*h == (h-y)*w:
print(float((w-x))*h,end = " ")
print(1)
else:
print(float((h-y))*w,end = " ")
print(0)
|
p03001 | s056006761 | Wrong Answer | W, H, x, y = map(float,input().split())
#長方形の重心を求める
gx = W / 2.0
gy = H / 2.0
# x,yが重心と一致する場合は複数ある
split = 0
print(x,y,gx,gy)
if x == gx and y == gy:
split = 1
print(W*H/2,split)
|
p03001 | s642393849 | Wrong Answer | w, h, x, y = map(int, input().split())
area = min(x, w - x) * h
if x == y == 0 or (x == w and y == h) or w == h:
print(area, 1)
else:
print(area, 0)
|
p03001 | s695588434 | Wrong Answer | #!/usr/bin/env python
# coding: utf-8
# In[5]:
W,H,x,y = map(int, input().split())
# In[6]:
s = W*H//2
if x == W/2 and y == H/2:
p = 1
else:
p = 0
print(s,p)
# In[ ]:
|
p03001 | s890384249 | Wrong Answer | w,h,x,y = map(int,input().split())
if w==x/2 and h==y/2 :
print(w*h/2,1)
else:
print(w*h/2,0) |
p03001 | s265105680 | Wrong Answer | W,H,x,y = map(int, input().split())
X = min(x, W-x) * H
Y = min(y, H-y) * W
ans = 0
if X == Y: ans = 1
print(max(X, y), ans) |
p03001 | s089135507 | Wrong Answer | w, h, x, y = map(int, input().split())
if x == w // 2 and y == h // 2:
print(w * h / 2, 1)
else:
print(w * h / 2, 0) |
p03001 | s590308159 | Wrong Answer | W, H, x, y = map(int, input().split())
men = W * H / 2
judge = 0
if x == W // 2 and y == H // 2:
judge = 1
print("{} {}".format(men, judge)) |
p03001 | s546385543 | Wrong Answer | W,H,w,h = map(float, input().split())
ans =0
if w/W+h/H == 1:
ans =1
elif w/W == h/H:
ans =1
print('{:9f} {}'.format(W*H/2, ans)) |
p03001 | s273635325 | Wrong Answer | w, h , x, y = map(int ,input().split())
print(w*h /2 , x+x == w and y+ y ==h ) |
p03001 | s733056840 | Wrong Answer | w,h,x,y = map(int,input().split())
s = w*h
if (w-x)*h > (h-y)*w:
print(s-w*y)
print(0)
elif (w-x)*h == (h-y)*w:
print(s-w*y,end = " ")
print(1)
else:
print(s-x*h,end = " ")
print(0) |
p03001 | s832904508 | Wrong Answer | w, h, x, y = map(int, input().split())
print(float(w) * float(h) / 2, 1 if w == x + x & h == y + y else 0)
|
p03001 | s947342681 | Wrong Answer | w, h, x, y = map(int, input().split())
if (x == w // 2 and y == h // 2) and w % 2 == 0 and h % 2 == 0:
print(w * h // 2, 1)
else:
print(w * h // 2, 0)
|
p03001 | s138384651 | Wrong Answer | W,H,x,y = map(int,input().split())
horizontal = [W*(H-y),W*y]
vertical = [(W-x)*H, x*H]
if max(horizontal) > max(vertical):
print(min(vertical), 0)
elif max(horizontal) < max(vertical):
print(min(horizontal), 0)
else:
print(min(horizontal), 1) |
p03001 | s843418272 | Wrong Answer | W,H,x,y = map(int,input().split())
ans = W * H / 2
if W // 2 == x and H // 2 == y:
flg = 1
else:
flg = 0
print(ans,flg) |
p03001 | s259142799 | Wrong Answer | import os, sys, re, math, queue
W,H,x,y = list(map(int,input().split(' ')))
ret = W * H
mul = 0
ret1 = min(H*x, H*(W-x))
ret2 = min(W*y, W*(H-y))
if ret1 != ret2:
print(max(ret1,ret2), 0)
else:
print(ret1, 1) |
p03001 | s062062744 | Wrong Answer | #!/usr/bin/env python3
import collections as cl
import sys
def II():
return int(sys.stdin.readline())
def MI():
return map(int, sys.stdin.readline().split())
def LI():
return list(map(int, sys.stdin.readline().split()))
def main():
W, H, x, y = MI()
x_ratio = x / W
y_ratio = y / H
m... |
p03001 | s421151344 | Wrong Answer | # -*- coding: utf-8 -*-
w, h, x, y = map(int, input().split())
print(w*h/2, 1 if w/2==x else 0)
|
p03001 | s227908266 | Wrong Answer | w,h,x,y = map(int,input().split())
print(w*h/2, end=' ')
if x==w//2 and y==h//2:
print(1)
else:
print(0)
|
p03001 | s923824082 | Wrong Answer | w,h, x,y = map(int,input().split())
a = 0
b = 0
a = (w)*(h-y)
b = (w)*y
ans = 0
ans = min(a,b)
ans2 = 0
a = h*(w-x)
b = h*(x)
ans2 = min(a,b)
if ans<ans2:
print(ans2, 0, sep=" ")
elif ans2<ans:
print(ans, 0, sep=" ")
else:
print(ans, 1, sep=" ") |
p03001 | s733998407 | Wrong Answer | W,H,x,y=map(int,input().split())
if W//2==x and H//2==y:
print(W*H/2,1)
else:
print(W*H/2,0) |
p03001 | s476714037 | Wrong Answer | W,H,x,y = map(int,input().split())
print(W*H) |
p03001 | s008357278 | Wrong Answer | W, H, x, y = map(int, input().split())
print(W*H/2, 1 if x==W//2 & y==H//2 else 0) |
p03001 | s625394468 | Wrong Answer | W,H,x,y = map(int,input().split())
half = W * H / 2
print(half)
hasMulti = True
if x == 0 or x == W or y == 0 or y == H:
hasMulti= False
if hasMulti:
print(1)
else:
print(0)
exit() |
p03001 | s010614709 | Wrong Answer | w, h, x, y = map(int, input().split())
if w == h:
how = 1
else:
how = 0
print(w*h/2, how) |
p03001 | s654610502 | Wrong Answer | W,H,x,y = map(int,input().split())
S = W*H//2
if 2*x==W and 2*y==H:
print(S,1)
else:
print(S,0) |
p03001 | s478885078 | Wrong Answer | w, h, x, y = list(map(int, input().split()))
#b = list(map(int, input().split()))
s = [x*h, (w-x)*h]
s2 = [w*y, w*(h-y)]
print(max(min(s), min(s2)), end=" ")
if min(s) == min(s2):
print(1)
else:
print(0)
|
p03001 | s209320762 | Wrong Answer | W, H, x, y = map(int, input().split())
tmp = 0
tmp1 = min((W - x) * H, x * H)
tmp2 = min(W * (H - y), W * y)
if tmp1 == tmp2:
print(tmp1, 1)
elif tmp1 > tmp2:
print(tmp1, 0)
else:
print(tmp2, 0)
|
p03001 | s235048516 | Wrong Answer | W,H,x,y = map(int,input().split())
is_center = 0
if x == W//2 and y == H//2:
is_center = 1
print((W*H)/2,is_center) |
p03001 | s088075716 | Wrong Answer | W, H, x, y = map(int, input().split())
ans = W * H / 2
if W//2 == x and H//2 == y:
print(ans, 1)
else:
print(ans, 0)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.