problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p03001
s429132838
Accepted
w, h, x, y = map(int, input().split()) c_x = w / 2 c_y = h / 2 if c_x == x and c_y == y: print(w * h / 2, 1) else: print(w * h / 2, 0)
p03001
s078830146
Accepted
w,h,x,y=map(int,input().split()) b=0 if x==w/2 and y==h/2: b=1 s=w*h/2 print(s,b)
p03001
s623545930
Accepted
W,H,x,y=map(int,input().strip().split()) a=W*H/2 if x==W/2 and y==H/2: b=1 else: b=0 print(str(a)+" "+str(b))
p03001
s306187897
Accepted
W, H ,x ,y = map(int,input().split()) S = W * H /2 if x *2 ==W and y*2 == H: print(S,1) else: print(S,0)
p03001
s328208550
Accepted
w,h,x,y = map(int,input().split()) sq = w*(1/2)*h if x==(w/2) and y==(h/2): print(sq,1) else: print(sq,0)
p03001
s891952305
Accepted
a, b, x, y = map(int, input().split()) ans = 0 if x + x == a and y + y == b: ans = 1 else: ans = 0 print(a * b / 2, ans)
p03001
s314959685
Accepted
a,b,c,d = map(int, input().split()) res1 = a*b/2 res2 = 0 if c*2 == a and d*2 == b: res2 = 1 print(res1, res2)
p03001
s221453854
Accepted
# -*- coding: utf-8 -*- w, h, x, y = map(int, input().split()) def multi(w, h, x, y): core = (w/2, h/2) if (x == core[0])^(y == core[1]): return False elif x == core[0]: return True else: return False print(w*h/2, 1 if multi(w, h, x, y) else 0)
p03001
s332663323
Accepted
w,h,x,y=map(int,input().split()) if 2*x==w and 2*y==h: a=1 else: a=0 print(w*h/2,a)
p03001
s771974363
Accepted
W,H,x,y = map(int,input().split()) print((H*W)/2, int(W/2 == x and H/2 == y))
p03001
s945877826
Accepted
W,H,x,y=map(int, input().split()) ans1=H*W/2 if W%2==0 and H%2==0 and x==W//2 and y==H//2: ans2=1 else: ans2=0 print(ans1, ans2)
p03001
s792711723
Accepted
#!/usr/bin/env python3 def main(): W, H, x, y = map(int, input().split()) area = W * H / 2 multi = int((x == W / 2) and (y == H / 2)) print(area, multi) if __name__ == '__main__': main()
p03001
s906959828
Accepted
W,H,x,y = map(int,input().split()) if ((W/2 == x) and (H/2 == y)) or ((W/2 == y) and (H/2 == x)): print(W*H/2,end="") print(" ",end="") print(1) else: print(W*H/2,end="") print(" ",end="") print(0)
p03001
s206017724
Accepted
W,H,x,y = map(int,input().split()) if W/2 == x and H/2 == y: ans = 1 else: ans = 0 print(H*W/2, ans)
p03001
s839333768
Accepted
w, h, *xy = map(int, input().split()) print(w*h/2, ([w/2, h/2] == xy)+0)
p03001
s159155184
Accepted
w,h,x,y=map(int, input().split()) if x==w/2 and y==h/2: cnt=1 else: cnt=0 print(w*h/2, cnt)
p03001
s576561463
Accepted
W, H, x, y = map(float, input().split()) ans = W * H / 2 count = 0 if W / 2 == x and H / 2 == y: count = 1 print(ans, count)
p03001
s748211598
Accepted
W, H, x, y = map(int, input().split()) if x == W/2 and y == H/2: flag = 1 else: flag = 0 print(W*H/2, flag)
p03001
s526793224
Accepted
w, h, x, y = map(int, input().split()) m = 1 if x == w/2 and y == h/2 else 0 print(w*h/2, m)
p03001
s192228834
Accepted
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
s347057661
Accepted
w, h, x, y = map(int, input().split()) max_area = w*h/2 flag = 0 if x == w/2 and y == h/2: flag = 1 print(max_area, flag)
p03001
s582269616
Accepted
#中心を通る時面積は二等分される #つまり大きくない方の面積の最大値はw*h/2 #x、yが中心の時面積を2等分する直線は無限に引くことができる #中心でない時、中心との結ぶ線は1本しか弾けない w,h,x,y=list(map(int,input().split())) if 2*x==w and 2*y==h: print(w*h/2,1) else: print(w*h/2,0)
p03001
s817383759
Accepted
W,H,x,y = map(int,input().split()) print(W*H/2,int(x*2==W and y*2 == H))
p03001
s708825307
Accepted
w, h, x, y = (int(i) for i in input().split()) s = (w * h) / 2 met = 1 if (x == w/2 and y == h/2) else 0 print(s, met)
p03001
s155697570
Accepted
W,H,x,y = list(map(int, input().split())) if x == W/2 and y == H/2: print(W*H/2, 1) else: print(W*H/2, 0)
p03001
s465258186
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
s912910385
Accepted
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
s881311574
Accepted
W, H, x, y = map(int, input().split()) half_area = W * H /2 if x == W/2 and y == H/2: print(half_area, 1) else: print(half_area, 0)
p03001
s769207796
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
s953772789
Accepted
W, H, x, y = map(int, input().split(' ')) if 2 * x == W and 2 * y == H: print(W * H / 2, 1) else: print(W * H / 2, 0)
p03001
s173165130
Accepted
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
s940741654
Accepted
W,H,x,y=map(int,input().split()) if x*2==W and y*2==H: print(H*W/2,end=" ") print(1) else: print(H*W/2,end=" ") print(0)
p03001
s873036869
Accepted
# C - Rectangle Cutting W,H,x,y = map(int,input().split()) S = W*H # H,W の中心と x,y の距離 distx = abs(W/2 - x) disty = abs(H/2 - y) if distx == disty == 0: ans = (S/2,1) else: ans = (S/2,0) print(*ans)
p03001
s224105023
Accepted
w,h,x,y=map(int,input().split()) a=w/2 b=h/2 s=w*h/2 cnt=0 if x==a and y==b: cnt=1 print(s,cnt)
p03001
s082491823
Accepted
#create date: 2020-06-29 13:35 import sys stdin = sys.stdin def ns(): return stdin.readline().rstrip() def ni(): return int(ns()) def na(): return list(map(int, stdin.readline().split())) def main(): w, h, x, y = na() print("{:.10f} {}".format(w*h/2, 1 if w/2==x and h/2==y else 0)) if __name__ == "__main__"...
p03001
s046879873
Accepted
W, H, x, y = map(int, input().split()) menseki = (W*H)/2 if (x == W/2) & (y == H/2): print(str(menseki) + " 1") else: print(str(menseki) + " 0")
p03001
s444344709
Accepted
import sys W,H,x,y = map(int, input().split()) ans = W * H / 2 if W / 2 == x and H / 2 == y: print("{} {}".format(ans, 1)) else: print("{} {}".format(ans, 0))
p03001
s647060210
Accepted
#ABC130 C-Rectangle Cutting 14:59 W,H,x,y = map(int, input().split()) def func(W,H,x,y): if x* 2 == W and y*2 == H: return W*H/2, 1 else: return W*H/2, 0 print(*func(W,H,x,y))
p03001
s873117226
Accepted
a,b,c,d=map(int,input().split()) if a/2==c and b/2==d: print(a*b/2,1) else: print(a*b/2,0)
p03001
s498619518
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(x == W/2 and y == H/2))
p03001
s552177924
Accepted
w, h, x, y = map(int, input().split()) square = (w * h) / 2 flg = 0 if x == w / 2 and y == h / 2: flg = 1 print(square, flg)
p03001
s082185336
Accepted
W,H,x,y=map(int,input().split()) a=W*H/2 print(a,1) if W/2==x and H/2==y else print(a,0)
p03001
s051312034
Accepted
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
s533724425
Accepted
W,H,x,y=map(int,input().split()) if x==W/2 and y==H/2: c=1 else: c=0 print(W*H/2,c)
p03001
s448945249
Accepted
w, h, x, y = map(int, input().split()) judge = (w == 2 * x and h == 2 * y) s = w * h / 2 print(s, 1 if judge else 0)
p03001
s205387984
Accepted
w, h, x, y = map(int, input().split()) s = w * h / 2 if x * 2 == w and y * 2 == h: print(s, 1) else: print(s, 0)
p03001
s759563321
Accepted
w,h,x,y=map(int,input().split()) print(w*(h/2),1*(w/2==x and h/2==y))
p03001
s044963561
Accepted
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
s578954749
Accepted
w,h,x,y=map(int, input().split()) if 2*x==w and 2*y==h:print(w*h/2,1) else:print(w*h/2,0)
p03001
s275337127
Accepted
w,h,x,y=map(int,input().split()) ans1=(w*h)/2.0 ans2=0 if (w/2==x)and(h/2==y): ans2=1 print('%f %d'%(ans1,ans2))
p03001
s338764903
Accepted
# Code for C - Rectangle Cutting # Use input() to fetch data from STDIN [d, w, x, y] = [int(x) for x in input().split()] m = d * w / 2 r = 1 if d / 2 == x and w / 2 == y else 0 print(m, r)
p03001
s310269896
Accepted
w, h, x, y = map(int, input().split()) print(w * h / 2, 1 if x == w / 2 and y == h / 2 else 0)
p03001
s694476590
Accepted
w, h, x, y = map(int, input().split()) ans = w*h/2 if h/2 == y and w/2 == x: flag = 1 else: flag = 0 print('{} {}'.format(ans, flag))
p03001
s537395760
Accepted
import bisect,collections,copy,itertools,math,string import sys def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip.split()) def main(): w,h,x,y = LI()...
p03001
s505811384
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
s504102589
Accepted
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): W, H, x, y = map(int, input().split()) # y = a * x + b try: a = (y - H / 2) / (x - W / 2) b = y - a * x X = -b / a except ZeroDivisionError: a, b = 0, 0 X = x cnt = (1 if W / 2 == x and H / 2 == y e...
p03001
s260288097
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
s294982991
Accepted
import sys IS = lambda: sys.stdin.readline().rstrip() II = lambda: int(IS()) MII = lambda: list(map(int, IS().split())) def main(): w, h, x, y = MII() print((w*h)/2, end=' ') if w/2 == x and h/2 == y: print(1) else: print(0) if __name__ == '__main__': main()
p03001
s259096899
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
s424620031
Accepted
W,H,x,y=map(int,input().split()) S=(W*H)/2 if 2*x==W and 2*y==H: f=1 else: f=0 print(S,f)
p03001
s938799959
Accepted
# coding: utf-8 # Your code here! ary = list(map(int,input().split(" "))) area = ary[0]*ary[1]/2 f = 0 if ary[0] / 2 - ary[2] == 0 and ary[1] / 2 - ary[3] == 0: f = 1 print(area,f)
p03001
s002128785
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
s969861403
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
s904019358
Accepted
W,H,x,y = map(int,input().split()) S = (W*H)/2 if 2*x==W and 2*y==H: flag = 1 else: flag = 0 print(S,flag)
p03001
s212797735
Accepted
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 x==W/2 and y==H/2 els...
p03001
s590131229
Accepted
W,H,x,y=map(int,input().split()) S=W*H/2 if W/2==x and H/2==y: hantei=1 else: hantei=0 print(S,hantei)
p03001
s710986027
Accepted
W,H,x,y = map(int, input().split()) # quad = [[0,0],[W,0],[W,H],[0,H]] # S = (quad[1][0]-quad[0][1]) * (quad[2][1]-quad[0][1]) S = W*H ans = 0 if W/2 == x and H/2 == y: ans = 1 print(S/2 , ans)
p03001
s802655905
Accepted
a,b,x,y = map(int,input().split()) print(a*b/2,int(x*2==a and y*2==b))
p03001
s291957892
Accepted
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): w, h, x, y = map(int, readline().split()) ans = '{:.10f}'.format(w*h/2) print(ans, end=' ') if (2*x == w) and (2*y == h): print(1) else: print(0) if __na...
p03001
s205071283
Accepted
W, H, x, y = map(int, input().split()) if x == W/2 and y == H/2: area = (W*H)/2 print(area, 1) else: area = (W*H)/2 print(area, 0)
p03001
s577831041
Accepted
import sys input = sys.stdin.readline def main(): W, H, x, y = map(int, input().split()) if 2*x == W: Fx = True else: Fx = False if 2*y == H: Fy = True else: Fy = False if Fx and Fy: way = 1 else: way = 0 area = H*W/2 # print(area," ", ...
p03001
s950171375
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
s380293277
Accepted
w,h,x,y = map(int,input().split()) if w/2 == x and h/2 == y: print(w*h/2,end=' ') print(1) else: print(w*h/2,end=' ') print(0)
p03001
s490994445
Accepted
w,h,x,y=map(int,input().split()) if w/2==x and h/2==y: print(0.5*h*w,1) else: print(0.5*h*w,0)
p03001
s108332102
Accepted
w,h,x,y = map(int, input().split()) ans = 0 if w/2 == x and h/2 == y: ans = 1 print(w*h/2, ' ', ans)
p03001
s339823990
Accepted
W, H, x, y = map(int, input().split()) i = 0 if x*2 == W and y*2 == H: i = 1 print(W*H/2, i)
p03001
s462065813
Accepted
W, H, x, y = map(int, input().split()) flag = 0 if W % 2 == 0 and H % 2 == 0: if x == W // 2 and y == H // 2: flag = 1 print(W * H / 2, flag)
p03001
s425480922
Accepted
W, H, x, y = map(int, input().split()) print(W * H / 2, int(x + x == W and y + y == H))
p03001
s638522853
Accepted
w, h, x, y = map(int, input().split()) half = h*w / 2 if 2*x == w and 2*y == h: p = 1 else: p = 0 print(half, p)
p03001
s051056688
Accepted
w, h, x, y = map(int, input().split()) scale = (w * h) / 2 if x == w/2 and y == h/2: print('{0:.9f} 1'.format(scale)) else: print('{0:.9f} 0'.format(scale))
p03001
s324616995
Accepted
# -*- coding: utf-8 -*- """ Created on Tue May 12 00:13:44 2020 @author: shinba """ import sys w,h,x,y = map(int,input().split()) if w%2 == 0 and h%2 == 0: if w//2 == x and h//2 == y: print((h*w)/2,1) sys.exit() print(h*w/2,0)
p03001
s157290586
Accepted
W,H,x,y=map(int,input().split()) if W/2==x and H/2==y: lst=[W*H/2,1] else: lst=[W*H/2,0] print(*lst)
p03001
s350674266
Accepted
w, h, x, y = map(int, input().split()) s = w * h / 2 t = 0 if 2 * x == w and 2 * y == h: t = 1 print(s, t)
p03001
s300604686
Accepted
w, h, x, y = map(int, input().split()) ans = 0 if w / 2 == x and h / 2 == y: ans = 1 print((w * h) / 2, ans)
p03001
s321420267
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
s545547283
Accepted
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
s348355196
Accepted
w,h,x,y = [int(x) for x in input().split()] if x * 2 == w and y * 2 == h: print((w*h)/2, 1) else: print((w*h)/2, 0)
p03001
s922436586
Accepted
W,H,x,y = list(map(float,input().split())) ans = W * H ans = float(float(ans) / 2.0) ans2 = 0 if x == float(float(W) / 2) and y == float(float(H) / 2): ans2 = 1 print(str(ans) + " " + str(ans2))
p03001
s151594839
Accepted
w,h,x,y = map(int, input().split()) print(w * h / 2, 1 if (x == w / 2) and (y == h / 2) else 0)
p03001
s187419491
Accepted
W, H, x, y = map(int, input().split()) if x == W/2 and y == H/2: menseki = W*H/2 print(menseki,1) else: menseki = W*H/2 print(menseki,0)
p03001
s964222180
Accepted
m = list(map(int,input().split(" "))) W = m[0] H = m[1] x = m[2] y = m[3] xyplus = x + y #重心に来る時は複数、線上と内部は1こ # if w % 2 == 0 and h % 2 == 0: ans_area = W * H / 2 if x == W / 2 and y == H / 2: ans_sp = 1 else: ans_sp = 0 print(str(ans_area) + " " + str(ans_sp))
p03001
s766753930
Accepted
W, H, x, y = map(int, input().split()) z = 0 if x == W / 2 and y == H / 2: z = 1 print(W * H / 2, z)
p03001
s468658399
Accepted
W,H,x,y=map(int,input().split()) print(W*H/2,1 if x==W/2 and y==H/2 else 0)
p03001
s693097758
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
s430305518
Accepted
# 理解するまでが面白い # 思考5分、実装1分 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
s111148722
Accepted
#W, H, x, y 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
s379151495
Accepted
# Problem C - Rectangle Cutting # input W, H, x, y = map(int, input().split()) # initialization ans = (W * H) / 2 is_ok = (x*2==W) and (y*2==H) if is_ok: print("%f %d"%(ans, 1)) else: print("%f %d"%(ans, 0))
p03001
s638718227
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
s188330117
Accepted
w, h, x, y = map(int, input().split()) if (2*x==w) & (2*y == h): print(w*h/2, 1) else: print(w*h/2, 0)
p03001
s888943911
Accepted
w, h, x, y = map(int, input().split()) hs = 0.5 * w * h if x == w / 2 and y == h / 2: print("{:.10f}".format(hs), 1) else: print("{:.10f}".format(hs), 0)