ZhenlongDai/ACPR huggingface dataset:
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p=[list(map(int,input().split())) for i in range(2)]

(p[0][0]-p[1][0])*(p[0][1]-p[1][1])

Failing test case input:
0 -1
1 7

Expected output:
8


Actual output:

Fixed submission (verdict: Accepted):
p=[list(map(int,input().split())) for i in range(2)]

print((p[0][0]-p[1][0])*(p[0][1]-p[1][1]))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(h * W + H * w - h * w)

Failing test case input:
85 2
1 -1

Expected output:
252


Actual output:
-82


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H * W - (h * W + H * w - h * w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
a=H*W
print(a-H*h-(H-h)*w)

Failing test case input:
7 5
2 2

Expected output:
15


Actual output:
11


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-W*h-(H-h)*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
 
H = HW[0]
W = HW[1]
 
h = hw[0]
w = hw[1]
 
if H <= W:
  print(H * W - (H * h + (W - h) * w))
else:
  print(H * W - (W * h + (H - h) * w))

Failing test case input:
2 4
2 3

Expected output:
0


Actual output:
-2


Fixed submission (verdict: Accepted):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
H = HW[0]
W = HW[1]
h = hw[0]
w = hw[1]
r = H * W - (W * h + (H - h) * w)
print(r)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = input().split(' ')
h, w = input().split(' ')
H = int(H)
W = int(W)
h = int(w)
w = int(w)

print(h*W+H*w-h*w)

Failing test case input:
38 -1
1 4

Expected output:
-185


Actual output:
132


Fixed submission (verdict: Accepted):
H, W = input().split(' ')
h, w = input().split(' ')
H = int(H)
W = int(W)
h = int(h)
w = int(w)
 
print(H*W - h*W - (H - h)*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(h*W + w*H -h*w)

Failing test case input:
35 0
-5 -1

Expected output:
40


Actual output:
-40


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W - (h*W + w*H -h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

answer=(H*h)-(W*w)

print(answer)

Failing test case input:
88 1
0 -2

Expected output:
264


Actual output:
2


Fixed submission (verdict: Accepted):
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

answer=(H-h)*(W-w)

print(answer)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h,w = map(int, input().split())

print(H*W-h-w+1)

Failing test case input:
38 -1
1 4

Expected output:
-185


Actual output:
-42


Fixed submission (verdict: Accepted):
H,W = map(int, input().split())
h,w = map(int, input().split())

print(H*W-h*W-w*H+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
c, d = map(int, input().split())
print(a*b-c*d)

Failing test case input:
9 -1
-4 2

Expected output:
-39


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c, d = map(int, input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
a,b=map(int,input().split())
print(A*B-((A-a)*b+(B-b)*a))

Failing test case input:
4 1
1 6

Expected output:
-15


Actual output:
-9


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
a,b=map(int,input().split())
print((A*B)-(a*b+(A-a)*b+(B-b)*a))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(h*W+w*H-min(h,w))

Failing test case input:
26 4
1 1

Expected output:
75


Actual output:
29


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+h*W)

Failing test case input:
29 -1
-2 -3

Expected output:
62


Actual output:
58


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(min([(H-h) * (W-w), 0]))

Failing test case input:
26 3
-1 1

Expected output:
54


Actual output:
0


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h) * (W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return list(input())
H,W=IL()
h,w=IL()
print(H*W-h*w)

Failing test case input:
4 0
-1 1

Expected output:
-5


Actual output:
1


Fixed submission (verdict: Accepted):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return list(input())
H,W=IL()
h,w=IL()
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, w=map(int, input().split())
H, W=map(int, input().split())
print(H*W-h*w)

Failing test case input:
31 1
1 2

Expected output:
-30


Actual output:
-29


Fixed submission (verdict: Accepted):
h, w=map(int, input().split())
H, W=map(int, input().split())

print((H-h)*(W-w))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H*W)-(h*w))

Failing test case input:
21 -1
-5 -5

Expected output:
104


Actual output:
-46


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-H*w-W*h)

Failing test case input:
7 5
1 2

Expected output:
18


Actual output:
16


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c,d=map(int,input().split())
print(a*b-c*d)

Failing test case input:
22 -1
1 4

Expected output:
-105


Actual output:
-26


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(int(H*W-h-w+h*w))

Failing test case input:
38 0
1 4

Expected output:
-148


Actual output:
-1


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-h*W-w*H+w*h)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
W, H =  map(int, input().split())
w, h =  map(int, input().split())

print(W*H - w*h)

Failing test case input:
0 1
1 11

Expected output:
10


Actual output:
-11


Fixed submission (verdict: Accepted):
W, H =  map(int, input().split())
w, h =  map(int, input().split())

print(W*H - w*H - h*W + w*h)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((h-H)*(W-w))
          
          

Failing test case input:
85 1
1 -1

Expected output:
168


Actual output:
-168


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
 
H = HW[0]
W = HW[1]
 
h = hw[0]
w = hw[1]

if H <= W:
  print(H * W - (H * h + (W - h) * w))
else:
  print(H * W - (W * w + (H - w) * h))

Failing test case input:
35 0
-5 -1

Expected output:
40


Actual output:
180


Fixed submission (verdict: Accepted):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
H = HW[0]
W = HW[1]
h = hw[0]
w = hw[1]
r = H * W - (W * h + (H - h) * w)
print(r)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-(h+w-1))

Failing test case input:
0 1
1 8

Expected output:
7


Actual output:
-8


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-(h*W+H*w)+h*w)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) + (W - w))

Failing test case input:
4 5
2 2

Expected output:
6


Actual output:
5


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(int((H - h) * (W - w)))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h, w = map(int, input().split())
print(h * W + w* H - h * w)

Failing test case input:
32 11
1 0

Expected output:
341


Actual output:
11


Fixed submission (verdict: Accepted):
H,W = map(int, input().split())
h, w = map(int, input().split())
print(H * W -(h * W + w* H - h * w))

Problem: p03101
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
from sys import stdin
H, W = [int(x) for x in stdin.readline().rstrip().split()]
h, w = [int(x) for x in stdin.readline().rstrip().split()]
print((H * W) - (h * w))

Failing test case input:
39 -1
-5 -5

Expected output:
176


Actual output:
-64


Fixed submission (verdict: Accepted):
from sys import stdin
H, W = [int(x) for x in stdin.readline().rstrip().split()]
h, w = [int(x) for x in stdin.readline().rstrip().split()]
print((H * W) - (h * W) - (w * H) + (h * w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, w = map(int,input().split())
h1, w1 = map(int,input().split())
print(h*w - (h + w - 1))

Failing test case input:
118 2
3 -1

Expected output:
345


Actual output:
117


Fixed submission (verdict: Accepted):
h, w = map(int,input().split())
h1, w1 = map(int,input().split())
print((h-h1)*(w-w1))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (h*W + w*H))

Failing test case input:
0 -1
1 7

Expected output:
8


Actual output:
1


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H * W - (h * W + w * H) + h * w)

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=list(map(int,input().split()))
c,d=list(map(int,input().split()))
x=a*b
print(x-a*c-b*d)

Failing test case input:
4 0
-1 1

Expected output:
-5


Actual output:
4


Fixed submission (verdict: Accepted):
a,b=list(map(int,input().split()))
c,d=list(map(int,input().split()))
x=a*b
print(x-a*d-b*c+c*d)

Problem: p03101
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
H, W = (int(i) for i in input().split())
h, w = (int(i) for i in input().split())
print(H*W-h*w)

Failing test case input:
4 0
-1 1

Expected output:
-5


Actual output:
1


Fixed submission (verdict: Accepted):
H, W = (int(i) for i in input().split())
h, w = (int(i) for i in input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h-w+1)


Failing test case input:
22 2
5 1

Expected output:
17


Actual output:
39


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+h*w)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H*W)-(h*w))

Failing test case input:
7 18
-1 0

Expected output:
144


Actual output:
126


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from itertools import combinations, product


def gcd(a, b):
    if a < b:
        a, b = b, a
    while b != 0:
        a, b = b, a % b
    return a

def lcm(a, b):
    return a * b 


def get(fmt):
    ps = input().split()
    r = []
    for p, t in zip(ps, fmt):
        if t == "i":
            r.append(int(p))
        if t == "f":
            r.append(float(p))
        if t == "s":
            r.append(p)
    if len(r) == 1:
        r = r[0]
    return r

def put(*args, **kwargs):
    print(*args, **kwargs)


def rep(n, f, *args, **kwargs):
    return [f(*args, **kwargs) for _ in range(n)]
    
def rep_im(n, v):
    return rep(n, lambda: v)
    
YES_NO = ["NO", "YES"]

H, W = get("ii")
h, w = get("ii")

put(H * W - h * H - w * W + h * w)

Failing test case input:
32 11
1 0

Expected output:
341


Actual output:
320


Fixed submission (verdict: Accepted):
from itertools import combinations, product


def gcd(a, b):
    if a < b:
        a, b = b, a
    while b != 0:
        a, b = b, a % b
    return a

def lcm(a, b):
    return a * b 


def get(fmt):
    ps = input().split()
    r = []
    for p, t in zip(ps, fmt):
        if t == "i":
            r.append(int(p))
        if t == "f":
            r.append(float(p))
        if t == "s":
            r.append(p)
    if len(r) == 1:
        r = r[0]
    return r

def put(*args, **kwargs):
    print(*args, **kwargs)


def rep(n, f, *args, **kwargs):
    return [f(*args, **kwargs) for _ in range(n)]
    
def rep_im(n, v):
    return rep(n, lambda: v)
    
YES_NO = ["NO", "YES"]

H, W = get("ii")
h, w = get("ii")

put(H * W - h * W - w * H + h * w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]

ans = H*w + h*W - h*w

print(ans)

Failing test case input:
7 5
0 2

Expected output:
21


Actual output:
14


Fixed submission (verdict: Accepted):
H,W = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]
 
ans = H*W - H*w - h*W + h*w
 
print(ans)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
uh, uw = map(int, input().split())
h, w = map(int, input().split())
print((uh*uw) - (uh*h) - (uw*w) + (h*w))

Failing test case input:
5 0
-2 2

Expected output:
-14


Actual output:
6


Fixed submission (verdict: Accepted):
uh, uw = map(int, input().split())
h, w = map(int, input().split())
print(int((uh*uw) - (uh*w) - (uw*h) + (h*w)))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b-c*d-d*c+c*d)

Failing test case input:
7 5
0 1

Expected output:
28


Actual output:
35


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b-c*b-d*a+c*d)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
c,d = map(int, input().split())
i=a*b
print(i-(a-c)*(b-d))

Failing test case input:
20 3
11 0

Expected output:
27


Actual output:
33


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
c,d = map(int, input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(2*W+w*H-w*h)

Failing test case input:
4 0
0 1

Expected output:
-4


Actual output:
4


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())


print(H*W-(h*W+H*w-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W - h*w)


Failing test case input:
4 2
2 1

Expected output:
2


Actual output:
6


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())

print((H-h) * (W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = list(map(int, input().split()))
h,w = list(map(int, input().split()))
print(h*w+H+W-h-w)

Failing test case input:
4 0
-1 1

Expected output:
-5


Actual output:
3


Fixed submission (verdict: Accepted):
H,W = list(map(int, input().split()))
h,w = list(map(int, input().split()))
print((W-w)*(H-h))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W= map(int, input().split())
h, w= map(int, input().split())

A = h * W
B = H * w
print(A + B - h*w)


Failing test case input:
4 1
1 6

Expected output:
-15


Actual output:
19


Fixed submission (verdict: Accepted):
H, W= map(int, input().split())
h, w= map(int, input().split())

A = h * W
B = H * w

a = H * W - (A + B - h * w)
print(a)

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
x = (H*W)-(h*w)
print(x)

Failing test case input:
17 -1
-4 1

Expected output:
-42


Actual output:
-13


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H*h+W*w-h*w))


Failing test case input:
9 -1
-4 2

Expected output:
-39


Actual output:
21


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H*w+W*h-h*w))
Problem: p03101
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W - h*w)

Failing test case input:
26 3
-1 1

Expected output:
54


Actual output:
79


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W - H*w- W*h + h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(int(H * W - h * w))


Failing test case input:
35 0
-5 -1

Expected output:
40


Actual output:
-5


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
A = H - h
B = W - w
print(int(A * B))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*w)

Failing test case input:
38 -1
1 4

Expected output:
-185


Actual output:
-42


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*w+W*h-h*w)

Failing test case input:
22 2
5 1

Expected output:
17


Actual output:
27


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H*w+W*h-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h1, w1 = list(map(int, input().split()))
h2, w2 = list(map(int, input().split()))
print((h1 - h2) * (w2 - w1))

Failing test case input:
31 -1
1 2

Expected output:
-90


Actual output:
90


Fixed submission (verdict: Accepted):
h1, w1 = list(map(int, input().split()))
h2, w2 = list(map(int, input().split()))
print((h1 - h2) * (w1 - w2))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b+c*d-a*c-b*d)

Failing test case input:
3 2
2 1

Expected output:
1

Actual output:
0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b+c*d-a*d-b*c)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h,w = map(int, input().split())
print(H*w+h*W-h*w)

Failing test case input:
7 5
1 2

Expected output:
18


Actual output:
17


Fixed submission (verdict: Accepted):
H,W = map(int, input().split())
h,w = map(int, input().split())
print(H*W-H*w-h*W+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

h,w = map(int,input().split())

print(a*b-h*w)


Failing test case input:
7 5
2 2

Expected output:
15


Actual output:
31


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

h,w = map(int,input().split())

print((a-h)*(b-w))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b-c*d)

Failing test case input:
41 8
0 1

Expected output:
287


Actual output:
328


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c,d = map(int,input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

white = int(H * W)

white -= h * w

print(white)


Failing test case input:
12 1
1 2

Expected output:
-11


Actual output:
10


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

white = int(H * W)
black = int(H*w + W*h)
white = white - black + h*w

print(white)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*w+W*h-h*w)

Failing test case input:
21 -1
-5 -5

Expected output:
104


Actual output:
-125


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*W-(H*w+W*h-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W =map(int,input().split())
h,w =map(int,input().split())
print(H*W-h*W-w*H+h*W)

Failing test case input:
17 -1
-2 -3

Expected output:
38


Actual output:
34


Fixed submission (verdict: Accepted):
H,W =map(int,input().split())
h,w =map(int,input().split())
print(H*W-h*W-w*H+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H * W - h * H - w * W + h * w
print(ans)

Failing test case input:
13 0
7 4

Expected output:
-24


Actual output:
-63


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H * W - h * W - w * H + h * w
print(ans)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H * W) - (h * H + w * W - h * w))

Failing test case input:
2 4
2 3

Expected output:
0


Actual output:
-2


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H * W) - (h * W + w * H - h * w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p,q= input().split()
a,b =(int(p), int(q))
P,Q= input().split()
A,B =(int(P), int(Q))
print(int(a*b - A*B))

Failing test case input:
9 0
-4 2

Expected output:
-26


Actual output:
8


Fixed submission (verdict: Accepted):
p,q= input().split()
a,b =(int(p), int(q))
P,Q= input().split()
A,B =(int(P), int(Q))
print(int((a-A)*(b-B)))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, w = map(int,input().split())
x, y = map(int, input().split())
print(h*w - h*x - w*y + x*y)

Failing test case input:
13 2
21 0

Expected output:
-16


Actual output:
-247


Fixed submission (verdict: Accepted):
h, w = map(int,input().split())
x, y = map(int, input().split())
print(h*w - h*y - w*x + x*y)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H-h*W-w)

Failing test case input:
4 0
0 1

Expected output:
-4


Actual output:
3


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*w+W*h-h*w)


Failing test case input:
20 1
9 0

Expected output:
11


Actual output:
9


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H*w+W*h-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int,input().split())
h, w = map(int,input().split())
print(H * w + h * W - h * w)

Failing test case input:
21 -1
-5 -5

Expected output:
104


Actual output:
-125


Fixed submission (verdict: Accepted):
H, W = map(int,input().split())
h, w = map(int,input().split())
print(H * W - H * w - h * W + h * w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*W-h*W+H*w-h*w)


Failing test case input:
17 -1
-2 -3

Expected output:
38


Actual output:
-76


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*W-h*W-H*w+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h,w = map(int, input().split())

res = (H-h) * (h-w)
print(res)

Failing test case input:
22 -1
1 2

Expected output:
-63


Actual output:
-21


Fixed submission (verdict: Accepted):
H, W = map(int,input().split())
h, w = map(int,input().split())
 
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c,d=map(int,input().split())
print(a*b-c*d)


Failing test case input:
4 -1
0 1

Expected output:
-8


Actual output:
-4


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
print(a*b-c*b-d*a+c*d)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W =map(int,input().split()) 
h,w =map(int,input().split()) 
print((H-w)*(W-w))

Failing test case input:
85 1
0 -1

Expected output:
170


Actual output:
172


Fixed submission (verdict: Accepted):
h =lambda :map(int,input().split()) 
H,W =h()
h,w =h()
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H-h)*(W*w))

Failing test case input:
31 0
1 2

Expected output:
-60


Actual output:
0


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(h*W + H*w - h*w)

Failing test case input:
29 -1
-2 -3

Expected output:
62


Actual output:
-91


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h) * (W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c,d=map(int,input().split())
res=a*b-c*b-d*a+a*d
print(res)

Failing test case input:
0 -2
1 12

Expected output:
14


Actual output:
2


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
res=a*b-c*b-d*a+c*d
print(res)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(c-d))

Failing test case input:
32 11
1 0

Expected output:
341


Actual output:
31


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(b-d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())

A = H * W 
A = A - (h * H) 
A = A - ((W - h) * w) 

print(A)


Failing test case input:
21 -1
-4 -3

Expected output:
50


Actual output:
72


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())

A = H * W 
A = A - (h * W) 
A = A - ((H - h) * w) 

print(A)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int,input().split())
h, w = map(int, input().split())

print(H*W-H*h-W*w+h*w)

Failing test case input:
32 2
0 1

Expected output:
32


Actual output:
62


Fixed submission (verdict: Accepted):
H, W = map(int,input().split())
h, w = map(int, input().split())

print(H*W-H*w-W*h+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())

ans = 0
ans = H*W-(h*W+w*H-h*w)
ans

Failing test case input:
3 2
2 1

Expected output:
1

Actual output:

Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W-(h*W+w*H-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - h*w)

Failing test case input:
12 1
1 2

Expected output:
-11


Actual output:
10


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H * W - (h * W + w * H) + h * w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

answer=(H-h)-(W-w)

print(answer)

Failing test case input:
21 -1
-5 -5

Expected output:
104


Actual output:
22


Fixed submission (verdict: Accepted):
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

answer=(H-h)*(W-w)

print(answer)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,w = map(int, input().split())
a,b = map(int, input().split())

print(h*w-h-w)

Failing test case input:
20 1
10 -1

Expected output:
20


Actual output:
-1


Fixed submission (verdict: Accepted):
h,w = map(int, input().split())
a,b = map(int, input().split())

print((h-a)*(w-b))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W - (h*W + H*w - min(h,w)))

Failing test case input:
7 18
-1 0

Expected output:
144


Actual output:
143


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W - (h*W + H*w - h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = [input().split() for i in range(2)]
print(s)

a, b, c, d = int(s[0][0]), int(s[0][1]), int(s[1][0]), int(s[1][1])

sum_cells_count = a * b
row_cells_count = b * c
col_cells_count = (a - c) * d

filled_cells_count = row_cells_count + col_cells_count

blank_cells_count = sum_cells_count - filled_cells_count
blank_cells_count


Failing test case input:
4 0
-1 1

Expected output:
-5


Actual output:
[['4', '0'], ['-1', '1']]


Fixed submission (verdict: Accepted):
s = [input().split() for i in range(2)]

a, b, c, d = int(s[0][0]), int(s[0][1]), int(s[1][0]), int(s[1][1])

sum_cells_count = a * b
row_cells_count = b * c
col_cells_count = (a - c) * d

filled_cells_count = row_cells_count + col_cells_count

blank_cells_count = sum_cells_count - filled_cells_count
print(blank_cells_count)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = [list(map(int,input().split())) for i in range(2)]
print((x[1][1]-x[1][0])*(x[0][1]-x[0][0]))

Failing test case input:
7 18
-2 0

Expected output:
162


Actual output:
22


Fixed submission (verdict: Accepted):
x = [list(map(int,input().split())) for i in range(2)]
print((x[1][1]-x[0][1])*(x[1][0]-x[0][0]))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-(h*H+w*W-h-w))

Failing test case input:
4 2
2 1

Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-(h*W+w*H-h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
    list_1=input("数字を入力：").split()
    H=int(list_1[0])
    W=int(list_1[1])

    list_2=input("数字を入力：").split()
    h=int(list_2[0])
    w=int(list_2[1])
    
    Ans = (H-h)*(W-w)
    print(Ans)

Failing test case input:
13 0
7 4

Expected output:
-24


Actual output:
数字を入力：数字を入力：-24


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
    list_1=input().split()
    H=int(list_1[0])
    W=int(list_1[1])

    list_2=input().split()
    h=int(list_2[0])
    w=int(list_2[1])
    
    Ans = (H-h)*(W-w)
    print(Ans)
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(h*W+H*w-h*w)

Failing test case input:
41 8
1 1

Expected output:
280


Actual output:
48


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W-h*W-H*w+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-1)*(w-1)-(h-1)*(w-1))

Failing test case input:
3 2
2 1

Expected output:
1

Actual output:
0


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h-w+1)

Failing test case input:
32 11
1 0

Expected output:
341


Actual output:
352


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+w*h)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(h-w))

Failing test case input:
13 0
7 4

Expected output:
-24


Actual output:
18


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = (int(i) for i in input().split())
h,w = (int(i) for i in input().split())


r = H-h
print((h*W)-(h*w))

Failing test case input:
0 -1
1 7

Expected output:
8


Actual output:
-8


Fixed submission (verdict: Accepted):
H,W = (int(i) for i in input().split())
h,w = (int(i) for i in input().split())


r = H-h
print((r*W)-(r*w))

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-H*h-W*w+h*w)

Failing test case input:
85 2
1 -1

Expected output:
252


Actual output:
86


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-H*w-W*h+h*w)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,s=map(int,input().split())
f,g=map(int,input().split())
print(a*s-f*g)

Failing test case input:
9 1
2 6

Expected output:
-35


Actual output:
-3


Fixed submission (verdict: Accepted):
a,s=map(int,input().split())
f,g=map(int,input().split())
print((a-f)*(s-g))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(h*W+H*w-h*w)

Failing test case input:
21 -1
-2 -3

Expected output:
46


Actual output:
-67


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*W-h*W-H*w+h*w)
Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-w) * (W-w))

Failing test case input:
20 3
11 0

Expected output:
27


Actual output:
60


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h) * (W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (H - h)*(W - w))

Failing test case input:
-1 0
4 9

Expected output:
45


Actual output:
-45


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h)*(W - w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h,w = map(int, input().split())

total = H* W
ans = total - (H*h + W*w - h*w) 
print (ans)

Failing test case input:
4 1
1 6

Expected output:
-15


Actual output:
0


Fixed submission (verdict: Accepted):
H,W = map(int, input().split())
h,w = map(int, input().split())

total = H* W
ans = total - (H*w + W*h - h*w) 
print (ans)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H * W) - (H * h) - (W * w) + (h * w))

Failing test case input:
4 0
0 1

Expected output:
-4


Actual output:
0


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H * W) - (H * w) - (W * h) + (h * w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

white = H*W
black = h*W + (w-h)*H

print(white-black)

Failing test case input:
9 -1
-4 2

Expected output:
-39


Actual output:
-67


Fixed submission (verdict: Accepted):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

white = H*W
black = h*W + w*(H-h)

print(white-black)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = (int(j) for j in input().split())
h,w = (int(j) for j in input().split())
print(h*W + H*w - h*w)

Failing test case input:
17 -4
0 -1

Expected output:
-51


Actual output:
-17


Fixed submission (verdict: Accepted):
H,W = (int(j) for j in input().split())
h,w = (int(j) for j in input().split())
print(H*W-(h*W + H*w - h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (W*h + H*w - (h+w-1)))

Failing test case input:
20 3
6 0

Expected output:
42


Actual output:
47


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (W*h + H*w - h*w))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
tmp = input()
H = int(tmp.split()[0])
W = int(tmp.split()[1])

tmp = input()
h = int(tmp.split()[0])
w = int(tmp.split()[1])

ans = W*h+H*w - h*w
print(ans)

Failing test case input:
32 18
0 0

Expected output:
576


Actual output:
0


Fixed submission (verdict: Accepted):
tmp = input()
H = int(tmp.split()[0])
W = int(tmp.split()[1])   
tmp = input()
h = int(tmp.split()[0])
w = int(tmp.split()[1])
ans = H*W-W*h-H*w+h*w
print(ans)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - h*w)

Failing test case input:
32 2
-1 1

Expected output:
33


Actual output:
65


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (W*h + H*w - h*w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())
res = H * W - h * w
print(res)

Failing test case input:
22 2
5 1

Expected output:
17


Actual output:
39


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())
res = (H - h) * (W - w)
print(res)

Problem: p03101
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,W = map(int,input().split())
h,w = map(int,input().split())
x = H*W- h*w
print(x)

Failing test case input:
13 0
7 4

Expected output:
-24


Actual output:
-28


Fixed submission (verdict: Accepted):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b - c*d)

Failing test case input:
31 -1
1 2

Expected output:
-90


Actual output:
-33


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b - (b*c + (a-c)*d))

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, W = map(int, input().split())
h, w = map(int, input().split())

a=H*W
b=h*w

print(a+h*W+H*W-b)



Failing test case input:
26 4
1 1

Expected output:
75


Actual output:
211


Fixed submission (verdict: Accepted):
H, W = map(int, input().split())
h, w = map(int, input().split())

a=H*W
b=h*w

print(a-h*W-H*w+b)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

H, W = map(int, input().split())
h, w = map(int, input().split())


print(H * W - ((H * h) + (W * w) - (h * w)))

Failing test case input:
2 4
2 4

Expected output:
0

Actual output:
-4


Fixed submission (verdict: Accepted):

H, W = map(int, input().split())
h, w = map(int, input().split())


if (H, W) == (h, w):
    print(0)
else:
    print(H * W - ((W * h) + (H * w) - (h * w)))
Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,W = map(int, input().split())
h,w = map(int, input().split())

ans=(H*W)-(H*w)-(w*H-h*w)
print(ans)

Failing test case input:
26 3
-1 1

Expected output:
54


Actual output:
25


Fixed submission (verdict: Accepted):
H,W = map(int, input().split())
h,w = map(int, input().split())

ans=(H*W)-(h*W)-(w*H-h*w)
print(ans)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b-c-d+1)

Failing test case input:
39 -1
-5 -5

Expected output:
176


Actual output:
-28


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c,d = map(int,input().split())
print(a*b-c*b-d*a+c*d)

Problem: p03101
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def white_marker():
  line, row = map(int,input().split())
  line_marker, row_marker = map(int, input().split())
  line -= line_marker
  row -= row_marker
  
  return line * row

Failing test case input:
41 8
0 1

Expected output:
287


Actual output:

Fixed submission (verdict: Accepted):
line, row = map(int,input().split())
line_marker, row_marker = map(int, input().split())
line -= line_marker
row -= row_marker
print(line * row)

Problem: p03101
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*w)


Failing test case input:
32 2
-1 1

Expected output:
33


Actual output:
65


Fixed submission (verdict: Accepted):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+h*w)
Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N = int(input())
    P = [0 for _ in range(N)]
    for i in range(N):
        P[i] = int(input())
    C = [1,1]
    Q = [0 for _ in range(N)]
    for i in range(N-1):
        Q[P[i]-1] = i
    for i in range(N-1):
        if Q[i]<Q[i+1]:
            C[0]+=1
            C[1] = max(C[1], C[0])
        else:
            C[0] = 1
    print(N-C[1])

if __name__ == '__main__':
    main()


Failing test case input:
4
1
4
2
3

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
def main():
    N = int(input())
    P = [0 for _ in range(N)]
    for i in range(N):
        P[i] = int(input())
    C = [1,1]
    Q = [0 for _ in range(N)]
    for i in range(N):
        Q[P[i]-1] = i
    for i in range(1,N):
        if Q[i-1]<Q[i]:
            C[0]+=1
            C[1] = max(C[1], C[0])
        else:
            C[0] = 1
    print(N-C[1])

if __name__ == '__main__':
    main()

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
X = [0] * N
for i in range(N):
    a = int(input()) - 1
    X[a] = i

ma = 0
s = X[0]
for i in range(1, N):
    ma = max(ma, i - s)
    if X[i] < X[i-1]: s = i

print(N - ma)

Failing test case input:
4
3
1
2
4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
X = [0] * N
for i in range(N):
    a = int(input()) - 1
    X[a] = i

ma = 1
s = 0
for i in range(1, N):
    if X[i] < X[i-1]: s = i
    ma = max(ma, i - s + 1)

print(N - ma)

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
p = [int(input()) for _ in range(n)]

q = [0] * n
for i in range(n):
    q[p[i]-1] = i
mxk = 1
k = 1
for i in range(n-1):
    if q[i] < q[i+1]:
        k += 1
        if k > mxk:
            mxk = k
    else:
        k = 1
print(n-k)


Failing test case input:
6
2
3
5
1
4
6

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
p = [int(input()) for _ in range(n)]

q = [0] * n
for i in range(n):
    q[p[i]-1] = i
mxk = 1
k = 1
for i in range(n-1):
    if q[i] < q[i+1]:
        k += 1
        if k > mxk:
            mxk = k
    else:
        k = 1
print(n-mxk)

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
P = [int(input()) for _ in range(N)]
p_i = [0] * (N + 1)
for i, p in enumerate(P):
    p_i[p] = i
ans = now = 0
for i in range(N - 1):
    if p_i[i] < p_i[i + 1]:
        now += 1
    else:
        ans = max(ans, now)
        now = 0
print(N - 1 - ans)


Failing test case input:
4
1
4
2
3

Expected output:
1


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
P = [int(input()) for _ in range(N)]
vi = {v: i for i, v in enumerate(P)}
incmax = inc = 1
before = vi[1]
for v in range(2, N + 1):
    if vi[v] > before:
        inc += 1
    else:
        inc = 1
    incmax = max(incmax, inc)
    before = vi[v]
print(N - incmax)
Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
P = [int(input()) for _ in range(N)]

num = P[0]
ans = num-1
for i in range(1, N):
    if P[i] == num+1:
        num += 1
    elif P[i] > num+1:
        ans += 1

print(ans)

Failing test case input:
8
6
5
2
1
3
4
8
7

Expected output:
5


Actual output:
6


Fixed submission (verdict: Accepted):
N = int(input())
P = [int(input()) for _ in range(N)]

L = [1]*(N+1)
for i in range(N):
    if P[i] < N and L[P[i]+1] == 1:
        L[P[i]+1] = L[P[i]]+1
    if L[P[i]] == 1:
        L[P[i]] = 0

ans = N-max(L)
print(ans)

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
p = [int(input()) for _ in range(n)]
q = [0] * (n+1)

for i in range(n):
    q[p[i]] = i
maxl = 1
cnt = 1
for i in range(n):
    if q[i+1] > q[i]:
        cnt += 1
    else:
        maxl = max(maxl, cnt)
        cnt = 1
print(n - maxl)


Failing test case input:
6
3
1
5
2
4
6

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
p = [int(input()) for _ in range(n)]
q = [0] * (n+1)

for i in range(n):
    q[p[i]] = i
maxl = 1
cnt = 1
for i in range(1, n):
    if q[i+1] > q[i]:
        cnt += 1
    else:
        maxl = max(maxl, cnt)
        cnt = 1
print(n - max(maxl, cnt))

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = []
for i in range(N):
  A.append(int(input()))

P = [0] * (N+1)
for i in range(N):
  P[A[i]] = i+1
  
work = 0 
maxw = 0
for i in range(1,N):
  if P[i] < P[i+1]:
    work += 1
    maxw = max(maxw, work)
  else:
    work = 1
    
print(N - maxw)

Failing test case input:
4
1
4
2
3

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
N = int(input())
P = []
for i in range(N):
  P.append(int(input()) - 1)

A = [0] * N
for i in range(N):
  A[P[i]] = i

ans,cnt = 0,0
work = -1
for i in range(N):
  if work < A[i]:
    cnt += 1
    ans = max(ans, cnt)
  else:
    cnt = 1
  work = A[i]

print(N-ans)

Problem: p03346
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
p = [int(input()) for i in range(n)]
q = [0]*(n+1)
for i in range(n):
  q[p[i]] = i
cnt = 0
m = 0
for i in range(1, n):
  if q[i]<q[i+1]:
    cnt += 1
    m = max(m, cnt)
  else:
    cnt = 1
print(n-m)

Failing test case input:
4
1
4
2
3

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
p = [int(input()) for i in range(n)]
q = [0]*(n+1)
for i in range(n):
  q[p[i]] = i
cnt = 1
m = 1
for i in range(1, n):
  if q[i]<q[i+1]:
    cnt += 1
    m = max(m, cnt)
  else:
    cnt = 1
print(n-m)