problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p03001
s635796806
Accepted
w, h, x, y = map(int, input().split()) if x == w/2 and y == h/2: print(w*h/2, int(1)) else: print(w*h/2, int(0))
p03001
s117891724
Accepted
W,H,x,y=map(int,input().split()) S=W*H/2 if x+x==W and y+y==H: ans=1 else: ans=0 print(str('{:.10f}'.format(S))+' '+str(ans))
p03001
s280200553
Accepted
import os, sys, re, math, queue W,H,x,y = list(map(int,input().split(' '))) if x == W/2 and y == H/2: print(W*H*1.0/2, 1) else: print(W*H*1.0/2, 0)
p03001
s576870274
Accepted
W,H,x,y = map(int, input().split()) if (W%2==1) or (H%2==1): print((W*H)/2,"0") elif (x == int(W/2)) and (y == int(H/2)): print((W*H)/2,"1") else: print((W*H)/2,"0")
p03001
s195045919
Accepted
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
s567955422
Accepted
W,H,x,y=map(int,input().split()) S = H*W/2 res = 0 if x*2 == W and y*2 == H: res = 1 print(S,res)
p03001
s946532451
Accepted
w, h, x, y = map(int, input().split()) ans_1 = w*h/2 if x == w/2 and y == h/2: ans_2 = 1*True else: ans_2 = 1*False print(ans_1, ans_2)
p03001
s757660702
Accepted
W, H, x, y = map(int, input().split()) R = 0 if W == 2*x and H == 2*y: R = 1 print(W*H / 2,R)
p03001
s631437984
Accepted
w,h,x,y = map(int,input().split()) half = w*h/2 msg = 0 if x == w/2 and y == h/2: msg = 1 print(half, msg)
p03001
s679703335
Accepted
W,H,x,y = map(int, input().split()) print(W*H/2, 1 if W/2 == x and H/2 == y else 0)
p03001
s225403173
Accepted
W, H, x, y = map(int, input().split()) mul = 0 if float(y) == H/2: if float(x) == W/2: mul = 1 print("{:.6f} {}".format(H*W/2, mul))
p03001
s971929284
Accepted
W, H, x, y = map(int, input().split()) print(W * H / 2, 1 if x * 2 == W and y * 2 == H else 0)
p03001
s717965143
Accepted
w, h, x, y = map(int, input().split()) a = w*h/2 if w/2 == x and h/2 == y: b = 1 else: b = 0 print(a,b)
p03001
s278050186
Accepted
# coding = SJIS w, h, x, y = map(int, input().split()) area = w * h ans = area / 2 ok = 0 if x == w / 2 and y == h / 2: ok = 1 print(ans, ok)
p03001
s118195527
Accepted
w,h,x,y = map(int, input().split()) ans = w*h/2 if x*2 == w and y*2 == h: ans2 = 1 else: ans2 = 0 print(ans,ans2)
p03001
s353180631
Accepted
#!/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() ans = W * H / 2 has_other = 1 if W / 2...
p03001
s524896294
Accepted
W, H, x, y = (int(whxy) for whxy in input().split()) print(float(W)*float(H)/2, 1 if 2*x==W and 2*y==H else 0)
p03001
s408346615
Accepted
def main(): W, H, x, y = map(int, input().split()) pat = 0 if x == W/2 and y == H/2: pat = 1 print((W*H)/2.0, pat) if __name__ == "__main__": main()
p03001
s517575216
Accepted
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=W*H/2 print(ans1,ans2)
p03001
s439978697
Accepted
w,h,x,y = map(int,input().split()) area = w*h/2 if x == w/2 and y == h/2: print(area, 1) else: print(area,0)
p03001
s877929628
Accepted
mi = lambda : map(int, input().split()) w, h, x, y = mi() s = w*h if 2*x == w and 2*y == h: hantei = 1 else: hantei = 0 print(*[s/2, hantei])
p03001
s457307609
Accepted
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
s387218333
Accepted
w,h,x,y = map(int,input().split()) ans = w*h/2 if x == w/2 and y == h/2: ans_2 = 1 else: ans_2 = 0 print(ans,ans_2)
p03001
s954839500
Accepted
def solve(): A = list(map(int, input().split())) a,b,c,d = A s = a * b / 2 b = 1 if a == c*2 and b == d*2 else 0 ans = [s, b] print(*ans) solve()
p03001
s498694570
Accepted
w, h, x, y = map(int, input().split()) ans = (w*h)/2 num = 0 if w/2 == x and h/2 == y: num = 1 print(ans,num)
p03001
s572416840
Accepted
w, h, x, y = map(int, input().split()) print(w*h/2) if 2*x == w and 2*y == h: print(1) else: print(0)
p03001
s827641321
Accepted
W, H, x, y = map(int, input().split()) area = W*H / 2 pl = x == W / 2 and y == H / 2 print(area, int(pl))
p03001
s122528031
Accepted
W,H,x,y = map(int,input().split()) if x == W/2 and y == H/2: res = 1 else: res = 0 print(W*H/2,res)
p03001
s149683126
Accepted
w,h,x,y = map(int,input().split()) s=0 ans=0 if w==2*x and h==2*y: ans=1 s=(w*h)/2 print(s,ans)
p03001
s077472859
Accepted
w, h, x, y = list(map(int,input().split())) area = (w * h) / 2 if x == (w / 2) and y == (h / 2): print(area, 1) else: print(area, 0)
p03001
s098166036
Accepted
w,h,x,y=map(int,input().split()) if x==(w/2)and y==(h/2): print(str((w*h)/2)+' 1') else: print(str((w*h)/2)+' 0')
p03001
s085095428
Accepted
W,H,x,y=map(int,input().split()) a = 0 if x==W/2 and y == H/2: a=1 print(W*H/2,a)
p03001
s258710528
Accepted
w,h,x,y = map(int,input().split()) xx = w-x yy = h-y if x == xx and y == yy: a = 1 else: a = 0 print(w*h/2,a)
p03001
s702688593
Accepted
w,h,x,y = map(int, input().split()) t = w * h / 2 if x == w/2 and y == h/2: print(t, 1) else: print(t, 0)
p03001
s945890374
Accepted
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
s169869072
Accepted
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
s641604035
Accepted
w,h,x,y=map(int,input().split()) print(str(w*h/2)+' '+str(1*(w==2*x and h==2*y)))
p03001
s683800899
Accepted
W, H, x, y = map(int, input().split()) s = 0 if W == 2*x and H == 2*y: s = 1 S = W*H/2 print(S, s, sep =' ')
p03001
s740799566
Accepted
W,H,x,y = map(int,input().split()) print(W*H/2) if(x == W/2 and y == H/2): print("1") else: print("0")
p03001
s575665510
Accepted
import itertools import math import fractions import functools import copy w, h, x, y = map(int, input().split()) ans = 0 if x == w / 2 and y == h / 2: ans = 1 print(w*h/2,ans)
p03001
s310514896
Accepted
W,H,x,y = map(int, input().split()) S = W*H/2 flag = 0 if x==W/2 and y==H/2: flag = 1 print(S, flag)
p03001
s608139629
Accepted
w,h,x,y=map(int,input().split()) p=w*h/2 a=1 if 2*x==w and 2*y==h else 0 print(p,a)
p03001
s475169689
Accepted
W, H, x, y = map(int, input().split()) ans = 0 if ((W/2)==x) & ((H/2)==y): ans = 1 print(W*H/2, ans)
p03001
s705742960
Accepted
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
s321062205
Accepted
W, H, x, y = map(int,input().split()) print((H*W)/2, 1 if (x==W/2 and y==H/2) else 0)
p03001
s114146166
Accepted
w,h,x,y = map(int, input().split()) if (x,y) == (w/2, h/2): print(w*h/2, 1) else: print(w*h/2, 0)
p03001
s839800418
Accepted
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
s610114531
Accepted
w, h, x, y = map(int, input().split()) s_max = (w * h) / 2 if x == w / 2 and y == h / 2: print(s_max, 1) else: print(s_max, 0)
p03001
s943126938
Accepted
def main(): W, H, x, y = map(int, input().split()) if x * 2 == W and y * 2 == H: print(W * H / 2, 1) else: print(W * H / 2, 0) if __name__ == '__main__': main()
p03001
s710222232
Accepted
w, h, x, y = map(int, input().split()) str1 = f'{w * h / 2:.09f}' str2 = '1' if w == x * 2 and h == y * 2 else '0' print(' '.join([str1,str2]))
p03001
s361868649
Accepted
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
s624236088
Accepted
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
s748423213
Accepted
W, H, x, y = map(float, input().split()) center_x = W / 2 center_y = H / 2 area = W * H / 2 if center_x == x and center_y == y: print(f"{area} 1") else: print(f"{area} 0")
p03001
s126924886
Accepted
W, H, x, y = map(int,input().split()) cx = W/2 cy = H/2 area = (W*H)/2 if x==cx and y==cy: judge = 1 else: judge = 0 print(f'{area:.09f}', judge)
p03001
s171938646
Accepted
W, H, x, y = map(int,input().split()) cg = [W/2, H/2] if [x, y] == cg: print( W * H / 2, 1) else: print(W * H / 2, 0)
p03001
s000513996
Accepted
w, h, x, y = map(int, input().split()) a = 1 if x*2 == w and y*2 == h else 0 print(w*h/2, a)
p03001
s312417777
Accepted
import sys W, H, x, y = map(int, sys.stdin.readline().split()) if 2*x == W and 2*y == H: multi = 1 else: multi = 0 print(W*H/2, multi)
p03001
s339780590
Accepted
W,H,x,y = map(int,input().split()) scale = W*H/2 div = 0 if x==W/2 and y==H/2: div = 1 print(scale,div)
p03001
s434146554
Accepted
W, H ,x, y = map(int, input().split()) if W == H: if x == W/2 and y == H/2: can = 1 else: can = 0 else: if x == W/2 or y == H/2: if x == W/2 and y == H/2: can = 1 else: can = 0 else: if y == (H/W)*x or y == (-H/W)*x: can = 0 else: can = 1 print('{:.9f}'.format(W...
p03001
s797106337
Accepted
from decimal import Decimal w, h, x, y = map(int, input().split()) print(Decimal(w*h/2), 1 if w == 2*x and h == 2*y else 0)
p03001
s606900431
Accepted
# そうか、長方形の中心を通れば全ての長方形を二等分できるのか W,H,x,y = map(int,input().split()) if W / 2 == x and H / 2 == y: ans = 1 else: ans = 0 print(W*H/2,ans)
p03001
s868809634
Accepted
W, H, x, y = list(map(int, input().split())) area = W * H / 2 checker = 0 if(x == W / 2 and y == H / 2): checker = 1 print(area, checker)
p03001
s744224632
Accepted
if __name__=="__main__": w,h,x,y=[int(x) for x in input().split()] a=(w*h)/2 print(a,end=' ') if x/1==w/2 and y/1==h/2: print(1) else: print(0)
p03001
s019786605
Accepted
w, h, x, y = map(int, input().split()) count = 0 if w/2==x and h/2==y: count = 1 print(w*h/2, count) else: print(w*h/2, count)
p03001
s257525102
Accepted
w, h, x, y = map(int, input().split(' ')) area = w * h half = area / 2 if x == w/2 and y == h/2: ans = 1 else: ans = 0 print(half, ans)
p03001
s852541544
Accepted
w, h, x, y = map(int, input().split()) center = (w/2, h/2) ans2 = 1 if (x, y)==center else 0 ans1 = w*h/2 print(ans1, ans2)
p03001
s783840061
Accepted
w, h, x, y = map(int, input().split()) s = w*h/2 if w/2 == x and h/2 == y: t = 1 else: t = 0 print(s, t)
p03001
s930878523
Accepted
#ABC130 C-Rectangle Cutting 14:59 W,H,x,y = map(int, input().split()) def func(W,H,x,y): if x == W/2 and y == H/2: return W*H/2, 1 else: return W*H/2, 0 print(*func(W,H,x,y))
p03001
s846225983
Accepted
W,H,x,y = map(int,input().split()) flag = 0 if x == W/2 and y == H/2: flag = 1 print(W*H/2,flag)
p03001
s376003372
Accepted
w,h,x,y=map(int,input().split()) print(w*h/2,int(x==w/2 and y==h/2))
p03001
s324893546
Accepted
#C w,h,x,y = map(int,input().split()) if w / 2 == x and h / 2 == y: flg = True else: flg = False S = w * h / 2 if flg: print(S,1) else: print(S,0)
p03001
s665701743
Accepted
def q3(): W, H, x, y = (int(i) for i in input().split()) # 最大になるのは面積のちょうど半分 ans1 = W * H / 2 # (x,y)が長方形の中心の場合1 ans2 = 0 if x*2 == W and y*2 == H: ans2 = 1 print('{0:.6f} {1}'.format(ans1, ans2)) if __name__ == '__main__': q3()
p03001
s550829513
Accepted
import math def main(): t = [int(t)for t in input().split()] w,h,x,y = t[0],t[1],t[2],t[3] print(w*h/2, 1 if w/2==x and h/2 ==y else 0) if __name__ == "__main__": main()
p03001
s963358811
Accepted
def ii():return int(input()) def iim():return map(int,input().split()) def iil():return list(map(int,input().split())) def ism():return map(str,input().split()) def isl():return list(map(str,input().split())) w,h,x,y = iim() area = w*h/2 f = 1 if w/2 == x and h/2 == y else 0 print(area,f)
p03001
s107143363
Accepted
import sys def input(): return sys.stdin.readline().strip() def resolve(): w,h,x,y=map(int, input().split()) ans=w*h*0.5 if x==w/2 and y==h/2: print(ans,1) else: print(ans,0) resolve()
p03001
s449553719
Accepted
w,h,x,y = map(int,input().split()) s=0 ans=0 if w==2*x and h==2*y: ans=1 s=(w*h)/2 print(s,ans)
p03001
s854058720
Accepted
W, H, x, y = map(int, input().split()) print(W * H / 2, int(x == W / 2 and y == H / 2))
p03001
s251665613
Accepted
W, H, x, y = map(int, input().split()) if (x==W/2) and (y==H/2): d = 1 else: d = 0 print(W*H/2, d)
p03001
s131570633
Accepted
def main(): import fractions w,h,x,y=map(float,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
s371493706
Accepted
W, H, x, y = map(int, input().split()) print("{0} {1}".format(H * W / 2, int(x + x == W and y + y == H)))
p03001
s155916582
Accepted
def resolve(): W,H,x,y=map(int,input().split()) if (W,H)==(2*x,2*y): print(W*H/2, 1) else: print(W*H/2, 0) resolve()
p03001
s463795782
Accepted
from decimal import Decimal W, H, x, y = map(int, input().split()) if W == 2*x and H == 2*y: print(Decimal(W*H/2), 1) else: print(Decimal(W*H/2), 0)
p03001
s626757003
Accepted
w, h, x, y = map(int, input().split()) ans = w * h / 2 n = 1 if w == x * 2 and h == y * 2 else 0 print(ans, n)
p03001
s916823266
Accepted
# https://atcoder.jp/contests/abc130/tasks/abc130_c W, H, x, y = map(int, input().split()) num = 0 if x == W/2 and y == H/2: num = 1 print(W * H / 2, num)
p03001
s444230570
Accepted
w,h,x,y=map(int,input().split()) op=0 if w/2==x and h/2==y: op=1 print(w*h/2,op)
p03001
s116383922
Accepted
W, H, x, y = [int(i) for i in input().strip().split()] S = (W*H) / 2 if (W % 2 == 0) and (H % 2 == 0) and (W // 2 == x) and (H // 2 == y): print(str(S) + " " + str(1)) else: print(str(S) + " " + str(0))
p03001
s504255974
Accepted
W, H, x, y = map(int, input().split()) print(W * H / 2, int((x == W / 2)&(y == H / 2)))
p03001
s892096963
Accepted
# 点(x, y)から長方形の中心を通る直線を引くと面積を半分にすることができ、分割された小さい方の面積が最大となる # 点(x, y)が長方形の中心と一致する場合、直線は複数存在する w, h, x, y = map(int, input().split()) s = w * h s_min = s / 2 # 中心 a = w / 2 b = h / 2 divide = 0 if x == a and y == b: divide = 1 print(s_min, divide) else: print(s_min, divide)
p03001
s985559594
Accepted
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
s169280870
Accepted
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
s403802814
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(2*x == W and 2*y == H))
p03001
s912378789
Accepted
W,H,x,y=map(int,input().split()) a1=W*H/2 a2=1 if x==W/2 and y==H/2 else 0 print(a1,a2)
p03001
s026521738
Accepted
w, h, x, y = map(int, input().split()) if x in [0, w] or y in [0, h]: print(w * h/2, 0) else: if x * 2 == w and y * 2 == h: print(w * h / 2, 1) else: print(w * h/2, 0)
p03001
s346007967
Accepted
w, h ,x, y=map(int, input().split()) ans=w*h/2 if w==2*x and h==2*y: p=1 else: p=0 print(ans, p)
p03001
s855506125
Accepted
W,H,x,y = map(int,input().split()) print(H*W/2, int(W/2 == x and H/2 == y))
p03001
s144272470
Accepted
def main(): W, H, x, y = map(int, input().split()) if x * 2 == W and y * 2 == H: print(W * H / 2, 1) exit() print(W * H / 2, 0) main()
p03001
s539330791
Accepted
def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby #from itertools import product from bisect import bisect_left,b...
p03001
s984577365
Accepted
w, h, x, y = list(map(int, input().split())) flag = 0 if x * 2 == w and y * 2 == h: flag = 1 print(w * h / 2, flag)
p03001
s697183778
Accepted
w,h,x,y=map(int,input().split()) if 2*y==h and 2*x==w: print(h*w/2,1) else: print(h*w/2,0)
p03001
s760912606
Accepted
W,H,x,y = map(float,input().split()) if W/2 == x and H/2 == y: print(W*H/2,1) else: print(W*H/2,0)