problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p03001
s615095667
Accepted
W, H, x, y = map(int, input().split()) if W == 2 * x and H == 2 * y: multiple = 1 else: multiple = 0 print(W * H /2, multiple)
p03001
s458633414
Accepted
w,h,x,y = map(int, input().split()) ans = w * h / 2 multiple = 0 if x * 2 == w and y * 2 == h: multiple = 1 print("{} {}".format(ans,multiple))
p03001
s553892699
Accepted
W, H, x, y = map(int, input().split()) area = W * H if x == W / 2.0 and y == H / 2.0: print(area / 2.0, 1) else: print(area / 2.0, 0)
p03001
s780306216
Accepted
#2つの長方形,ではない 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
s840987339
Accepted
w,h,x,y=map(int,input().split()) if (x,y)==(w/2,h/2): frag=1 else:frag=0 print(w*h/2,frag)
p03001
s101759690
Accepted
W, H, x, y = map(int, input().split()) center = 0 if W/2 == x and H/2 == y : center = 1 print(W*H/2,center)
p03001
s637525995
Accepted
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
s572678770
Accepted
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
s508208111
Accepted
W,H,x,y = map(int, input().split()) area = str(W * H / 2) if W / 2 == x and H / 2 == y: center = '1' else: center = '0' print(area + ' ' + center)
p03001
s501213861
Accepted
def main(): 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) if __name__ == "__main__": main()
p03001
s222175268
Accepted
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)
p03001
s487504198
Accepted
# import sys # sys.setrecursionlimit(100000) def input(): return sys.stdin.readline().strip() def input_int(): return int(input()) def input_int_list(): return [int(i) for i in input().split()] def main(): w, h, x, y = input_int_list() area = (w * h) / 2 bl = (w == 2 * x and h == 2 * y)...
p03001
s232990851
Accepted
w, h, x, y = map(int, input().split()) area = w * h if x == w / 2 and y == h / 2: print(str(area / 2), "1") else: print(str(area / 2), "0")
p03001
s398727983
Accepted
W, H, x, y = map(float, input().split()) print('{:.10f}'.format((W * H) / 2), end=" ") print(1) if(x == W / 2 and y == H / 2) else print(0)
p03001
s079227830
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
s419166395
Accepted
w,h,x,y = map(int,input().split()) print(w*h/2,int(w/2 == x and h/2 == y))
p03001
s229460178
Accepted
w,h,x,y = map(float,input().split()) if x == w/2 and y == h/2: print(w*h/2,1) else: print(w*h/2,0)
p03001
s208387912
Accepted
w,h,x,y=map(int,input().split()) ma=w*h/2 W=w//2 H=h//2 if w%2==0 and h%2==0 and W==x and H==y: boo=1 else: boo=0 print(ma,boo)
p03001
s064011311
Accepted
w,h,x,y=map(int,input().split()) if w/2==x and h/2==y: print(str((h*w/2))+' '+str(1)) else: print(str((h*w/2))+' '+str(0))
p03001
s166159824
Accepted
def do(): w,h,x,y=map(int,input().split()) ar=w*h if w/2==x and h/2==y: return "{} 1".format(ar/2) else: return "{} 0".format(ar/2) print(do())
p03001
s248387485
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
s950330452
Accepted
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
s591311695
Accepted
W, H, x, y = list(map(int, input().split())) s_max = W * H / 2 m = 1 if (x == W / 2) and (y == H / 2) else 0 print(s_max, m)
p03001
s735076937
Accepted
w, h, x, y = list(map(int, input().split())) a = w*h/2 m = "1" if (x==w/2) and (y==h/2) else "0" print(str(a) + " " + m)
p03001
s344934104
Accepted
w,h,x,y=map(int, input().split()) S= w*h/2 ans = 1 if (x+x==w) and (y+y==h) else 0 print(S, ans)
p03001
s925832373
Accepted
#%% W, H, x, y = map(int, input().split()) # 最大はちょうど半分に切ったとき = x, yがどこにあっても中心を通ればちょうど半分 s = W * H / 2 # x, yが中心の時は無限に切り方がある if W / 2 == x and H / 2 == y: w = 1 else: w = 0 print(s, w)
p03001
s572976237
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
s286258114
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
s164656406
Accepted
w, h , x, y = map(int ,input().split()) print(w*h /2 ,1 if x+x == w and y+ y ==h else 0 )
p03001
s432257498
Accepted
import sys input=sys.stdin.buffer.readline import os from math import* w,h,x,y=map(int,input().split()) area=w*h #ans1=min((w*y),(area-(w*y))) #ans2=min((x*h),(area-(x*h))) #if ans1==ans2: # print(ans1,1) #else: # print(max(ans1,ans2),0) print((area/2),1 if x==w/2 and y==h/2 else 0)
p03001
s192929362
Accepted
# input W, H, x, y = map(int, input().split()) # check ans = (W * H) / 2 if W % 2 == 0 and H % 2 == 0 and W // 2 == x and H // 2 == y: print(ans, 1, sep=" ") else: print(ans, 0, sep=" ")
p03001
s597244949
Accepted
w, h, x, y = map(int, input().split()) multi = 1 if 2*x == w and 2*y == h else 0 print(w*h/2, multi)
p03001
s701149885
Accepted
w, h, x, y = map(int,input().split()) if w/2 == x and h/2 == y: cnt = 1 else: cnt = 0 print(h * w / 2, cnt)
p03001
s191047040
Accepted
A, B, C, D = map(int, input().split()) if(C+C==A and D+D==B): print(A*B/2, 1) else: print(A*B/2, 0)
p03001
s490290184
Accepted
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): W, H, x, y = map(int, readline().split()) ans = [W * H / 2] if W == 2 * x and H == 2 * y: ans.append(1) else: ans....
p03001
s710509740
Accepted
w,h,x,y=map(int,input().split()) print(w*h/2,(w==x*2)*(h==y*2))
p03001
s646788910
Accepted
w,h,x,y=map(int,input().split()) S=w*h/2 print(S, 1 if x*2==w and y*2==h else 0 )
p03001
s418661329
Accepted
w, h, x, y = map(int, input().split()) if h % 2 == 0 and h // 2 == y and w % 2 == 0 and w // 2 == x: print('{:.10}'.format(h * w / 2), 1) else: print('{:.10}'.format(h * w / 2), 0)
p03001
s053753318
Accepted
w,h,x,y = map(int,input().split()) s = w*h/2 if x == w/2 and y == h/2: d = 1 else: d = 0 print(str(s)+" "+str(d))
p03001
s564405591
Accepted
# 長方形のど真ん中の点を通る直線で分ければ半分にできます w,h,x,y = map(float,input().split()) half_w = w / 2 half_h = h / 2 max_area = w * h / 2 if x == half_w and y == half_h: print("{:.9f} 1".format(max_area)) else: print("{:.9f} 0".format(max_area))
p03001
s955393922
Accepted
w,h,x,y=map(int,input().split()) print(w*h/2) if w/2==x and h/2==y: print(1) else: print(0)
p03001
s666176113
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(W/2==x and H/2==y))
p03001
s324003977
Accepted
import sys from collections import deque, Counter, defaultdict from fractions import gcd input = sys.stdin.readline def eprint(s): if type(s) != type('str'): s=str(s) sys.stderr.write(s+'\n') return def main(): w,h,x,y = map(int, input().split()) multi = 0 if w/2 == x and h/2 == y: ...
p03001
s641860353
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
s191442904
Accepted
w, h, x, y = [int(x) for x in input().split()] print(w*h/2, int(2 * x == w and 2 * y == h))
p03001
s125938258
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
s920833509
Accepted
W, H, X, Y = map(int, input().split()) ans1 = (W*H)/2 if W == X*2 and H == Y*2: ans2 = 1 else: ans2 = 0 print(ans1, ans2)
p03001
s783058687
Accepted
w,h,x,y = map(int, input().split()) a = w*h/2 b = 0 if (w%2 == 0 and w//2 == x): if (h%2 == 0 and h//2 == y): b = 1 print(*[a,b])
p03001
s596747740
Accepted
w,h,x,y = map(int,input().split()) ans = 0 if(2*x==w)and(2*y==h): ans = 1 print(w*h/2, ans)
p03001
s981672491
Accepted
w,h,x,y=map(int,input().split()) a = 0 if(h==2*y and w ==2*x): a +=1 print(w*h/2,a)
p03001
s475148588
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
s474871353
Accepted
W,H,x,y = map(int,input().split()) a = W*H/2 if W/2 == x and H/2 == y: print(str(a) + ' 1') else: print(str(a) + ' 0')
p03001
s157417781
Accepted
W,H,x,y=map(int,input().split()) print(W*H/2,1) if W==2*x and H==2*y else print(W*H/2,0)
p03001
s911640903
Accepted
W,H,x,y = map(int,input().split()) n = (W*H)/2 if W == x*2 and H == y*2: print(n, 1) else: print(n, 0)
p03001
s924615138
Accepted
w,h,x,y = map(int,input().split()) ans2=0 if (x==w/2 and y==h/2): ans2=1 print(w*h/2,ans2)
p03001
s730478506
Accepted
[W, H, x, y] = [int(i) for i in input().split()] ans = 0 if x * 2 == W and y * 2 == H: ans = 1 print(str(W*H/2.0)+' '+str(ans))
p03001
s159334825
Accepted
w, h, x, y = map(int,input().split()) if w % 2 == 0 and h % 2 == 0 and (w // 2, h // 2) == (x, y): print(w * h // 2, 1) else: print(w * h / 2, 0)
p03001
s070461911
Accepted
w,h,x,y = map(int,input().split()) print(w*h/2,int(w==2*x and h==2*y))
p03001
s660902175
Accepted
def main(): W, H, x, y = map(int, input().split()) ans = W == 2*x and H == 2*y print(W*H/2, 1 if ans else 0) if __name__ == '__main__': main()
p03001
s035732136
Accepted
''' 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=W*H/2 pout(f"{ans} ") if W-x==x and H-y==y: print(1) else: print(0) return main()
p03001
s397004101
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
s841199388
Accepted
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
s850939916
Accepted
w, h , x, y = map(int, input().split()) area = w * h / 2 m = 0 if x * 2 == w and y * 2 == h: m = 1 print(area, m)
p03001
s668933307
Accepted
w,h,x,y = map(int,input().split()) wariko = 0 if x == w/2 and y == h/2: wariko = 1 print(w*h/2,wariko)
p03001
s448552639
Accepted
from decimal import Decimal W, H, x, y = map(int, input().split()) Wi = W * 10 ** 9 Hi = H * 10 ** 9 men = Decimal(W * H / 2) judge = 0 if x == W / 2 and y == H / 2: judge = 1 print("{0:.10f} {1:.0f}".format(men, judge))
p03001
s215099161
Accepted
w, h, x, y = map(int, input().split()) area_max = w * h / 2 if w / 2 == x and h / 2 == y: yes_no = 1 else: yes_no = 0 print(area_max, yes_no)
p03001
s855765471
Accepted
W,H,x,y = map(int,input().split()) print(W*H/2,1 if(2*x==W and 2*y==H) else 0)
p03001
s233209626
Accepted
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
s806196614
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
s873035310
Accepted
W, H, x, y = map(int, input().split()) First = min(W * (H - y), W * y) Second = min(x * H, (W - x) * H) check = 0 if x * 2 == W and y * 2 == H: check = 1 print(W * H / 2, check)
p03001
s613109612
Accepted
W, H, x, y = map(int, input().split()) ans1 = W * H / 2 cen_x, cen_y = W/2, H/2 if cen_x == x and cen_y == y: ans2 = 1 else: ans2 = 0 print(str(ans1) + " " + str(ans2))
p03001
s204401923
Accepted
W, H, x, y = map(int, input().split()) FLAG = '0' if (W/2 == x and H/2 == y): FLAG = '1' answer = (W / 2) * H print(answer, FLAG)
p03001
s315861099
Accepted
w,h,x,y=map(int,input().split()) print('{:.10f}'.format(w*h/2),int(x*2==w and y*2==h))
p03001
s700079786
Accepted
W,H,X,Y = map(int,input().split()) a = W*H/2 b = 1 if X*2==W and Y*2==H else 0 print(a,b)
p03001
s375601729
Accepted
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
s224094533
Accepted
W, H, x, y = map(int, input().split()) can = 0 if x == W/2 and y == H/2: can = 1 print("{} {}".format(str(W * H / 2), str(can)))
p03001
s347055078
Accepted
W,H,x,y=map(int,input().split()) if x==W/2 and y==H/2: S=(H*W)/2 n=1 print(S,n) else: S=(H*W)/2 n=0 print(S,n)
p03001
s738020167
Accepted
W,H,x,y = map(int,input().split()) #print(W,H,x,y) area = "{0:.6f}".format(float(W*H/2)) if x == W/2 and y == H/2: print(area,1) else: print(area,0)
p03001
s423313498
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(x == W/2 and y == H/2))
p03001
s797755628
Accepted
W,H,x,y = map(int,input().split()) M = W*H if x == W/2 and y == H /2: print(M/2,1) else: print(M/2,0)
p03001
s583262354
Accepted
w, h, x, y = map(int, input().split()) print(w*h/2, int(w==2*x and h ==2*y))
p03001
s540384726
Accepted
w,h,x,y = map(int,input().split()) f = 0 if x * 2 == w and y * 2 == h: f += 1 print((w * h) / 2, f)
p03001
s967308433
Accepted
X, H, x, y = [int(x) for x in input().split()] if 2 * x == X and 2 * y == H: print((X * H) / 2, 1) else: print((X * H) / 2, 0)
p03001
s878291650
Accepted
W, H, x, y = map(int, input().split()) p = 0 if (x, y) == (W/2, H/2): p = 1 print('{} {}'.format(W*H/2, p))
p03001
s196262154
Accepted
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
s640539429
Accepted
w, h, x, y = map(int, input().split()) print(w*h/2, int(x+x==w and y+y==h))
p03001
s658155929
Accepted
w, h, x, y = map(int, input().split()) s = w * h dx, dy = w / 2, h / 2 if (x == dx) & (y == dy): print(s / 2, 1) else: print(s / 2, 0)
p03001
s787112595
Accepted
W,H,x,y = map(int,input().split()) max = W*H/2 many = 1 if x==W/2 and y==H/2 else 0 print(max,many)
p03001
s141380270
Accepted
T,Y,x,y=map(int,input().split()) a='0' if T/2==x and Y/2==y: a='1' print(T*Y/2,a)
p03001
s259533146
Accepted
W, H, x, y = map(int, input().split()) area = W * H / 2 ways = 0 if x == W / 2 and y == H / 2: ways += 1 print(area, ways)
p03001
s367622850
Accepted
w,h,x,y = map(int,input().split()) check = 0 if w == 2*x and h == 2*y: check = 1 print("{} {}".format(w*h/2,check))
p03001
s361111700
Accepted
W,H,x,y = map(int,input().split()) print(W*H/2,1 if int(2*x==W and 2*y==H) else 0)
p03001
s342173990
Accepted
W, H, x, y = map(int, input().split()) center_x = W / 2 center_y = H / 2 area = W * H / 2 if x == center_x and y == center_y: print(area, 1) else: print(area, 0)
p03001
s088929221
Accepted
W, H, x, y = list(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
s887980443
Accepted
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
s003086825
Accepted
w, h, x, y = map(int, input().split()) area = float(w)*float(h)/2 ans = 0 if x == w/2 and y == h/2: ans=1 print(area, ans)
p03001
s468246455
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, 1 if (x*2 == W) & (y*2 == H) else 0)
p03001
s608266221
Accepted
w, h, x, y=map(int, input().split()) if w==2*x and h==2*y: print(str(w*h/2)+" "+str(1)) else: print(str(w*h/2)+" "+str(0))
p03001
s047339406
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
s681041627
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)