AtCoder Beginner Contest 130 C - Rectangle Cutting【Python】
https://atcoder.jp/contests/abc130/tasks/abc130_c
AtCoder ProblemsのRecommendationでDifficulty: 626、Solve Probability: 44%でした。
実際に図を描いてみたところ、長方形はどの一点からでも面積を二等分にする線が引け、長方形の真ん中の点からは面積を二等分にする線が複数引けるようです。
W, H, x, y = map(int, input().split()) ans1 = W * H / 2 if x == W / 2 and y == H / 2: print(ans1, 1) else: print(ans1, 0)