problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p03001 | s459768059 | Wrong Answer | import sys
W, H, x, y = map(int, input().split())
HW = H * W
S1 = min(x * H, HW - x * H)
S2 = min(W * y, HW - W * y)
S = max(S1, S2)
ans2 = S1 == S2
if (x, y) in [(0, 0), (W, 0), (0, H), (W, H)]:
print(H * W / 2, 0)
sys.exit()
print(S, int(ans2))
|
p03001 | s474184869 | Wrong Answer | W,H,x,y = map(int, input().split())
flg = 0
if 2*x==W or 2*y==H:
flg = 1
res = [W*H/2, flg]
print(*res) |
p03001 | s549367436 | 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)
elif ans2<ans:
print(ans, 0)
else:
print(ans, 1) |
p03001 | s469954205 | Wrong Answer | w,h,x,y = list(map(int, input().split()))
a = max(min(x*h, (w-x)*h), min(y*w, (h-y)*w))
if(min(x*h, (w-x)*h) == min(y*w, (h-y)*w)):
print(a/1.0,1)
else:
print(a/1.0,0) |
p03001 | s193735652 | Wrong Answer | W, H, x, y = map(int, input().split())
flag = 0
a = min(H*x,H*(W-x))
b = min(W*y,W*(H-y))
if a==b:
flag=1
print(max(a,b),flag) |
p03001 | s612224427 | Wrong Answer | def main():
W, H, x, y = map(int, input().split())
S2 = W * H / 2
if x == 0 or x == W or y == 0 or y == H:
print(S2, 0)
exit()
print(W * H / 2, 1)
main()
|
p03001 | s754231220 | Wrong Answer | w,h,x,y = map(int,input().split())
men1 = min(h*x,h*(w-x))
men2 = min(w*y,w*(h-y))
print("{} {}".format(float(max(men1,men2)),1 if men1 == men2 else 0))
|
p03001 | s783325608 | Wrong Answer | W,H,x,y=map(int,input().split())
s=W*H/2
x=1 if W//2==x and H//2==y else 0
print('{} {}'.format(s,x)) |
p03001 | s477666843 | Wrong Answer | w,h,x,y=map(int,input().split())
a=min(x*h,h*w-x*h)
b=min(y*w,h*w-y*w)
if 2*h==y and 2*w==x:
print(max(a,b),1)
else:
print(max(a,b),0)
|
p03001 | s186397204 | Wrong Answer | W, H, x, y = map(int,input().split())
if x == W//2 and y == H//2:
ans = 1
else:
ans = 0
print(W*H/2, ans) |
p03001 | s763475808 | Wrong Answer | W, H ,x ,y = map(int,input().split())
a = x * H
b = (W - x)*H
c = W * y
d = W * (H - y)
def f(m ,n):
if m == 0 or n ==0:
return 0
else:
return min(m,n)
ans = max(f(a,b),f(c,d))
bool = 1
if f(a,b) == f(c,d):
bool =1
else:
bool = 0
print(ans, bool) |
p03001 | s274340610 | Wrong Answer | import sys, math
from collections import defaultdict, deque, Counter
from bisect import bisect_left, bisect_right
from itertools import combinations, permutations, product
from heapq import heappush, heappop
from functools import lru_cache
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input()... |
p03001 | s993873792 | Wrong Answer | w,h,x,y=map(int,input().split())
ma=w*h/2
W=x//2
H=y//2
if W%2==0 and H%2==0 and W==x and H==y:
boo=1
else:
boo=0
print(ma,boo) |
p03001 | s016481032 | Wrong Answer | W, H, x, y = map(int, input().split())
max_area = W * H / 2
print("{} {}".format(max_area, 1 if x / W == y / H else 0)) |
p03001 | s249056458 | Wrong Answer | w,h,x,y = map(int, input().split())
ans = 0
if w%2==0:ans += 1
if h%2==0:ans += 1
if ans > 0: ans -= 1
print((w*h)/2, ans) |
p03001 | s262757314 | Wrong Answer | S=lambda:input()
I=lambda:int(input())
L=lambda:list(map(int,input().split()))
LS=lambda:list(map(str,input().split()))
def main():
w,h,x,y=L()
print(w*h/2,end=" ")
print(1 if w//2==x and h//2==y else 0)
if __name__=='__main__':
main() |
p03001 | s369619801 | Wrong Answer | w, h, x, y = list(map(int, input().split()))
# a = list(map(int, input().split()))
# data = [list(map(int, input().split())) for i in range(n)]
# k = int(input())
#L = list(map(int, input().split()))
# ab_sorted = sorted(ab, key=lambda x: x[0])
#ab = [list(map(int, input().split())) for i in range(n)]
# print(min(15*n,... |
p03001 | s430114125 | Wrong Answer | W, H, x, y = map(int, input().split())
S = W*H/2
can = 1 if x == W//2 and y == H//2 else 0
print(S, can) |
p03001 | s211493298 | Wrong Answer | W, H, x, y = map(int, input().split())
print(W * H / 2, int((0 < x < W)&(0 < y < H))) |
p03001 | s838897571 | Wrong Answer | W,H,x,y = (int(x) for x in input().split())
if x == W // 2 and y == H // 2:
ans = [W*H/2, 1]
print(*ans)
else:
ans = [W*H/2, 0]
print(*ans) |
p03001 | s110160390 | Wrong Answer | W,H,x,y=map(int,input().split())
size1 = min((x*H), ((W-x)*H))
size2 = min((W*y), (W*(H-y)))
count = 0
if size1 == size2:
count += 1
print(max(size1, size2), count) |
p03001 | s026233257 | Wrong Answer | w,h,x,y=map(int,input().split())
ans=(w*h)/2
if x==0 and 0<=y<=h:
print(f'{ans:.06f}',end=' ')
print('0')
if x==w and 0<=y<=h:
print(f'{ans:.06f}',end=' ')
print('0')
if y==0 and 0<=x<=w:
print(f'{ans:.06f}',end=' ')
print('0')
if y==h and 0<=x<=w:
print(f'{ans:.06f}',end=' ')
print('0... |
p03001 | s302154637 | Wrong Answer | W,H,x,y=map(int,input().split())
a=min(x*H,(W-x)*H)
b=min(y*W,(H-y)*W)
ans=0
if a==b:
ans=1
print(a,ans)
elif a>b:
print(a,ans)
else:
print(b,ans) |
p03001 | s529621029 | Wrong Answer | w, h, x, y = map(int, input().split())
print((h * w) / 2, int(x == (w // 2) and y == (h // 2))) |
p03001 | s414517288 | Wrong Answer | # 点(x, y)から長方形の中心を通る直線を引くと面積を半分にすることができ、分割された小さい方の面積が最大となる
# 点(x, y)が長方形の中心と一致する場合、直線は複数存在する
w, h, x, y = map(int, input().split())
s = w * h
s_min = s / 2
# 中心
a = w / 2
b = w / 2
divide = 0
if x == a and y == b:
divide = 1
print(s_min, divide)
else:
print(s_min, divide) |
p03001 | s052559912 | Wrong Answer | W, H, x, y = map(int,input().split())
print((H*W)/2, 1 if (x==W//2 and y==H//2) else 0)
|
p03001 | s179721957 | Wrong Answer | w, h, x, y = map(int, input().split())
ans1 = w*h/2
if x % 2 != 0 or y % 2 != 0:
print(ans1, 0)
elif x == w//2 and y == h//2:
print(ans1, 1)
else:
print(ans1, 0) |
p03001 | s808800337 | Wrong Answer | w,h,x,y = map(int,input().split())
if min(x,w-x)*h == min(y,h-y)*w:
print(max(min(x, w - x) * h, min(y, h - y) * w), 1)
else:
print(max(min(x, w - x) * h, min(y, h - y) * w), 0)
|
p03001 | s131992911 | Wrong Answer | w, h, x, y = list(map(int, input().split(" ")))
s = w*h/2
flag = 0
if w == h:
flag = 1
print(s, flag) |
p03001 | s623189633 | Wrong Answer | W, H, x, y = map(int, input().split(' '))
x1 = x
x2 = W - x
y1 = y
y2 = H - y
r1 = x1 * H
r2 = x2 * H
r3 = y1 * W
r4 = y2 * W
r12 = min(r1, r2)
r34 = min(r3, r4)
n = 0
if r12 == r34:
n = 1
print(max(r12, r34), n)
|
p03001 | s456274923 | Wrong Answer | W,H,x,y = list(map(int,input().split()))
M = W*H/2
ans = 0
if x == W//2 or y == H//2:
ans = 1
if x == 0 or y == 0:
ans = 0
print(M,ans) |
p03001 | s049695373 | Wrong Answer | w,h,x,y = map(int,input().split())
left = x * h
right = (w - x)*h
under = w * y
top = w * (h - y)
arr = [left,right,under,top]
arr.sort()
if arr[0]==arr[1]:
print(arr[1],1)
else:
print(arr[1],0)
|
p03001 | s980608108 | Wrong Answer | import sys, math
from collections import defaultdict, deque, Counter
from bisect import bisect_left, bisect_right
from itertools import combinations, permutations, product
from heapq import heappush, heappop
from functools import lru_cache
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input()... |
p03001 | s598018559 | Wrong Answer | w, h, x, y = map(int, input().split())
s = w*h/2
if x == w//2 and y == h//2:
print(s, 1)
else:
print(s, 0)
|
p03001 | s690150641 | Wrong Answer | W, H, x, y = map(int, input().split())
if W // 2 == x and H // 2 == y:
a = 1
else:
a = 0
print(W*H/2, a) |
p03001 | s260629668 | Wrong Answer | w,h,x,y = list(map(int, input().split()))
if((x == w//2 or y == h//2)):
print((w*h)//2 , 1)
else:
print((w*h)//2, 0) |
p03001 | s410698571 | Wrong Answer | W,H,x,y = map(int, input().split())
if x==y==0 or (x==W and y==0) or (x==0 and y==H) or (x==W and y==H):
print(W*H/2, 0)
exit()
X = min(x, W-x) * H
Y = min(y, H-y) * W
ans = 0
if X == Y: ans = 1
if x==0 or x==W: print(Y, 0)
elif y==0 or y==H: print(X, 0)
else: print(max(X,Y), ans) |
p03001 | s099458868 | Wrong Answer | w,h,x,y = map(int,input().split())
men1 = min(h*x,h*(w-x))
men2 = min(w*y,w*(h-y))
print(max(men1,men2),sep = " ",end = "")
if men1 == men2:
print(" 1")
else:
print(" 0")
|
p03001 | s403924379 | Wrong Answer | W,H,w,h = map(float, input().split())
ans =0
if w ==h:
ans =1
print('{:9f} {}'.format(W*H/2, ans)) |
p03001 | s443146923 | Wrong Answer | w,h,x,y=map(int,input().split())
ans=(w*h)/2
if x==w or x==0:
print(f'{ans:.06f}',end=' ')
print('0')
if y==h or y==0:
print(f'{ans:.06f}',end=' ')
print('0')
else:
print(f'{ans:.06f}',end=' ')
print('1') |
p03001 | s283550527 | Wrong Answer | W, H, x, y = map(int, input().split())
print(W*H/2, end=' ')
print(1 if W*y==x**H else 0) |
p03001 | s949681410 | 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 | s210773393 | 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 xwari == ywari:
f = 1
else:
f = 0
print(max(xwari,ywari),f) |
p03001 | s755604038 | 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 | s196794333 | Wrong Answer | W,H,x,y = map(int,input().split())
a = min(H*x,H*(W-x))
b = min(W*y,W*(H-y))
if a==b:
print(a,1)
else:
print(max(a,b),0) |
p03001 | s424710068 | Wrong Answer | w, h, x, y = list(map(int, input().split()))
res = 0
s = w * h / 2
if x == w // 2 and y == h // 2:
res = 1
print("%s %s" % (s, res))
|
p03001 | s645155231 | Wrong Answer | w,h,x,y=map(int,input().split())
if x==w or x==0:
if y==h or y==0:
print(0.0,0)
else:
w2=w//2
h2=h//2
s1=h*w2
s2=w*h2
if s1>s2:
print(s1,0)
elif s1==s2:
print(s1,1)
else:
print(s2,0)
|
p03001 | s726020737 | Wrong Answer |
W, H, x, y = map(int, input().split())
print("{0} {1}".format(H * W / 2, int(x + x == W & y + y == H))) |
p03001 | s855009469 | Wrong Answer | w,h,x,y=map(int,input().split())
ans=w*h/2
a=0
if( ((x==0 or x==w) and (0<=y and y<=h)) or ((0<=x and x<=w) and (y==0 or y==h)) ):
a=0
else:
if(((x==w/2) and (0<=y and y<=h)) or ((0<=x and x<=w) and (y==h/2))):
a=0
else:
a=1
if(x==w/2 and y==h/2):a=1
print(ans,a)
|
p03001 | s920516418 | Wrong Answer | W,H,x,y = map(int,input().split())
ans_1 = min(W*y, W*(H-y))
ans_2 = min(x*H, (W-x)*H)
if ans_1 == ans_2:
print(ans_1, 1)
else:
print(max(ans_1,ans_2), 0) |
p03001 | s219866936 | 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 | s073019917 | Wrong Answer | W,H,x,y=map(int,input().split())
a=[]
b=[]
judge=0
a.append(min(x,W-x)*H)
a.append(min(y,H-y)*W)
b.append(max(x,W-x)*H)
b.append(max(y,H-y)*W)
if max(a) in a and b:
judge=1
print(max(a),judge) |
p03001 | s690747477 | Wrong Answer | W,H,x,y=map(int,input().split())
S = (W*H)/2
if x == W//2 and y == H//2:
print(S,1)
else:
print(S,0) |
p03001 | s955590943 | 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 | s622825323 | Wrong Answer | W, H, x, y = map(int, input().split())
ans = 0
count = 0
if x == y:
ans = min(x*H, (W-x)*H)
count = 1
elif x < y:
ans = min(x*H, (W-x)*H)
else:
ans = min(y*W, (H-y)*W)
print(ans, count) |
p03001 | s786308054 | Wrong Answer | W, H, x, y = map(int, input().split())
area = W * H / 2
div = 0
if W // 2 == x and H // 2 == y:
div = 1
print(area, div)
|
p03001 | s133337963 | 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 | s862248953 | Wrong Answer | #C - Rectangle Cutting
W,H,x,y = map(int,input().split())
def main(W,H,x,y):
if W == x or H == y or x==0 or y==0:
ans1 = W*H
ans2 = 0
else:
tmp1 = min((W-x)*H,x*H)
tmp2 = min(W*(H-y),W*y)
ans1 = max(tmp1,tmp2)
if tmp1 == tmp2:
ans2 = 1
else:
... |
p03001 | s040597459 | Wrong Answer | W, H, x, y = map(int, input().split())
if W//2 == x and H//2 == y:
flag = 1
else:
flag = 0
print (W*H/2, flag) |
p03001 | s250557249 | Wrong Answer | W, H, x, y = map(int, input().split())
S = W * H / 2
print (S, end = ' ')
if W == 2 * x and H == 2 ** y:
print (1)
else:
print (0) |
p03001 | s059864478 | Wrong Answer | W, H, x, y = map(int, input().split())
area1 = min(H * x, H * (W - x))
area2 = min(W * y, W * (H - y))
method = "0"
if x == 0 and y == 0:
pass
elif x == W and y == H:
pass
elif area1 == area2:
method = "1"
ans = max(area1, area2)
print(ans, method) |
p03001 | s416515819 | Wrong Answer | w,h,x,y=map(int,input().split())
if w/2==x and h/2==y:
print(0.5,1)
else:
print(0.5,0)
|
p03001 | s643902408 | Wrong Answer | W,H,x,y=map(int,input().split())
a=[]
judge=0
a.append(min(x,W-x)*H)
a.append(min(y,H-y)*W)
if a[0]==a[1]:
judge=1
print(max(a),judge) |
p03001 | s598474882 | Wrong Answer | W, H, x, y = [int(i) for i in input().split()]
print(W*H / 2, int(x == y)) |
p03001 | s437692127 | Wrong Answer | import math
def main():
t = [int(t)for t in input().split()]
w,h,x,y = t[0],t[1],t[2],t[3]
left,right = x, w-x
top, bottom = y, h-y
s_ = [left*h,right*h,top*w,bottom*w]
s_ = sorted(s_)
print(s_[2],1 if s_[2]==s_[3] else 0)
if __name__ == "__main__":
main() |
p03001 | s410045682 | Wrong Answer | W, H, x, y = map(int, input().split())
if x == W / 2 and y == H / 2:
print(W*H/2, 1)
exit()
if x == y == 0 or (x == W and y == 0) or (x == 0 and y == H) or (x == W and y == H):
print(W*H/2, 0)
exit()
if abs(x-W/2) < abs(y-H/2):
ans = min(x, W-x) * H
else:
ans = W * min(y,H-y)
print(ans, 0)
|
p03001 | s923452511 | Wrong Answer | import sys
input=sys.stdin.readline
w,h,x,y=map(int,input().split())
if w*y!=h*x:
print(min(w*y,h*x),0)
else:print(min(w*y,h*x),1) |
p03001 | s581824609 | Wrong Answer | W,H,x,y = map(int,input().split())
flag = 1 if x==y else 0
print(str(W*H/2) + " " + str(flag)) |
p03001 | s605326287 | Wrong Answer | w, h, x, y = map(int, input().split())
h_y = abs(y - h/2)
w_x = abs(x - w/2)
yoko = h_y*w
tate = w_x*h
ans = w*h/2 - min(tate, yoko)
flag = 0
if tate == yoko:
flag = 1
print(ans, flag)
|
p03001 | s042479562 | Wrong Answer | W, H, x, y = map(int, input().split())
S = W * H
sx = min(W-x, x-0) * H
sy = min(H-y, y-0) * W
sMM = max(sx, sy)
same = 0
if sx > sy:
if sx % W == 0 or W-x != x-0:
same = 1
if sy > sx:
if sy % H == 0 or H-y != y-0:
same = 1
if sx == sy:
same = 1
print(sMM, same) |
p03001 | s745147066 | Wrong Answer | w,h,x,y=map(int,input().split())
p=w*h/2
a=1 if w*y==x*h or x*h+y*w==w*h else 0
print(p,a)
|
p03001 | s748941026 | Wrong Answer | W, H, x, y = map(int, input().split())
S = W*H/2
if W//2 == x and H//2 == y:
print(S, 1)
else:
print(S, 0) |
p03001 | s088254723 | Wrong Answer | w,h,x,y=map(int,input().split())
print(w*h/2,1if 2*w==x and 2*h==y else 0)
|
p03001 | s735944495 | Wrong Answer | W,H,X,Y = map(int, input().split())
C = X/W
D = Y/H
result2 = 0
result = 0
if C == 0 and D == 0:
result = W*H*0.5
elif C == 0:
result = D*W*H
elif D == 0:
result = C*W*H
else:
result = min(C,D)*W*H
if X != 0 and Y != 0:
if X == Y:
result2 = 1
print(result,result2) |
p03001 | s161171701 | Wrong Answer | h,w,x,y=map(int,input().split())
print(h*w/2, int((2*x==w)*(y*2==h)))
|
p03001 | s941684547 | Wrong Answer | w,h,x,y=map(int,input().split())
if x==w or x==0:
if y==h or y==0:
print(0,"1")
else:
w2=int(w//2)
h2=int(h//2)
s1=h*w2
s2=w*h2
if s1>s2:
print(s1,"0")
elif s1==s2:
print(s1,"1")
else:
print(s2,"0") |
p03001 | s612251034 | Wrong Answer | W, H, x, y = map(int, input().split())
# 大きくない方とかって書いてあるけど、別にイコールの場合でもいいんかい!
# 中心の座標を求める
centerX = (W // 2)
centerY = (H // 2)
if ((x, y) == (centerX, centerY)):
print((W * H) / 2, 1)
else:
print(W * H / 2, 0)
|
p03001 | s631351382 | Wrong Answer | w,h,x,y = map(int, input().split())
s = (w*h)/2
if(x == int(w/2) and y == int(h/2)):
g = 1
else:
g = 0
print(s,g) |
p03001 | s528299800 | Wrong Answer | W,H,x,y=map(int,input().split())
xx = min(W-x,x)
yy = min(H-y,y)
A1 = H*xx
A2 = W*yy
res = max(A1,A2)
if A1 == A2:
print(res,1)
else:
print(res,0) |
p03001 | s815494987 | Wrong Answer | W,H,x,y=map(int,input().split())
S = H*W/2
res = 0
if x*2 == W or y*2 == H:
res = 1
print(S,res) |
p03001 | s395153956 | Wrong Answer | w,h,x,y = map(int, input().split())
if abs(2*x-w) == abs(2*y-h):
print(h*w/2,1)
else:
print(w*h/2,0) |
p03001 | s974291330 | Wrong Answer | W, H, x, y = map(int, input().split())
print(W*H/2, end=' ')
print(1 if x == y and W ==H else 0) |
p03001 | s624566357 | Wrong Answer | import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
W, H, x, y = list(map(float, sys.stdin.buffer.readline().split()))
ret = (W * H) / 2
p = x == W//2 and y == H//2
print(ret, 1 if p else 0)
if __name__ == '__main__':
main()
|
p03001 | s793897053 | Wrong Answer | W,H,X,Y=map(int,input().split())
ans2=0
if ((W%2==0)*W//2==X)*(X>0) and ((H%2==0)*H//2==Y)*(Y>0):
ans2=1
ans1=max(min(X*H,(W-X)*H),min(W*Y,W*(H-Y)))
print(ans1,ans2) |
p03001 | s224266375 | Wrong Answer | import sys
sys.setrecursionlimit(10**6)
w, h, x, y = map(int, input().split())
area = max(min(w*y, w*(h-y)), min(x*h, (w-x)*h))
is_multi = 0
if area in [w*y, w*(h-y)] and x == w//2:
is_multi = 1
elif area in [x*h, (w-x)*h] and y == h//2:
is_multi = 1
print(area, is_multi) |
p03001 | s850822982 | 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==0 and y==h) or (x==0 and y == 0) or(x==w and x==h) or (x==w and y == 0):
print(w*h/2, 0)
else:
if x >= w/2: a = (w-x) * h
else: a = x * h
if y >= h/2: b = (h-y) * w
else: b = y * w
print(max(a,b), 0) |
p03001 | s698238986 | Wrong Answer | w,h,x,y=map(int,input().split())
if x==w/2 and y==h//2:
print("{} {}".format(w*h/2,1))
else:
print("{} {}".format(w*h/2,0))
|
p03001 | s745020399 | Wrong Answer | W,H,w,h = map(int, input().split())
ans =0
if w*H+h*W ==W*H:
ans =1
elif H*w==h*W:
ans =1
print(str(W*H/2)+' '+ str(ans)) |
p03001 | s416699382 | Wrong Answer | h,w,x,y=map(int,input().split())
print(h*w/2, int((2*x==w) and (y*2==h)))
|
p03001 | s441543463 | Wrong Answer | a,b,c,d=map(int,input().split())
x=1
if a/2==c and b%2 or b/2==d and a%2:
x=0
s=str((a*b)/2)+" "+str(x)
print(s) |
p03001 | s526982717 | Wrong Answer | W, H, x, y = map(int, input().split())
print(W*H//2, int(2*x == W and 2*y == H))
|
p03001 | s579594086 | Wrong Answer | w,h,x,y=map(int,input().split())
if x==w//2 and y==h//2:
a=1
else:
a=0
print(w*h/2,a)
|
p03001 | s224378159 | Wrong Answer | w, h, x, y = map(float, input().split())
if x in [0, w] or y in [0, h]:
print(max(min(x*h, (w-x)*h), min(y*w, (h-y)*w)), 0)
elif x/y == w/h:
print(max(min(x*h, (w-x)*h), min(y*w, (h-y)*w)), 1)
elif x/(h-y) == w/h:
print(max(min(x*h, (w-x)*h), min(y*w, (h-y)*w)), 1)
else:
print(max(min(x*h, (w-x)*h), min(y*w, (h... |
p03001 | s273229100 | Wrong Answer | w,h,x,y = map(int,input().split())
big = max(w,h) * (min(w,h)/2)
if min(w,h)/2 == x and min(w,h)/2 == y:
print(big)
print(1)
elif x == 0 and x == 0 or x == w and x == 0 or x == w and x == h or x == 0 or x == h:
print(w*h)
print(1)
else:
print(big)
print(0)
|
p03001 | s046902105 | Wrong Answer | w,h,x,y = map(int,input().split())
sy = []
sx = []
sy.append((h-y)*w)
sy.append(y*w)
sx.append((w-x)*h)
sx.append(x*h)
sx_min = min(sx)
sy_min = min(sy)
if sx_min == sy_min:
print(sx_min, 1)
else:
print(max(sx_min,sy_min),0) |
p03001 | s059913884 | Wrong Answer | W,H,x,y=map(int,input().split())
area=0
if abs(H//2-y)>abs(W//2-x):
area=H*(min(x,W-x))
else:
area=W*min(y,H-y)
ans=0
if W/2==x and H/2==y:
ans=1
else:
ans=0
print(area,ans) |
p03001 | s851237419 | Wrong Answer | w,h,x,y = map(int,input().split())
left = x * h
right = (w - x)*h
tatemin = min(left,right)
under = w * y
top = w * (h - y)
yokomin = min(under,top)
bigger = max(tatemin,yokomin)
if tatemin == yokomin:
print(bigger,1)
else:
print(bigger,0)
|
p03001 | s043701371 | Wrong Answer | w,h,x,y=map(int,input().split())
ma=w*h/2
H=h//2
W=w//2
if H==x and W==y:
boo=1
else:
boo=0
print(ma,boo) |
p03001 | s095165461 | Wrong Answer | w,h,x,y = map(int,input().split())
flg = 0
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 > 1:
print(w*h/2, 1)
else:
print(ans, 0)
|
p03001 | s007456645 | Wrong Answer | W, H ,x, y = map(int, input().split())
if H > W:
if x == W/2:
can = 0
else:
can = 1
elif H == W:
can = 1
else:
if y == H/2:
can = 0
else:
can = 1
print('{:.9f}'.format(W*H/2), can)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.