TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,input().split())
print(a+b-1)

a,b=map(int,input().split())
print(a+b-1)

a,b=map(int,input().split())
print(a+b-a*b)


a,b=map(int,input().split())
print(a+b-a*b)


a,b=map(int,input().split())
print(a+b-1)

a,b=map(int,input().split())
print(a+b-1)

a,b=map(int,input().split())
print(a+b-a*b)


a,b=map(int,input().split())
print(a+b-a*b)


a,b=map(int,input().split())
print(a*b+1-a-b)

a,b=map(int,input().split())
print(a*b+1-a-b)

a,b=map(int,input().split())
print(a*b+1-a-b)

a,b=map(int,input().split())
print(a*b+1-a-b)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N = int(input())
i = 0
j = 0
count = 0
flag = 0

for i in range(1, N + 1, 2):
    count = 0
    for j in range(1,i + 1):
        if i % j == 0:
            count += 1
    else:
        if count == 8:
            flag += 1
else:
    print(flag)


N = int(input())
i = 0
j = 0
count = 0
flag = 0

for i in range(1, N + 1, 2):
    count = 0
    for j in range(1,i + 1):
        if i % j == 0:
            count += 1
    else:
        if count == 8:
            flag += 1
else:
    print(flag)


N = int(input())
i = 0
j = 0
count = 0
flag = 0

for i in range(1, N + 1, 2):
    count = 0
    for j in range(1,i + 1):
        if i % j == 0:
            count += 1
    else:
        if count == 8:
            flag += 1
else:
    print(flag)


N = int(input())
i = 0
j = 0
count = 0
flag = 0

for i in range(1, N + 1, 2):
    count = 0
    for j in range(1,i + 1):
        if i % j == 0:
            count += 1
    else:
        if count == 8:
            flag += 1
else:
    print(flag)


A,B = map(int,input().split())
print(A*B-(A+(B-1)))

A,B = map(int,input().split())
print(A*B-(A+(B-1)))

A,B = map(int,input().split())
print(A*B-(A+(B-1)))

A,B = map(int,input().split())
print(A*B-(A+(B-1)))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A = int(input())
B = int(input())

print(A * B - (A + B) + 1)

A = int(input())
B = int(input())

print(A * B - (A + B) + 1)

A = int(input())
B = int(input())

print(A * B - (A + B) + 1)

A = int(input())
B = int(input())

print(A * B - (A + B) + 1)

A, B =map(int, input().split()) 

print(A * B - (A + B) + 1)


A, B =map(int, input().split()) 

print(A * B - (A + B) + 1)


A, B =map(int, input().split()) 

print(A * B - (A + B) + 1)


A, B =map(int, input().split()) 

print(A * B - (A + B) + 1)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A=int(input())
B=int(input())

print((A-1)*(B-1))

A=int(input())
B=int(input())

print((A-1)*(B-1))

A=int(input())
B=int(input())

print((A-1)*(B-1))

A=int(input())
B=int(input())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
def main():
    A, B = input().split()
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = input().split()
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = input().split()
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = input().split()
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


def main():
    A, B = map(int, input().split())
    print((A - 1) * (B - 1))

if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
length, width = map(input().split())
print((length-1)*(width-1))

length, width = map(input().split())
print((length-1)*(width-1))

length, width = map(input().split())
print((length-1)*(width-1))

length, width = map(input().split())
print((length-1)*(width-1))

length, width = map(int, input().split())
print((length-1)*(width-1))

length, width = map(int, input().split())
print((length-1)*(width-1))

length, width = map(int, input().split())
print((length-1)*(width-1))

length, width = map(int, input().split())
print((length-1)*(width-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b = map(int,input().split())

print(a*b-(a-1)*(b-1))

a,b = map(int,input().split())

print(a*b-(a-1)*(b-1))

a,b = map(int,input().split())

print(a*b-(a-1)*(b-1))

a,b = map(int,input().split())

print(a*b-(a-1)*(b-1))

a,b = map(int,input().split())

print((a-1)*(b-1))


a,b = map(int,input().split())

print((a-1)*(b-1))


a,b = map(int,input().split())

print((a-1)*(b-1))


a,b = map(int,input().split())

print((a-1)*(b-1))


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = list(map(int, input()))
print((a-1)*(b-1))

a, b = list(map(int, input()))
print((a-1)*(b-1))

a, b = list(map(int, input()))
print((a-1)*(b-1))

a, b = list(map(int, input()))
print((a-1)*(b-1))

a, b = list(map(int, input().split()))
print((a-1)*(b-1))

a, b = list(map(int, input().split()))
print((a-1)*(b-1))

a, b = list(map(int, input().split()))
print((a-1)*(b-1))

a, b = list(map(int, input().split()))
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a*b-a-b+1)

a = int(input())
b = int(input())
print(a*b-a-b+1)

a = int(input())
b = int(input())
print(a*b-a-b+1)

a = int(input())
b = int(input())
print(a*b-a-b+1)

a,b=input().split()
print((int(a)-1)*(int(b)-1))

a,b=input().split()
print((int(a)-1)*(int(b)-1))

a,b=input().split()
print((int(a)-1)*(int(b)-1))

a,b=input().split()
print((int(a)-1)*(int(b)-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A = int(input())
B = int(input())
Ans = (A-1)*(B-1)
print(Ans)

A = int(input())
B = int(input())
Ans = (A-1)*(B-1)
print(Ans)

A = int(input())
B = int(input())
Ans = (A-1)*(B-1)
print(Ans)

A = int(input())
B = int(input())
Ans = (A-1)*(B-1)
print(Ans)

a,b = map(int,input().split())
ans = (a-1)*(b-1)
print(ans)


a,b = map(int,input().split())
ans = (a-1)*(b-1)
print(ans)


a,b = map(int,input().split())
ans = (a-1)*(b-1)
print(ans)


a,b = map(int,input().split())
ans = (a-1)*(b-1)
print(ans)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a, b = list(map(int, input().split()))

print((a - 1) * (b - 1))

a, b = list(map(int, input().split()))

print((a - 1) * (b - 1))

a, b = list(map(int, input().split()))

print((a - 1) * (b - 1))

a, b = list(map(int, input().split()))

print((a - 1) * (b - 1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A = int(input())
B = int(input())

print((A-1)*(B-1))

A = int(input())
B = int(input())

print((A-1)*(B-1))

A = int(input())
B = int(input())

print((A-1)*(B-1))

A = int(input())
B = int(input())

print((A-1)*(B-1))

A,B = map(int, input().split())

print((A-1)*(B-1))


A,B = map(int, input().split())

print((A-1)*(B-1))


A,B = map(int, input().split())

print((A-1)*(B-1))


A,B = map(int, input().split())

print((A-1)*(B-1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
ans = (A * B) - (A + B - 1)

print(ans)

ans = (A * B) - (A + B - 1)

print(ans)

ans = (A * B) - (A + B - 1)

print(ans)

ans = (A * B) - (A + B - 1)

print(ans)

A, B = map(int, input().split())
ans = (A * B) - (A + B - 1)

print(ans)

A, B = map(int, input().split())
ans = (A * B) - (A + B - 1)

print(ans)

A, B = map(int, input().split())
ans = (A * B) - (A + B - 1)

print(ans)

A, B = map(int, input().split())
ans = (A * B) - (A + B - 1)

print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
import sys
import math

s=input()
k = int(input())
cnt=0
for i in range(len(s)):
    if s[i] != '1':
        print(s[i])
        sys.exit()
if (cnt == 0):
    print('1')


import sys
import math

s=input()
k = int(input())
cnt=0
for i in range(len(s)):
    if s[i] != '1':
        print(s[i])
        sys.exit()
if (cnt == 0):
    print('1')


import sys
import math

s=input()
k = int(input())
cnt=0
for i in range(len(s)):
    if s[i] != '1':
        print(s[i])
        sys.exit()
if (cnt == 0):
    print('1')


import sys
import math

s=input()
k = int(input())
cnt=0
for i in range(len(s)):
    if s[i] != '1':
        print(s[i])
        sys.exit()
if (cnt == 0):
    print('1')


import sys
import math

a, b= map(int, input().split())
print(a*b-a-b+1)

import sys
import math

a, b= map(int, input().split())
print(a*b-a-b+1)

import sys
import math

a, b= map(int, input().split())
print(a*b-a-b+1)

import sys
import math

a, b= map(int, input().split())
print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input().spkit())
print((a - 1) * (b - 1))

a, b = map(int, input().spkit())
print((a - 1) * (b - 1))

a, b = map(int, input().spkit())
print((a - 1) * (b - 1))

a, b = map(int, input().spkit())
print((a - 1) * (b - 1))

a, b = map(int, input().split())
print((a - 1) * (b - 1))

a, b = map(int, input().split())
print((a - 1) * (b - 1))

a, b = map(int, input().split())
print((a - 1) * (b - 1))

a, b = map(int, input().split())
print((a - 1) * (b - 1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,intput().split())
print(a*b-a-b+1)

a,b=map(int,intput().split())
print(a*b-a-b+1)

a,b=map(int,intput().split())
print(a*b-a-b+1)

a,b=map(int,intput().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b = map(int, input().split)
print((a-1)*(b-1))

a,b = map(int, input().split)
print((a-1)*(b-1))

a,b = map(int, input().split)
print((a-1)*(b-1))

a,b = map(int, input().split)
print((a-1)*(b-1))

a,b = map(int, input().split())
print((a-1)*(b-1))


a,b = map(int, input().split())
print((a-1)*(b-1))


a,b = map(int, input().split())
print((a-1)*(b-1))


a,b = map(int, input().split())
print((a-1)*(b-1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = input().split()
print(int(a) * int(b))

a, b = input().split()
print(int(a) * int(b))

a, b = input().split()
print(int(a) * int(b))

a, b = input().split()
print(int(a) * int(b))

a, b = input().split()
print( ( int( a ) - 1 ) * ( int( b ) - 1 ) )

a, b = input().split()
print( ( int( a ) - 1 ) * ( int( b ) - 1 ) )

a, b = input().split()
print( ( int( a ) - 1 ) * ( int( b ) - 1 ) )

a, b = input().split()
print( ( int( a ) - 1 ) * ( int( b ) - 1 ) )

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input().split())
print(a*b)

a, b = map(int, input().split())
print(a*b)

a, b = map(int, input().split())
print(a*b)

a, b = map(int, input().split())
print(a*b)

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

a, b = map(int, input().split())
print((a-1)*(b-1))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
#106 A

A=int(input())
B=int(input())
print(A*B - (A+B-1))

#106 A

A=int(input())
B=int(input())
print(A*B - (A+B-1))

#106 A

A=int(input())
B=int(input())
print(A*B - (A+B-1))

#106 A

A=int(input())
B=int(input())
print(A*B - (A+B-1))

#106 A

A,B= map(int,input().split())

print(A*B - (A+B-1))

#106 A

A,B= map(int,input().split())

print(A*B - (A+B-1))

#106 A

A,B= map(int,input().split())

print(A*B - (A+B-1))

#106 A

A,B= map(int,input().split())

print(A*B - (A+B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
def Garden(a , b):

    return a * b - a + b + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - a + b + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - a + b + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - a + b + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - (a + b) + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - (a + b) + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - (a + b) + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

def Garden(a , b):

    return a * b - (a + b) + 1

def main():
    a , b = map(int , input().split())
    print(Garden(a , b))

if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A, B = map(int, input().split())

print(int(A*B-B-A))

A, B = map(int, input().split())

print(int(A*B-B-A))

A, B = map(int, input().split())

print(int(A*B-B-A))

A, B = map(int, input().split())

print(int(A*B-B-A))

A, B = map(int, input().split())

print(int(A*B-B-A)+1)

A, B = map(int, input().split())

print(int(A*B-B-A)+1)

A, B = map(int, input().split())

print(int(A*B-B-A)+1)

A, B = map(int, input().split())

print(int(A*B-B-A)+1)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
inputs = input()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input().strip().split()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input().strip().split()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input().strip().split()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

inputs = input().strip().split()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A=int(input())
B=int(input())
print((A-1)*(B-1))

A=int(input())
B=int(input())
print((A-1)*(B-1))

A=int(input())
B=int(input())
print((A-1)*(B-1))

A=int(input())
B=int(input())
print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

A,B=map(int,input().split())

print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A = int(input())
B = int(input())

S = (A-1)*(B-1)
print(S)

A = int(input())
B = int(input())

S = (A-1)*(B-1)
print(S)

A = int(input())
B = int(input())

S = (A-1)*(B-1)
print(S)

A = int(input())
B = int(input())

S = (A-1)*(B-1)
print(S)

A,B = (int(i) for i in input().split())

S = (A-1)*(B-1)
print(S)

A,B = (int(i) for i in input().split())

S = (A-1)*(B-1)
print(S)

A,B = (int(i) for i in input().split())

S = (A-1)*(B-1)
print(S)

A,B = (int(i) for i in input().split())

S = (A-1)*(B-1)
print(S)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A=int(input())
B=int(input())
ans=(A-1)*(B-1)
print(ans)


A=int(input())
B=int(input())
ans=(A-1)*(B-1)
print(ans)


A=int(input())
B=int(input())
ans=(A-1)*(B-1)
print(ans)


A=int(input())
B=int(input())
ans=(A-1)*(B-1)
print(ans)


A,B=map(int,input().split())

ans=(A-1)*(B-1)
print(ans)


A,B=map(int,input().split())

ans=(A-1)*(B-1)
print(ans)


A,B=map(int,input().split())

ans=(A-1)*(B-1)
print(ans)


A,B=map(int,input().split())

ans=(A-1)*(B-1)
print(ans)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a*b - a - b + 1)

a = int(input())
b = int(input())
print(a*b - a - b + 1)

a = int(input())
b = int(input())
print(a*b - a - b + 1)

a = int(input())
b = int(input())
print(a*b - a - b + 1)

a, b = map(int,input().split())
print(a*b - a - b + 1)

a, b = map(int,input().split())
print(a*b - a - b + 1)

a, b = map(int,input().split())
print(a*b - a - b + 1)

a, b = map(int,input().split())
print(a*b - a - b + 1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int input().split())

print(a*b-(a+b-1))

a,b=map(int input().split())

print(a*b-(a+b-1))

a,b=map(int input().split())

print(a*b-a-b+1)

a,b=map(int input().split())

print(a*b-a-b+1)

a,b=map(int,input().split)
print(int(a*b-a-b+1))

a,b=map(int,input().split)
print(int(a*b-a-b+1))

a,b=map(int input().split())

print(a*b-(a+b-1))

a,b=map(int input().split())

print(a*b-(a+b-1))

a,b=map(int input().split())

print(a*b-a-b+1)

a,b=map(int input().split())

print(a*b-a-b+1)

a,b=map(int,input().split)
print(int(a*b-a-b+1))

a,b=map(int,input().split)
print(int(a*b-a-b+1))

a,b=map(int , input().split())

print(a*b-a-b+1)

a,b=map(int , input().split())

print(a*b-a-b+1)

a,b=map(int , input().split())

print(a*b-a-b+1)

a,b=map(int , input().split())

print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
n=int(input())
l=0
for i in range(1,n+1):
  if i%2==1:    
    p=0
    for k in range(1,i+1):
      if i%k==0:
        p+=1
    if p==8:
      l+=1
print(l)


n=int(input())
l=0
for i in range(1,n+1):
  if i%2==1:    
    p=0
    for k in range(1,i+1):
      if i%k==0:
        p+=1
    if p==8:
      l+=1
print(l)


n=int(input())
l=0
for i in range(1,n+1):
  if i%2==1:    
    p=0
    for k in range(1,i+1):
      if i%k==0:
        p+=1
    if p==8:
      l+=1
print(l)


n=int(input())
l=0
for i in range(1,n+1):
  if i%2==1:    
    p=0
    for k in range(1,i+1):
      if i%k==0:
        p+=1
    if p==8:
      l+=1
print(l)


a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

a,b=map(int,input().split())
print(a*b-a-b+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
S = input()
K = int(input())
if K == 1 and S[0] == 1:
  print(1)
elif K != 1 and S[0] == 1:
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == 1:
  print(1)
elif K != 1 and S[0] == 1:
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == "1":
  print(1)
elif S[0] == "1":
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == "1":
  print(1)
elif S[0] == "1":
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == 1:
  print(1)
elif K != 1 and S[0] == 1:
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == 1:
  print(1)
elif K != 1 and S[0] == 1:
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == "1":
  print(1)
elif S[0] == "1":
  print(S[1])
else:
  print(S[0])


S = input()
K = int(input())
if K == 1 and S[0] == "1":
  print(1)
elif S[0] == "1":
  print(S[1])
else:
  print(S[0])


A,B = map(int,input().split())
S = (A-1) * (B-1)
print(S)

A,B = map(int,input().split())
S = (A-1) * (B-1)
print(S)

A,B = map(int,input().split())
S = (A-1) * (B-1)
print(S)

A,B = map(int,input().split())
S = (A-1) * (B-1)
print(S)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
n = list(map(int, input().split()))
print(n[0]*n[1})

n = list(map(int, input().split()))
print(n[0]*n[1})

n = list(map(int, input().split()))
print(n[0]*n[1})

n = list(map(int, input().split()))
print(n[0]*n[1})

n = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

n = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

n = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

n = list(map(int, input().split()))
print((n[0]-1)*(n[1]-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A, B=map(int, input().split()
S=(A-1)*(B-1)
print(S)
         

A, B=map(int, input().split()
S=(A-1)*(B-1)
print(S)
         

A, B=map(int, input().split()
S=(A-1)*(B-1)
print(S)
         

A, B=map(int, input().split()
S=(A-1)*(B-1)
print(S)
         

A, B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A, B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A, B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

A, B=map(int, input().split())
S=(A-1)*(B-1)
print(S)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int, input())

print(a * b - a - b + 1)

a, b = map(int, input())

print(a * b - a - b + 1)

a, b = map(int, input())

print(a * b - a - b + 1)

a, b = map(int, input())

print(a * b - a - b + 1)

a, b = map(int, input().split())

print(a * b - a - b + 1)


a, b = map(int, input().split())

print(a * b - a - b + 1)


a, b = map(int, input().split())

print(a * b - a - b + 1)


a, b = map(int, input().split())

print(a * b - a - b + 1)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
print((int(input())-1) * (int(input())-1))

print((int(input())-1) * (int(input())-1))

print((int(input())-1) * (int(input())-1))

print((int(input())-1) * (int(input())-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
A,B=map(int,input(.split())
print((A-1)*(B-1))

A,B=map(int,input(.split())
print((A-1)*(B-1))

A,B=map(int,input(.split())
print((A-1)*(B-1))

A,B=map(int,input(.split())
print((A-1)*(B-1))

A,B=map(int,input().split())
print((A-1)*(B-1))

A,B=map(int,input().split())
print((A-1)*(B-1))

A,B=map(int,input().split())
print((A-1)*(B-1))

A,B=map(int,input().split())
print((A-1)*(B-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = (int(i) for i in input().split()) 
print(c*d)

a, b = (int(i) for i in input().split()) 
print(c*d)

a = input()
b = input()
print((a-1)*(b-1))

a = input()
b = input()
print((a-1)*(b-1))

a = input()
b = input()
print(int(a-1)*int(b-1))

a = input()
b = input()
print(int(a-1)*int(b-1))

a, b = (int(i) for i in input().split()) 
print((c-1)*(d-1))

a, b = (int(i) for i in input().split()) 
print((c-1)*(d-1))

a, b = (int(i) for i in input().split()) 
print(c*d)

a, b = (int(i) for i in input().split()) 
print(c*d)

a = input()
b = input()
print((a-1)*(b-1))

a = input()
b = input()
print((a-1)*(b-1))

a = input()
b = input()
print(int(a-1)*int(b-1))

a = input()
b = input()
print(int(a-1)*int(b-1))

a, b = (int(i) for i in input().split()) 
print((c-1)*(d-1))

a, b = (int(i) for i in input().split()) 
print((c-1)*(d-1))

a, b = (int(i) for i in input().split()) 
print((a-1)*(b-1))

a, b = (int(i) for i in input().split()) 
print((a-1)*(b-1))

a, b = (int(i) for i in input().split()) 
print((a-1)*(b-1))

a, b = (int(i) for i in input().split()) 
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a,b = [int(item) for item in input().split(" ")]
print((a-1)*(b-1))

a,b = [int(item) for item in input().split(" ")]
print((a-1)*(b-1))

a,b = [int(item) for item in input().split(" ")]
print((a-1)*(b-1))

a,b = [int(item) for item in input().split(" ")]
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
elif 155 <= N < 195:
  print(2)
else:
  print(3)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
elif 155 <= N < 195:
  print(2)
else:
  print(3)

N = int(input())
if N <= 105:
  print(1)
elif N > 105:
  print(2)

N = int(input())
if N <= 105:
  print(1)
elif N > 105:
  print(2)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
else:
  print(2)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
else:
  print(2)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
elif 155 <= N < 195:
  print(2)
else:
  print(3)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
elif 155 <= N < 195:
  print(2)
else:
  print(3)

N = int(input())
if N <= 105:
  print(1)
elif N > 105:
  print(2)

N = int(input())
if N <= 105:
  print(1)
elif N > 105:
  print(2)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
else:
  print(2)

N = int(input())
if N < 105:
  print(0)
elif 105 <= N < 155:
  print(1)
else:
  print(2)

A, B = (int(i) for i in input().split())
C = (A - 1) * (B - 1)
print(C)

A, B = (int(i) for i in input().split())
C = (A - 1) * (B - 1)
print(C)

A, B = (int(i) for i in input().split())
C = (A - 1) * (B - 1)
print(C)

A, B = (int(i) for i in input().split())
C = (A - 1) * (B - 1)
print(C)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a = int(input())
b = int(input())

print((a - 1) * (b - 1))

a, b = map(int, input().split())
 
print((a - 1) * (b - 1))


a, b = map(int, input().split())
 
print((a - 1) * (b - 1))


a, b = map(int, input().split())
 
print((a - 1) * (b - 1))


a, b = map(int, input().split())
 
print((a - 1) * (b - 1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a = int(input())
b = int(input())

print((a-1)*(b-1))

a, b = [int(i) for i in input().split()]

print((a-1)*(b-1))

a, b = [int(i) for i in input().split()]

print((a-1)*(b-1))

a, b = [int(i) for i in input().split()]

print((a-1)*(b-1))

a, b = [int(i) for i in input().split()]

print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
S = input()
K = int(input())
for i in S:
    if i != '1':
        print(i)
        break
    K -= 1
    if K == 0:
        print(1)
        break

S = input()
K = int(input())
for i in S:
    if i != '1':
        print(i)
        break
    K -= 1
    if K == 0:
        print(1)
        break

S = input()
K = int(input())
for i in S:
    if i != '1':
        print(i)
        break
    K -= 1
    if K == 0:
        print(1)
        break

S = input()
K = int(input())
for i in S:
    if i != '1':
        print(i)
        break
    K -= 1
    if K == 0:
        print(1)
        break

A, B = [ int(i) for i in input().split()]
print(A*B - A - B + 1)

A, B = [ int(i) for i in input().split()]
print(A*B - A - B + 1)

A, B = [ int(i) for i in input().split()]
print(A*B - A - B + 1)

A, B = [ int(i) for i in input().split()]
print(A*B - A - B + 1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a,b=map(int,input().split())
c=xprint((a-1)*(b-1))

a,b=map(int,input().split())
c=xprint((a-1)*(b-1))

a,b=map(int,input())
print((a-1)*(b-1))

a,b=map(int,input())
print((a-1)*(b-1))

a,b=map(int,input().split())
c=xprint((a-1)*(b-1))

a,b=map(int,input().split())
c=xprint((a-1)*(b-1))

a,b=map(int,input())
print((a-1)*(b-1))

a,b=map(int,input())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
print(((int(input()))-1) *((int(input()))-1) )

print(((int(input()))-1) *((int(input()))-1) )

a=int(input())
b=int(input())
print((a-1)*(b-1))

a=int(input())
b=int(input())
print((a-1)*(b-1))

print(((int(input()))-1) *((int(input()))-1) )

print(((int(input()))-1) *((int(input()))-1) )

a=int(input())
b=int(input())
print((a-1)*(b-1))

a=int(input())
b=int(input())
print((a-1)*(b-1))


a,b=map(int,input().split())
print((a-1)*(b-1))


a,b=map(int,input().split())
print((a-1)*(b-1))


a,b=map(int,input().split())
print((a-1)*(b-1))


a,b=map(int,input().split())
print((a-1)*(b-1))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
a, b = map(int,input().sprit())
print((a-1)*(b-1))

a, b = map(int,input().sprit())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a, b = map(int,input().sprit())
print((a-1)*(b-1))

a, b = map(int,input().sprit())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a = int(input())
b = int(input())
print((a-1)*(b-1))

a, b = map(int,input().split())
print((a-1)*(b-1))


a, b = map(int,input().split())
print((a-1)*(b-1))


a, b = map(int,input().split())
print((a-1)*(b-1))


a, b = map(int,input().split())
print((a-1)*(b-1))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted
Problem: There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)    What is the area of this yard excluding the roads? Find it.

Submission attempts (in order):
nums = list(map(int, input().split()))
(nums[0]-1)*(nums[1]-1)

nums = list(map(int, input().split()))
(nums[0]-1)*(nums[1]-1)

nums = list(map(int, input().split()))
(nums[0]-1)*(nums[1]-1)

nums = list(map(int, input().split()))
(nums[0]-1)*(nums[1]-1)

nums = list(map(int, input().split()))
print((nums[0]-1)*(nums[1]-1))

nums = list(map(int, input().split()))
print((nums[0]-1)*(nums[1]-1))

nums = list(map(int, input().split()))
print((nums[0]-1)*(nums[1]-1))

nums = list(map(int, input().split()))
print((nums[0]-1)*(nums[1]-1))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted

Accepted

Accepted

Accepted