ZhenlongDai/ACPR huggingface dataset:
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h=int(input()),int(input()),int(input())
print(((a+b)*h)/2)


Failing test case input:
3
10
3

Expected output:
19


Actual output:
19.5


Fixed submission (verdict: Accepted):
a,b,h=int(input()),int(input()),int(input())
print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h*1/2)


Failing test case input:
4
0
-11

Expected output:
-22


Actual output:
-22.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h= map(int,open(0).read().split())
print((a+b)*h/2)

Failing test case input:
3
5
-7

Expected output:
-28


Actual output:
-28.0


Fixed submission (verdict: Accepted):
a,b,h= map(int,open(0).read().split())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
1
-156

Expected output:
-312


Actual output:
-312.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [int(input()) for _ in range(3)]

print((a[0]+a[1])*a[2]/2)


Failing test case input:
3
1
2

Expected output:
4


Actual output:
4.0


Fixed submission (verdict: Accepted):
a = list(int(input()) for _ in range(3))
print((a[0]+a[1])*a[2]

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
4
-65

Expected output:
-228


Actual output:
-227.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)


Failing test case input:
4
-144
3

Expected output:
-210


Actual output:
-210.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
4
6
6

Expected output:
30


Actual output:
30.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a + b) * h / 2)

Failing test case input:
4
-92
3

Expected output:
-132


Actual output:
-132.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a + b) * h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import copy
import random
import bisect 
import fractions 
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) 


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

print((a+b)*h/2)


Failing test case input:
3
0
-4

Expected output:
-6


Actual output:
-6.0


Fixed submission (verdict: Accepted):

import copy
import random
import bisect 
import fractions 
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) 


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

print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
1
-156

Expected output:
-312


Actual output:
-312.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(str((a + b)*h/2))


Failing test case input:
3
1
-281

Expected output:
-562


Actual output:
-562.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(str((a + b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h=[int(input())for i in range(3)]
print(int((a+b)*h)/2)

Failing test case input:
3
4
2

Expected output:
7

Actual output:
7.0


Fixed submission (verdict: Accepted):
a, b, h = [int(input()) for _ in range(3)]
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=[int(input()) for i in range(3)]
print(((a+b)*c)/2)


Failing test case input:
4
-5
14

Expected output:
-7


Actual output:
-7.0


Fixed submission (verdict: Accepted):
a,b,c=[int(input()) for i in range(3)]
print(((a+b)*c)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
4
-38
17

Expected output:
-289


Actual output:
-289.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
3
1
-12

Expected output:
-24


Actual output:
-24.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input());b=int(input());h=int(input())

print((a+b)/2*h)

Failing test case input:
4
4
4

Expected output:
16

Actual output:
16.0


Fixed submission (verdict: Accepted):
a=int(input());b=int(input());h=int(input())

print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h/2)

Failing test case input:
3
-36
-1

Expected output:
16


Actual output:
16.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
4
9
6

Expected output:
39


Actual output:
39.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)


Failing test case input:
3
1
17

Expected output:
34


Actual output:
34.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h = int(input()),int(input()),int(input())
print(a*b*h/2)

Failing test case input:
3
1
2

Expected output:
4


Actual output:
3.0


Fixed submission (verdict: Accepted):
a,b,h = int(input()),int(input()),int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h/2)

Failing test case input:
3
0
-281

Expected output:
-422


Actual output:
-421.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = int(input()), int(input()), int(input())
print((a + b) * h / 2)


Failing test case input:
4
-19
17

Expected output:
-128


Actual output:
-127.5


Fixed submission (verdict: Accepted):
a, b, h = int(input()), int(input()), int(input())
print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a + b) * h / 2)


Failing test case input:
4
5
0

Expected output:
0


Actual output:
0.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
h=input()
a=int(a)
b=int(b)
h=int(h)
x=(a+b)*h
print(x*0.5)

Failing test case input:
3
2
-7

Expected output:
-18


Actual output:
-17.5


Fixed submission (verdict: Accepted):
a=input()
b=input()
h=input()
a=int(a)
b=int(b)
h=int(h)
x=(a+b)*h
print(x

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
2
-4

Expected output:
-10


Actual output:
-10.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h
Problem: p03997
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys


def getN():
    return int(input())


def getNM():
    return map(int, input().split())


def getList():
    return list(map(int, input().split()))


def input():
    return sys.stdin.readline().rstrip()





a = getN()
b = getN()
h = getN()
print((a + b) / 2 * h)


Failing test case input:
3
5
-4

Expected output:
-16


Actual output:
-16.0


Fixed submission (verdict: Accepted):
import sys


def getN():
    return int(input())


def getNM():
    return map(int, input().split())


def getList():
    return list(map(int, input().split()))


def input():
    return sys.stdin.readline().rstrip()





a = getN()
b = getN()
h = getN()
print(h * (a + b)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
3
-36
-2

Expected output:
33


Actual output:
33.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,h=[int(input()) for i in range(3)]

print((a+b)*h/2)

Failing test case input:
3
-2
29

Expected output:
14


Actual output:
14.5


Fixed submission (verdict: Accepted):
a,b,h=[int(input()) for i in range(3)]

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = [int(input()) for _ in range(3)]
print((a+b)*h/2)


Failing test case input:
3
1
-24

Expected output:
-48


Actual output:
-48.0


Fixed submission (verdict: Accepted):
a, b, h = [int(input()) for _ in range(3)]
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print(((a+b)*h)/2)

Failing test case input:
3
0
15

Expected output:
22


Actual output:
22.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
4
8
7

Expected output:
42


Actual output:
42.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h
print(S/2)

Failing test case input:
4
6
6

Expected output:
30


Actual output:
30.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h
print(S

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
1
-7

Expected output:
-14


Actual output:
-14.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*(h/2))


Failing test case input:
3
4
2

Expected output:
7

Actual output:
7.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input()) + int(input())) * 2 / 2)

Failing test case input:
3
-65
-2

Expected output:
62


Actual output:
-62.0


Fixed submission (verdict: Accepted):
print((int(input()) + int(input())) * int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input())+int(input()))*int(input())/2)

Failing test case input:
3
1
3

Expected output:
6


Actual output:
6.0


Fixed submission (verdict: Accepted):
print((int(input())+int(input()))*int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
4
-1
14

Expected output:
21


Actual output:
21.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
4
8
7

Expected output:
42


Actual output:
42.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input());b=int(input());h=int(input())
print((a+b)*h/2)

Failing test case input:
3
4
-65

Expected output:
-228


Actual output:
-227.5


Fixed submission (verdict: Accepted):
a=int(input());b=int(input());h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

s = ((a + b)*h)/2
print(s)

Failing test case input:
4
6
6

Expected output:
30


Actual output:
30.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

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


print((int(input())+int(input()))*int(input())/2)

Failing test case input:
3
1
3

Expected output:
6


Actual output:
6.0


Fixed submission (verdict: Accepted):


print((int(input())+int(input()))*int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h=[int(input()) for i in range(3)]
print((a+b)*h/2)

Failing test case input:
4
6
4

Expected output:
20


Actual output:
20.0


Fixed submission (verdict: Accepted):
a,b,h=[int(input()) for i in range(3)]
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
3
10
3

Expected output:
19


Actual output:
19.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
-36
-1

Expected output:
16


Actual output:
16.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(int(input()) for _ in range(3))

print((a[0]+a[1])*a[2]/2)

Failing test case input:
3
6
2

Expected output:
9


Actual output:
9.0


Fixed submission (verdict: Accepted):
a = list(int(input()) for _ in range(3))
print((a[0]+a[1])*a[2]

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


from collections import defaultdict

(a, b, h) = [int(input()) for _ in range(0, 3)]

print((a + b) * h /2)


Failing test case input:
3
1
-4

Expected output:
-8


Actual output:
-8.0


Fixed submission (verdict: Accepted):


from collections import defaultdict

(a, b, h) = [int(input()) for _ in range(0, 3)]

print((a + b) * h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())

b= int(input())


c= int(input())
print((a+b)*c/2)

Failing test case input:
3
2
-5

Expected output:
-13


Actual output:
-12.5


Fixed submission (verdict: Accepted):
a = int(input())

b= int(input())


c= int(input())
print((a+b)*c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
5
-4

Expected output:
-16


Actual output:
-16.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print(((a+b)*h)/2)


Failing test case input:
3
0
-281

Expected output:
-422


Actual output:
-421.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
5
-168

Expected output:
-672


Actual output:
-672.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = (int(input()) for _ in range(3))
print((a + b) * h / 2)

Failing test case input:
3
2
-65

Expected output:
-163


Actual output:
-162.5


Fixed submission (verdict: Accepted):
a, b, h = (int(input()) for u in range(3))
print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
3
1
-12

Expected output:
-24


Actual output:
-24.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h
Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

def main():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a + b) * h / 2)
    

if __name__ == "__main__":
    main()


Failing test case input:
4
-5
14

Expected output:
-7


Actual output:
-7.0


Fixed submission (verdict: Accepted):

def main():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a + b) * h 


if __name__ == "__main__":
    main()

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input()); b = int(input()); h = int(input())
print(round(((a + b) * 2) / 2)) 

Failing test case input:
3
2
-7

Expected output:
-18


Actual output:
5


Fixed submission (verdict: Accepted):
a = int(input()); b = int(input()); h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b) * h / 2)

Failing test case input:
3
5
-103

Expected output:
-412


Actual output:
-412.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h*1/2)


Failing test case input:
3
4
-65

Expected output:
-228


Actual output:
-227.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h*1

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
2
-7

Expected output:
-18


Actual output:
-17.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
0
-7

Expected output:
-11


Actual output:
-10.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

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


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

print(((a+b)*h)/2)

Failing test case input:
4
-38
17

Expected output:
-289


Actual output:
-289.0


Fixed submission (verdict: Accepted):


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

print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=float(input());b=float(input());h=float(input())

print((a+b)*h/2)

Failing test case input:
3
0
12

Expected output:
18


Actual output:
18.0


Fixed submission (verdict: Accepted):
a=int(input());b=int(input());h=int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)/2)

Failing test case input:
4
-5
14

Expected output:
-7


Actual output:
-7.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)


Failing test case input:
3
7
-65

Expected output:
-325


Actual output:
-325.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = map(int, open(0).read().split())
print((a+b)*h/2)

Failing test case input:
4
-38
22

Expected output:
-374


Actual output:
-374.0


Fixed submission (verdict: Accepted):
a, b, h = map(int, open(0).read().split())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)

Failing test case input:
4
-19
17

Expected output:
-128


Actual output:
-127.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h/2)

Failing test case input:
4
1
-1

Expected output:
-3


Actual output:
-2.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input())+int(input()))*int(input())/2)

Failing test case input:
3
1
3

Expected output:
6


Actual output:
6.0


Fixed submission (verdict: Accepted):
print((int(input())+int(input()))*int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)

Failing test case input:
3
1
-4

Expected output:
-8


Actual output:
-8.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)

Failing test case input:
4
-92
3

Expected output:
-132


Actual output:
-132.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,c=map(int,open(0));print(a*b*c/2)

Failing test case input:
3
1
-4

Expected output:
-8


Actual output:
-6.0


Fixed submission (verdict: Accepted):
a,b,c=map(int,open(0));print((a+b)*c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
c=a+b
print(h*c/2)

Failing test case input:
3
10
-65

Expected output:
-423


Actual output:
-422.5


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h
print('{:.2g}'.format(S/2))

Failing test case input:
3
5
-65

Expected output:
-260


Actual output:
-2.6e+02


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h
print(S
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print(2 * (a + b) / 2 )

Failing test case input:
4
4
7

Expected output:
28


Actual output:
8.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print(h * (a + b)

Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)/2)

Failing test case input:
3
2
-4

Expected output:
-10


Actual output:
-10.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())

print((a+b)*c/2)

Failing test case input:
3
-1
-1

Expected output:
-1


Actual output:
-1.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())

print((a+b)*c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)



Failing test case input:
4
4
7

Expected output:
28


Actual output:
28.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h=[int(input()) for i in range(3)]
print((a+b)*h/2)

Failing test case input:
4
-27
-1

Expected output:
11


Actual output:
11.5


Fixed submission (verdict: Accepted):
a,b,h=[int(input()) for i in range(3)]
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = int(input()), int(input()), int(input())
print((a + b) * h / 2)

Failing test case input:
3
5
-65

Expected output:
-260


Actual output:
-260.0


Fixed submission (verdict: Accepted):
a, b, h = int(input()), int(input()), int(input())
print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input())+int(input()))*int(input())/2)

Failing test case input:
4
4
-1

Expected output:
-4


Actual output:
-4.0


Fixed submission (verdict: Accepted):
print((int(input())+int(input()))*int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
-36
-2

Expected output:
33


Actual output:
33.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,h=map(int,open(0));print(a*b*(h/2))

Failing test case input:
4
5
6

Expected output:
27


Actual output:
60.0


Fixed submission (verdict: Accepted):
a,b,c=map(int,open(0));print((a+b)*c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h/2)


Failing test case input:
3
5
-168

Expected output:
-672


Actual output:
-672.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())


print((a + b) * h / 2)


Failing test case input:
3
10
2

Expected output:
13


Actual output:
13.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())


print((a + b) * h

Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b) * h / 2)

Failing test case input:
3
1
-281

Expected output:
-562


Actual output:
-562.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
print( (a+b) * c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
4
-51
14

Expected output:
-329


Actual output:
-329.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
print((a+b)/2*h)


Failing test case input:
4
10
-10

Expected output:
-70


Actual output:
-70.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input()); b = int(input()); h = int(input())
print(int(((a + b) * 2) / 2)) 

Failing test case input:
3
2
-7

Expected output:
-18


Actual output:
5


Fixed submission (verdict: Accepted):
a = int(input()); b = int(input()); h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)


Failing test case input:
4
13
2

Expected output:
17


Actual output:
17.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)/2)



Failing test case input:
4
4
7

Expected output:
28


Actual output:
28.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, h = int(input()),int(input()),int(input())
print((a+b)*h/2)

Failing test case input:
4
4
4

Expected output:
16

Actual output:
16.0


Fixed submission (verdict: Accepted):
a, b, h = int(input()),int(input()),int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
3
5
-103

Expected output:
-412


Actual output:
-412.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
4
1
-1

Expected output:
-3


Actual output:
-2.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h/2)

Failing test case input:
4
10
-8

Expected output:
-56


Actual output:
-56.0


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())

print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)

Failing test case input:
4
-38
22

Expected output:
-374


Actual output:
-374.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
4
-65

Expected output:
-228


Actual output:
-227.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=[int(input()) for i in range(3)]

print((a+b)*c/2)

Failing test case input:
4
5
-1

Expected output:
-5


Actual output:
-4.5


Fixed submission (verdict: Accepted):
a,b,c=[int(input()) for i in range(3)]
print(int(a+b)*c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(((a + b) * h) /2)

Failing test case input:
3
5
-168

Expected output:
-672


Actual output:
-672.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(((a + b) * h)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h/2)

Failing test case input:
4
6
6

Expected output:
30


Actual output:
30.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h / 2)

Failing test case input:
4
-109
1

Expected output:
-53


Actual output:
-52.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a + b) * h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h/2)

Failing test case input:
3
0
15

Expected output:
22


Actual output:
22.5


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h=(int(input())for _ in[0]*3);print((a+b)*h/2)

Failing test case input:
3
1
29

Expected output:
58


Actual output:
58.0


Fixed submission (verdict: Accepted):
a,b,h=(int(input())for _ in[0]*3);print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,h = (int(input()) for i in range(3))

print((a+b)*h/2)


Failing test case input:
3
1
3

Expected output:
6


Actual output:
6.0


Fixed submission (verdict: Accepted):
a,b,h = (int(input()) for i in range(3))
 
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input())+int(input()))*int(input())/2)

Failing test case input:
3
2
-10

Expected output:
-25


Actual output:
-25.0


Fixed submission (verdict: Accepted):
print((int(input())+int(input()))*int(input())

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((int(input()) + int(input())) * int(input())  / 2)


Failing test case input:
4
1
-1

Expected output:
-3


Actual output:
-2.5


Fixed submission (verdict: Accepted):
print((int(input()) + int(input())) * int(input())

Problem: p03997
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(h * (a+b) /2)

Failing test case input:
4
-5
14

Expected output:
-7


Actual output:
-7.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print(h * (a+b)

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,h = int(input()),int(input()),int(input())
print((a+b)*h/2)

Failing test case input:
3
5
-103

Expected output:
-412


Actual output:
-412.0


Fixed submission (verdict: Accepted):
a,b,h = int(input()),int(input()),int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[a,b,h]=[int(input()) for i in range(3)]
print((a+b)*h/2)

Failing test case input:
3
1
17

Expected output:
34


Actual output:
34.0


Fixed submission (verdict: Accepted):
[a,b,h]=[int(input()) for i in range(3)]
print((a+b)*h

Problem: p03997
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())

print((a + b) * c / 2)

Failing test case input:
4
-38
17

Expected output:
-289


Actual output:
-289.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())

print((a + b) * c

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)/2)

Failing test case input:
3
-1
-1

Expected output:
-1


Actual output:
-1.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
h = int(input())

print(a*b*h/2)

Failing test case input:
4
5
6

Expected output:
27


Actual output:
60.0


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
h = int(input())

print((a+b)*h
Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a + b) * h / 2)


if __name__ == '__main__':
    main()


Failing test case input:
4
-1
14

Expected output:
21


Actual output:
21.0


Fixed submission (verdict: Accepted):
def main():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a + b) * h 


if __name__ == '__main__':
    main()

Problem: p03997
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
h=int(input())
if h%2==0:
    print((a+b)*h/2)

Failing test case input:
4
-92
3

Expected output:
-132


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h
Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B, N = map(int, input().split())

if N <= B-1:
    print(int(A*N/B))
else:
    print(int(A*(B-1))/B)

Failing test case input:
14 7 8

Expected output:
12


Actual output:
12.0


Fixed submission (verdict: Accepted):
A, B, N = map(int, input().split())

if N < B-1:
    print(int(A*N/B)-A*int(N/B))
else:
    print(int(A*(B-1)/B)-A*int((B-1)/B))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
import itertools

import time
import math

sys.setrecursionlimit(10 ** 7)

from collections import defaultdict

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b, n = map(int, readline().split())

x = min(b, n)
if b == n:
    x = b - 1

ans = math.floor((a * x) / b) - a * math.floor(x / b)
print(ans)

Failing test case input:
14 7 8

Expected output:
12


Actual output:
0


Fixed submission (verdict: Accepted):
import sys
import itertools

import time
import math

sys.setrecursionlimit(10 ** 7)

from collections import defaultdict

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b, n = map(int, readline().split())

x = min(b - 1, n)





ans = math.floor((a * x) / b) - a * math.floor(x / b)
print(ans)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
if __name__ == "__main__": 
	string = input()
	l = string.split(" ")
	a = int(l[0])
	b = int(l[1])
	n = int(l[2])
	ans = 0
	
	
	
	
	
	
	
	if(b>=n):
		f = math.floor((a*(n-1))/b)
		s = math.floor((n-1)/b)
		temp = int(f) - (a*int(s))
		ans = temp
		
	else:
		f = math.floor((a*(b-1))/b)
		s = math.floor((b-1)/b)
		temp = int(f) - (a*int(s))
		ans = temp
	print(ans)

Failing test case input:
2 11 0

Expected output:
0


Actual output:
1


Fixed submission (verdict: Accepted):
import math
if __name__ == "__main__": 
	string = input()
	l = string.split(" ")
	a = int(l[0])
	b = int(l[1])
	n = int(l[2])
	ans = 0
	ni = min(n,b-1)
	f = math.floor((a*(ni))/b)
	s = math.floor((ni)/b)
	temp = int(f) - (a*int(s))
	ans = temp
	
	
	
	
	
	
	
	
	
	
	print(ans)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

def floor(A, B, X):
    return(int(A * X / B) - (A * int(X / B)))

A, B, N = map(int, sys.stdin.readline().split())
print(floor(A, B, B - 1))

Failing test case input:
11 10 3

Expected output:
3


Actual output:
9


Fixed submission (verdict: Accepted):
import sys

def calc_floor(A, B, X):
    return (int(A * X / B) - A * int(X / B))

A, B, N = map(int, sys.stdin.readline().split())
if N >= B - 1:
    print(calc_floor(A, B, B - 1))
else:
    print(calc_floor(A, B, N))
Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

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

if B - 1 <= N:
    x = B - 1
else:
    x = N
    print('h')

ans = math.floor(A * x / B) - A * math.floor(x / B)
print(ans)



Failing test case input:
0 68 2

Expected output:
0


Actual output:
h
0


Fixed submission (verdict: Accepted):
import math

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

if B - 1 <= N:
    x = B - 1
else:
    x = N

ans = math.floor(A * x / B) - A * math.floor(x / B)
print(ans)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
a, b, n = map(int, input().split())

y = b-1
x = 0
if x < n:
  x = y
else:
  x = n

print(math.floor(a*x/b))

Failing test case input:
7 20 1

Expected output:
0


Actual output:
6


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

y = b-1
x = 0
if y < n:
  x = y
else:
  x = n
print(math.floor(a*x/b))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
A,B,N = map(int, input().split())
if (B-1)<=N:
    print(math.floor(A*(B-1)/B)-math.floor((B-1)/B)*A)
else:
    print(0)
    


Failing test case input:
11 10 1

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
import math
A,B,N = map(int, input().split())
if (B-1)<=N:
    print(math.floor(A*(B-1)/B)-math.floor((B-1)/B)*A)
else:
    print(math.floor(A*N/B)-math.floor(N/B)*A)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,n=map(int,input().split())

if n<b:
  ans=int(a*n/b)-a*int(n/b)
else :
  ans=int(a*(n-1)/b)-a*int((n-1)/b)


Failing test case input:
1 130 4

Expected output:
0


Actual output:

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

if n<b:
  ans=int(a*n/b)-a*int(n/b)
else:
  ans=int(a*(b-1)/b)-a*int((b-1)/b)
print(ans)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B,N = [int(v) for v in input().split()]

def calc(a,b,x):
    return int(((a*x)/B)) - a * int(x/b)

ans = -1
x = 0
for x in range(0,min(A,N)+1):
    c = calc(A,B,x)
    if ans >= c or x > N:
        break
    else:
        ans = c
    x+=1
print(ans)


Failing test case input:
11 19 2

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
A,B,N = [int(v) for v in input().split()]

def calc(a,b,x):
    return int(((a*x)/B)) - a * int(x/b)

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

if B <= N+1:
    print(calc(A,B,B-1))
else:
    print(calc(A,B,N))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,n=list(map(int,input().split()))
ans=0
for x in range(a):

  ans=max(ans,int(a*x/b)-a*int(x/b))
print(ans)

Failing test case input:
9 7 5

Expected output:
6


Actual output:
7


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

if b==n:
  x=n-1
else:
  x=b-1 if n-1>=b else n
ans=int(a*x/b)-a*int(x/b)
print(ans)
Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, n = map(int, input().split())

def floor(x):
    return int(x)

if b<=n:
    print(a-1)
else:
    ans=floor(a*n/b)-a*floor(n/b)
    print(int(ans))

Failing test case input:
14 7 8

Expected output:
12


Actual output:
13


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

def floor(x):
    return int(x)

if b<=n:
    ans=floor(a*(b-1)/b)-a*floor((b-1)/b)
    print(ans)
else:
    ans=floor(a*n/b)
    print(ans)

Problem: p02696
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A,B,N=map(int, input().split())
answer=0
import math
Blist=[]
apple=max(B,N)
for i in range(1,apple+1):
    newans=math.modf(i/B)[0]*A
    newans
    answer=newans if newans>answer else answer
print(int(answer))

Failing test case input:
7 11 1

Expected output:
0


Actual output:
6


Fixed submission (verdict: Accepted):
A,B,N=map(int, input().split())
answer=0
import math
if N < B:
    print(int(math.modf(N/B)[0]*A))
else:
    apple=min(B,N)
    startnum = B-1 if B>1 else 1
    for i in range(startnum,apple+1):
        newans=math.modf(i/B)[0]*A
        newans
        answer=newans if newans>answer else answer
    print(int(answer))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
arr = input().split(" ")
a, b, n = int(arr[0]), int(arr[1]), int(arr[2])
if b<=n:
   k = int((a*n)/b)
else:
   k = int((a*n)/b)

Failing test case input:
0 23 5

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
arr = input().split(" ")
a, b, n = int(arr[0]), int(arr[1]), int(arr[2])
if b<=n:
   k = int((a*(b-1))/b)
else:
   k = int((a*n)/b)
print(k)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
A, B, N = map(int, input().split())

def calc(x):
    return math.floor(A*x/B) - A * math.floor(x/B)

print(calc(N))

Failing test case input:
14 7 8

Expected output:
12


Actual output:
2


Fixed submission (verdict: Accepted):
import math
A, B, N = map(int, input().split())

def calc(x):
    return math.floor(A*x/B) - A * math.floor(x/B)

if B > N:
    ans = calc(N)
else:
    ans = calc(B-1)
print(ans)

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
import math
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def Main():
    a,b,n = IL()
    x = min(b,n)
    print(math.floor(a*x/b)-a*math.floor(x/b))
    return

if __name__=='__main__':
    Main()

Failing test case input:
14 7 8

Expected output:
12


Actual output:
0


Fixed submission (verdict: Accepted):
import sys
import math
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def Main():
    a,b,n = IL()
    x = min(b-1,n)
    print(math.floor(a*x/b)-a*math.floor(x/b))
    return

if __name__=='__main__':
    Main()

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B, N = map(int, input().split())
print(min(B-1, N))

Failing test case input:
0 36 3

Expected output:
0


Actual output:
3


Fixed submission (verdict: Accepted):
A, B, N = map(int, input().split())
print(A*min(B-1, N)
Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from math import floor

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

print(floor((A*min(N, B))/B) - A * floor(min(N,B)/B))


Failing test case input:
14 7 8

Expected output:
12


Actual output:
0


Fixed submission (verdict: Accepted):
from math import floor

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

print(floor((A*min(N, B-1))/B) - A * floor(min(N,B-1)/B))

Problem: p02696
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math
A, B, N = map(int, input().split())
x = N 
def floor(t):
    return math.floor(t)
li = []
if B < N:
    print(floor((A*(B - 1)) / B) - A * floor((B - 1)/B))
else:
    print(floor((A*(N )) / B) - A * floor((N )/B))

print(li)

Failing test case input:
1 130 4

Expected output:
0


Actual output:
0
[]


Fixed submission (verdict: Accepted):
import math
A, B, N = map(int, input().split())
x = N 
def floor(t):
    return math.floor(t)
li = []
if B < N:
    print(floor((A*(B - 1)) / B) - A * floor((B - 1)/B))
elif B == N:
    print(floor((A*(N - 1)) / B) - A * floor((N - 1)/B))
else:
    print(floor((A*(N)) / B) - A * floor((N)/B))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

def floor(A, B, x):
    return math.floor(A * x / B) - A * math.floor(x/B) 

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

print(max(floor(A,B,N), floor(A,B,B-1)))

Failing test case input:
5 12 1

Expected output:
0


Actual output:
4


Fixed submission (verdict: Accepted):
import math

def floor(A, B, x):
    return math.floor(A * x / B) - A * math.floor(x/B) 

A, B, N = map(int, input().split(' '))
x = min(N, B-1)
print(floor(A,B,x))

Problem: p02696
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from math import floor
from collections import deque

def main():
    A,B,N=map(int,input().split())
    
    ans1=min(N,B)
    ans2=floor(A*ans1/B)-A*floor(ans1/B)
    print(ans2)
    
if __name__=="__main__":
    main()


Failing test case input:
14 7 8

Expected output:
12


Actual output:
0


Fixed submission (verdict: Accepted):
from math import floor

def main():
    A,B,N=map(int,input().split())
    
    ans1=min(N,B-1)
    ans2=floor(A*ans1/B)-A*floor(ans1/B)
    print(ans2)
    
if __name__=="__main__":
    main()

Problem: p02696
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from sys import stdin
from sys import setrecursionlimit
import math

a,b,n = map(int,stdin.readline().rstrip().split())

print(math.floor(a*n/b)-a*math.floor(n/b))
    

Failing test case input:
14 7 8

Expected output:
12


Actual output:
2


Fixed submission (verdict: Accepted):
from sys import stdin
from sys import setrecursionlimit
import math

a,b,n = map(int,stdin.readline().rstrip().split())
if n >= b:
    print(math.floor(a*(b-1)/b)-a*math.floor((b-1)/b))
else:
    print(math.floor(a*n/b)-a*math.floor(n/b))