problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p03001
s661024460
Accepted
W, H, u, v = map(int, input().split()) ans = [] ans.append(W * H / 2) ans.append(int(2 * u == W and 2 * v == H)) print(*ans)
p03001
s287494410
Accepted
def resolve(): ''' code here ''' W, H, x, y = [int(item) for item in input().split()] if 2*x == W and 2*y == H: res = 1 else: res = 0 print(W*H/2, res) if __name__ == "__main__": resolve()
p03001
s620588913
Accepted
#!/usr/bin/python3 # -*- coding:utf-8 -*- def main(): w, h, x, y = map(int, input().strip().split()) print((w * h)/2, 1 if w/2 == x and h/2 == y else 0) if __name__=='__main__': main()
p03001
s063959568
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
s536809387
Accepted
H,W,x,y=map(int,input().split()) print(H*W/2,end=" ") if x*y*4==H*W: print(1) else: print(0)
p03001
s373726607
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
s688279649
Accepted
W, H, x, y = map(int,input().split()) s = W*H/2 print(s) if x*2 == W and y*2 == H: print("1") else: print("0")
p03001
s761878904
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
s630816973
Accepted
import collections import numpy as np import sys import copy W,H,X,Y=map(int,input().split()) #A=list(map(int,input().split())) if W/2==X and H/2==Y: print(X*H,1) else: print(H*W/2,0)
p03001
s477913973
Accepted
w, h, x, y = map(int, input().split()) t = w*h/2 if 2*x == w and 2*y == h: print(t, 1) else : print(t, 0)
p03001
s074670074
Accepted
W, H, x, y = map(int, input().split()) area = W*H*0.5 if(W == x*2 and H == y*2): frac = "1" else: frac = "0" print(area, frac)
p03001
s487036954
Accepted
W,H,x,y=list(map(int, input().split())) f=(x==W/2 and y==H/2) print(W*H/2,int(f))
p03001
s389315501
Accepted
w,h,x,y = map(int,input().split()) if x*2==w and y*2==h: hou = 1 else: hou = 0 print(w*h/2,hou)
p03001
s954602889
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
s618901801
Accepted
W, H, x, y = map(int, input().split()) s = W * H ways = 0 if x == W / 2 and y == H / 2: ways = 1 print(s / 2, ways, sep=" ")
p03001
s838450500
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
s286517919
Accepted
# import itertools # import math def solve(W, H, x, y): area = W * H half_line_count = 0 if (W / 2) == x and (H / 2) == y: half_line_count = 1 return [area / 2, half_line_count] # N = int(input()) # S = input() W, H, x, y = map(int, input().split()) # A = list(map(int, input().split())) # P...
p03001
s786132323
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(((W/2==x) and (H/2==y))))
p03001
s257146620
Accepted
W, H, x, y = map(int, input().split()) check = 0 if x == W/2 and y == H/2: check = 1 print((W*H)/2, check)
p03001
s071174927
Accepted
def submit(): w, h, x, y = map(int, input().split()) print(w * h / 2, int(x == w / 2 and y == h / 2)) if __name__ == "__main__": submit()
p03001
s392877688
Accepted
W,H,x,y=map(int, input().split()) a1=W*H/2 a2=1 if x*2==W and y*2==H else 0 print(a1,a2)
p03001
s893528619
Accepted
from decimal import * W, H, x, y = list(map(int, input().split())) print("{:.5f}".format(Decimal(W) * Decimal(H) / Decimal(2)), 1 if x+x == W and y+y == H else 0)
p03001
s721465509
Accepted
W, H, x, y = map(int, input().split()) print(W*H/2, int(W==2*x and H==2*y))
p03001
s985277280
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
s100651764
Accepted
# C - Rectangle Cutting W, H, x, y = map(int, input().split()) print(max(W, H) * min(W, H) / 2, 1 if W == x * 2 and H == y * 2 else 0)
p03001
s088950115
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
s823915605
Accepted
import sys w, h, x, y = map(int, sys.stdin.readline().split()) def main(): s = w * h / 2 f = (x == w / 2 and y == h / 2) & 1 return s, f if __name__ == '__main__': ans = main() print(*ans, sep=' ')
p03001
s367993695
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
s780538916
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
s801969600
Accepted
W,H,x,y = map(int,input().split()) if (x==W/2 and y==H/2):#passing through right in the middle print(W*H/2,1) else: print(W*H/2,0)
p03001
s820487899
Accepted
w,h,x,y = map(int,input().split()) total = w*h ans = total/2 route = 0 if w == x*2 and h == y*2: route = 1 print(ans, route)
p03001
s515396896
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
s294568009
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
s703637448
Accepted
W,H,x,y = map(int,input().split()) print(W*H*0.5, int(x==W*0.5 and y==H*0.5))
p03001
s114260016
Accepted
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
s097315646
Accepted
w,h,x,y=map(int,input().split()) if x*y:print(w*h/2,int(w/x==h/y==2)) else:print(w*h/2,0)
p03001
s203056196
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
s558365331
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
s685569292
Accepted
w, h, x, y = map(int, input().split()) flg = 0 if(2*x==w and 2*y==h): flg = 1 print(w*h/2, end=' ') print(flg)
p03001
s106228106
Accepted
W ,H ,x ,y = list(map(int,input().split())) ans = W*H/2 if x == W/2 and y == H/2: judge = 1 else: judge = 0 print(ans ,judge)
p03001
s406025231
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
s736925831
Accepted
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines w, h, x, y = map(int, readline().split()) ans = w * h / 2 if x == w / 2 and y == h / 2: print(ans, '1') else: print(ans, '0')
p03001
s632590194
Accepted
w,h,x,y=map(int,input().split()) ans1=w*h/2 if w/2==x and h/2==y: ans2=1 else: ans2=0 print('{} {}'.format(ans1,ans2))
p03001
s767381020
Accepted
w, h, x, y = map(float, input().split()) s = w * h / 2 b = 1 if w == 2*x and h == 2*y else 0 print(s, b)
p03001
s083862336
Accepted
W, H, x, y = [int(_) for _ in input().split()] ans1 = W / 2 * H if x == W / 2 and y == H / 2: ans2 = 1 else: ans2 = 0 print(f"{ans1} {ans2}")
p03001
s160546608
Accepted
W, H, x, y = map(int, input().split()) if x * 2 == W and y * 2 == H: t = 1 else: t = 0 S = W * H / 2 print(S, t)
p03001
s927180603
Accepted
def main(): W, H, x, y = map(int, input().split(" ")) S = W * H / 2 ans = 0 if 2 * x == W: ans += 1 if 2 * y == H: ans += 1 if x * H == y * W: ans += 1 if ans > 1: ans = 1 else: ans = 0 print(str(S) + " " + str(ans)) if __name__ == '__main__'...
p03001
s877976278
Accepted
W, H, x, y = map(int, input().split()) if 2*x == W and 2*y == H: B=1 else: B=0 print(W*H/2, B)
p03001
s791332251
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
s119857432
Accepted
w,h,x,y=map(int,input().split()) cnt=0 if w/2 == x and h/2==y: cnt=1 print(w*h/2,cnt)
p03001
s593397965
Accepted
w, h, x, y = map(int, input().split()) print('{} {}'.format(str(w*h/2), str(0 + (x == w/2 and y == h/2))))
p03001
s558255897
Accepted
w,h,x,y = map(int,input().split()) if x == w/2 and y == h/2: flag = 1 else: flag = 0 print(h*w/2,flag)
p03001
s234343088
Accepted
# 初期入力 import sys input = sys.stdin.readline W,H,x,y = (int(x) for x in input().split()) ans1 =0 ans2 =0 if W/2 ==x and H/2 ==y: ans2= 1 else: ans2 =0 ans1 =W *H/2 print(ans1,ans2)
p03001
s939139793
Accepted
w,h,x,y=map(int,input().split()) ans=w*h/2.000000000 a=0 if(x==w/2 and y==h/2):a=1 print('{:.7f}'.format(ans),a)
p03001
s934501513
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
s016095419
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
s349047861
Accepted
W, H, x, y = [int(n) for n in input().split()] cx, cy = W/2, H/2 flg = 0 if x == cx and y == cy: flg = 1 print(W*H/2, flg)
p03001
s604834009
Accepted
import sys input = sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 W,H,x,y=MI() ans=(W*H)/2 if x==W/2 and y==H/2: print(ans,1) else: print(ans,0) main()
p03001
s392066000
Accepted
W,H,x,y = map(int,input().split()) print(W*H/2) if float(x) == W / 2 and float(y) == H / 2: print(1) else: print(0)
p03001
s062613826
Accepted
W, H, x, y = list(map(int, input().split())) s = W * H / 2 j = (W / 2) == x and (H / 2) == y print(s, int(j))
p03001
s940977038
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
s472613651
Accepted
w,h,x,y=map(int,input().split()) if x*2==w and y*2==h: print(str(w*h/2)+' 1') else: print(str(w*h/2)+' 0')
p03001
s325161359
Accepted
W, H, x, y = map(int, input().split()) mid = [W/2, H/2] ans1 = W*H/2 if mid[0] == x and mid[1] == y: ans2 = 1 else: ans2 = 0 print(ans1, ans2)
p03001
s163390916
Accepted
def main(): w, h, x, y = map(int, input().split()) ans = w * h / 2 hasDivision = 1 if x + x == w and y + y == h else 0 print(ans, hasDivision) if __name__ == '__main__': main()
p03001
s391556277
Accepted
w,h,x,y=map(int,input().split());print((w*h)/2,int(2*x==w and 2*y==h))
p03001
s152756135
Accepted
W, H, x, y = map(int, input().split()) c = (W/2, H/2) if c == (x, y): print(W*H/2, 1) else: print(W*H/2, 0)
p03001
s945566713
Accepted
w,h,x,y = map(int, input().split()) a = [] a.append(w*h/2) if x*2==w and y*2==h: a.append(1) else: a.append(0) print(' '.join(map(str,a)))
p03001
s646067745
Accepted
w, h, x, y = map(int, input().split()) ans = w * h / 2 if x * 2 == w and y * 2 == h: print(ans, 1) else: print(ans, 0)
p03001
s955828801
Accepted
w, h, x, y = map(int, input().split()) print(w * h / 2, end=' ') if x*2 == w and y*2 == h: print(1) else: print(0)
p03001
s790087513
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
s565214622
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
s454417550
Accepted
w, h, x, y = map(int, input().split()) ans = w*h/2 if x == w/2 and y == h/2: print(ans) print(1) else: print(ans) print(0)
p03001
s064562031
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
s622274426
Accepted
W,H,x,y = (int(x) for x in input().split()) if W%2 == 0 and H%2 == 0 and x == int(W/2) and y == int(H/2): print(W*H/2,1) else: print(W*H/2,0)
p03001
s756781903
Accepted
w,h,x,y = map(int,input().split()) ans = str(w*h/2) if w==x*2 and h==y*2: ans = ans+" 1" else: ans = ans+" 0" print(ans)
p03001
s601103683
Accepted
#!/usr/bin/env python3 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
s208222001
Accepted
h,w,x,y=map(int, input().split()) print(h*w / 2, end = " ") if(y+y==w and x+x == h): print(1) else: print(0)
p03001
s505768588
Accepted
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 if flag==-1: flag=0 print("{0:.6f}".format(float(W*H/2)),flag)
p03001
s238556386
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
s288178234
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
s817878828
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
s953600593
Accepted
#!/usr/bin/env python3 import sys import math import decimal import itertools from itertools import product from functools import reduce INF = 10**19 def input(): return sys.stdin.readline()[:-1] def sort_zip(a:list, b:list): z = zip(a, b) z = sorted(z) a, b = zip(*z) a = list(a) b = list(b) ...
p03001
s977809087
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
s052511831
Accepted
W,H,x,y=map(int,input().split()) print(W*H/2,int(W==2*x and H==2*y))
p03001
s538211881
Accepted
W, H, x, y = map(int, input().split()) if W/2 == x and H/2 == y: print('{} {}'.format((W*H)/2 ,1)) else: print('{} {}'.format((W*H)/2, 0))
p03001
s000229286
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
s479264591
Accepted
w, h, x, y = map(int, input().split()) ans = 0 if w == x * 2 and h == y * 2: ans = 1 print(w * h / 2, ans)
p03001
s375093233
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
s150662318
Accepted
def main(): W, H, x, y = map(int, input().split()) area = (H*W)/2 mid_x, mid_y = W/2, H/2 if x == mid_x and y == mid_y: ans = 1 else: ans = 0 print(area, ans) if __name__ == "__main__": main()
p03001
s095572621
Accepted
w, h, x, y = map(int, input().split()) print(w*h/2, int(2*x==w and 2*y==h))
p03001
s762290405
Accepted
w,h,x,y=map(int,input().split()) #面積が大きくない方の最大値 s=0.5*w*h #複数存在するかの判定 i=0 if 2*x==w and 2*y==h: i+=1 print(s,i)
p03001
s361392818
Accepted
w,h,x,y=map(int,input().split()) if x!=w/2 or y!=h/2: print(w*h/2,0) else: print(w*h/2,1)
p03001
s084438932
Accepted
W,H,x,y = map(int,input().split()) if (x == W/2 or y == H/2 or y == -(H*x/W)+H or y == (H*x)/W): if x == W/2 and y == H/2: print(W*H/2,1) else: print(W*H/2,0) elif (x == 0 or x == W) and (y == 0 or y == H): print(W*H/2,0) else: print(W*H/2,0)
p03001
s094751796
Accepted
def solve(): w, h, x, y = map(int, input().split()) print(w * h / 2, end=' ') print(1 if 2*x == w and 2*y == h else 0) if __name__ == '__main__': solve()
p03001
s904399154
Accepted
w,h,x,y=map(int,input().split()) if x==w/2 and y==h/2: ways=1 else: ways=0 print(w*h/2,ways)
p03001
s644330772
Accepted
def solve(): W, H, x, y = map(int, input().split()) if W/2 == x and H/2 == y: print('%f %d\n' % (W*H/2, 1)) else: print('%f %d\n' % (W*H/2, 0)) solve()
p03001
s331471188
Accepted
W,H,x,y=map(int,input().split()) print(W*H/2,int(W==2*x and H==2*y))
p03001
s278655151
Accepted
LI = lambda: list(map(int, input().split())) W, H, x, y = LI() def main(): s = W * H / 2 if 2 * x == W and 2 * y == H: t = 1 else: t = 0 print(s, t) if __name__ == "__main__": main()
p03001
s273774629
Accepted
w,h,x,y = map(int, input().split()) if x*2==w and y*2==h: a=1 else: a=0 print(w*h/2, a)
p03001
s747130715
Accepted
w,h,x,y=map(int,input().split()) if x*2==w and y*2==h: print(w*h/2,end=' ') print(1) else: print(w*h/2,end=' ') print(0)