Problem:


Score : 100 points

Problem Statement

You are given a trapezoid. The lengths of its upper base, lower base, and height are a, b, and h, respectively.

An example of a trapezoid

Find the area of this trapezoid.

Constraints

1≦a≦100

1≦b≦100

1≦h≦100

All input values are integers.

h is even.

Input

The input is given from Standard Input in the following format:

a
b
h

Output

Print the area of the given trapezoid. It is guaranteed that the area is an integer.

Sample Input 1

3
4
2

Sample Output 1

7

When the lengths of the upper base, lower base, and height are 3, 4, and 2, respectively, the area of the trapezoid is (3+4)×2/2 = 7.

Sample Input 2

4
4
4

Sample Output 2

16

In this case, a parallelogram is given, which is also a trapezoid.



Sample input:
3
4
2


Sample output:
7

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

s = (a + b) / 2 * h
print('{:.0f}'.format(s))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())
h = int(input())


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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Accepted

Solution code:
a = int(input()) # 整数
b = int(input()) # 整数
h = int(input()) # 整数

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

Submission status: Accepted

Solution code:
a,b,c=(int(input()) for _ in range(3))
print(int((a+b)*c/2))

Submission status: Accepted

Solution code:
A=[int(input()) for _ in range(3)]
print(int((A[0]+A[1])*A[2]/2))

Submission status: Accepted

Solution code:
a,b,c=[int(input())for i in[0]*3];print((a+b)*c//2)

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b,h=map(int,[input()for i in[0]*3]);print(h*(a+b)//2)

Submission status: Accepted

Solution code:
a,b,h=map(int,[input() for i in range(3)])
print(h*(a+b)//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#45a
a = int(input())
b = int(input())
h = int(input())
print((a+b)*h//2)

Submission status: Accepted

Solution code:
#45a
a = int(input())
b = int(input())
h = int(input())
print(int((a+b)*h/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num=[int(input()) for i in range(3)]
print((num[0]+num[1])*num[2]//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())
ans=(a+b)*h*0.5
print(int(ans))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
result = (a + b) * h / 2
print(int(result))

Submission status: Accepted

Solution code:
a,b,h = [int(input()) for i in range(3)]
print((a + b) * h // 2)

Submission status: Accepted

Solution code:
a, b, h = [int(input()) for i in range(3)]

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

Submission status: Accepted

Solution code:
lis = [int(input()) for i in range(3)]
print((lis[0]+lis[1]) * lis[2] // 2)

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()

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

Submission status: Accepted

Solution code:
#coding:utf-8
n=[]
for i in range(3):
  n.append(int(input()))
print(int((n[0]+n[1])*n[2]/2))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b)*h//2

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
H = int(input())

S = ((A + B) * H) / 2
S = int(S)
print(S)

Submission status: Accepted

Solution code:
a, b, h = list(map(int, [input() for _ in range(3)]))

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

Submission status: Accepted

Solution code:
import sys
a,b,h=map(int,sys.stdin)
print((a+b)*h//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

area = (a+b)*h/2

print(int(area))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

s = (a+b)*h/2
#sはfloat型なので、出力時にint型に変えておく
print(int(s))

Submission status: Accepted

Solution code:
s=[int(input()) for i in range(3)]
print(((s[0]+s[1])*s[2])//2)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
a=int(input())
a+=int(input())
print(a*int(input())//2)

Submission status: Accepted

Solution code:
t=[input() for i in range(3)]
a=int(t[0])
b=int(t[1])
h=int(t[2])

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

Submission status: Accepted

Solution code:
a=int(raw_input())
b=int(raw_input())
h=int(raw_input())
print (a+b)*h/2

Submission status: Accepted

Solution code:
x=int(input())
y=int(input())
z=int(input())
print(int((x+y)*(z/2)))

Submission status: Accepted

Solution code:
print(int((int(input())+int(input()))*(int(input()))/2))

Submission status: Accepted

Solution code:
a, b, h = map(int, [input() for _ in range(3)])
print(round(((a + b) * h) / 2))

Submission status: Accepted

Solution code:
l = [int(input()) for i in range(3)]
print('{}'.format(int((l[0]+l[1])*l[2]/2)))

Submission status: Accepted

Solution code:
i=input
a=i()
b=i()
h=i()
c=int(a)
d=int(b)
g=int(h)
s=(c+d)*g//2
print(s)

Submission status: Accepted

Solution code:
# ６月６日
a = int(input())
b = int(input())
c = int(input())
d = (a+b)*c//2
print(d)

Submission status: Accepted

Solution code:
# ６月６日
a = int(input())
b = int(input())
c = int(input())
d = int((a+b)*c/2)
print(d)

Submission status: Accepted

Solution code:
print(input()+input())*input()/2

Submission status: Accepted

Solution code:
print(input()+input())*input()//2

Submission status: Accepted

Solution code:
i=lambda:int(input());print((i()+i())*i()//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(int((a + b) * h // 2 ))

Submission status: Accepted

Solution code:
t = [int(input()) for i in range(3)]

sum = (t[0]+t[1])* t[2]/2
print(int(sum))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())


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

Submission status: Accepted

Solution code:
#py aa.py
a=int(input())
b=int(input())
h=int(input())
c=int((a+b)*h/2)
print(c)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
a,b,h=(int(input()) for _ in range(3))
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

print (a+b)*h/2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
S = int((a + b) * h / 2)
print(S)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a = input()
    b = input()
    h = input()
    print ((a + b) * h / 2)

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())
print (int(((a+b)/2)*h))

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())
print((a+b)*h//2)
#inputはstrに対応
#勝手に改行

Submission status: Accepted

Solution code:
N = int(input())
K = int(input())
X = int(input())

print((N+K)*X//2)

Submission status: Accepted

Solution code:
a, b, h = [int(input()) for _ in range(3)]
 
print(int((a + b) * h / 2))

Submission status: Accepted

Solution code:
a,b,h = (int(input()) for i in range(3))
print((a+b)*h//2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    a = int(input())
    b = int(input())
    h = int(input())

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

Submission status: Accepted

Solution code:
def inpn(): return int(input())
print((inpn()+inpn())*inpn()//2)

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
c=int(input())

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

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[1][0])
h = int(arr_data[2][0])


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

Submission status: Accepted

Solution code:
[a, b, h] = [int(input()) for _ in range(3)]
print(a * h + (b - a) * h // 2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(int((min(a, b) * h) + ((max(a, b) - min(a, b)) * h / 2)))

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())
print((a+b)*(h//2))

Submission status: Accepted

Solution code:
a =int(input())
b =int(input())
h =int(input())


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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(round((a + b) * h / 2))

Submission status: Accepted

Solution code:
a=input()
b=input()
h=input()
print (a+b)*h/2

Submission status: Accepted

Solution code:
a,b,h=(int(input()) for i in range(3))
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
a=i1()
b=i1()
h=i1()
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
def main():
    a = int(input())
    b = int(input())
    h = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc045/tasks/abc045_a

"""
import sys
from sys import stdin
input = stdin.readline


def solve(a, b, h):
    return (a + b) * h // 2


def main(args):
    a = int(input())
    b = int(input())
    h = int(input())
    ans = solve(a, b, h)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()
print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    A = int(input())
    B = int(input())
    H = int(input())

    ans = (A+B)*H // 2
    print(ans);

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
a,b,h=[int(input()) for _ in range(3)]
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a,b,h = [int(input()) for _ in range(3)]
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())
S=(a+b)*h/2
print(int(S))

Submission status: Accepted

Solution code:
a = int(input())

b = int(input())

h = int(input())

print(int((a + b) * h * 0.5))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
n = int(input())
print(int((a+b)*n/2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print((a+b) * h // 2)

Submission status: Accepted

Solution code:
def main():
    A = [int(input()) for _ in range(3)]
    s = (A[0] + A[1]) * A[2] / 2
    print(int(s))

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#coding:utf8
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

print (a+b)*h/2

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


# 整数の入力
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
# 文字列の入力

# 出力
print ((a+b)*h)/2

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

s = (a + b) * h/2

print s

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
c = int(input())
ans = int((a+b)*c/2)
print(ans)

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b)*h/2

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)




a = input()<<ap>>(int)
b = input()<<ap>>(int)
h = input()<<ap>>(int)

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
print((int(input())+int(input())) * int(input()) // 2)

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()
 
ans = (a + b) * h / 2
print ans

Submission status: Accepted

Solution code:
a,b,h=[int(input())for _ in[0]*3];print((a+b)*h//2)

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print(((a+b)*h)/2)

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

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

Submission status: Accepted

Solution code:
from collections import defaultdict


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8

a, b, h = [int(input()) for _ in range(3)]
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())

D=int((a+b)*h/2)

print(D)

Submission status: Accepted

Solution code:
import math
a = int(input())
b = int(input())
h = int(input())
ans = (a + b) * h / 2
print(math.ceil(ans))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

ans = int((a+b) * h / 2)
print(ans)

Submission status: Accepted

Solution code:
def ini(): return int(input())
def inli(): return list(map(int, input().split()))
def inf(): return float(input())
def inlf(): return list(map(float, input().split()))
def inl(): return list(input())
def pli(): return "".join(list(map(str, ans)))

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

Submission status: Accepted

Solution code:
a, b, h = int(input()), int(input()), int(input())
print((a + b) * h // 2)

Submission status: Accepted

Solution code:
a = int( input() )
b = int( input() )
h = int( input() )

S = ( a + b )*h/2

print( int(S) )

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(): return "".join(list(map(str, ans)))

a = ri()
b = ri()
h = ri()

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

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()
print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b) * h / 2

Submission status: Accepted

Solution code:
A=int(input())
B=int(input())
H=int(input())

print(int((A+B)/2*H))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b) * h / 2

Submission status: Accepted

Solution code:
a=int(raw_input())
b=int(raw_input())
h=int(raw_input())
print ((a+b)*h)/2

Submission status: Accepted

Solution code:
def main():
    a = int(input())
    b = int(input())
    h = int(input())

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

main()

Submission status: Accepted

Solution code:
a,b,h = [int(input()) for _ in range(3)]
print(int(( a + b ) * h / 2))

Submission status: Accepted

Solution code:
import sys

def debug(x, table):
    for name, val in table.items():
        if x is val:
            print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr)
            return None

def solve():
    a = int(input())
    b = int(input())
    h = int(input())

    ans = (a + b) * h // 2

    print(ans)

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a = [int(input()) for i in range(3)]
print((a[0] + a[1]) * a[2] // 2)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
a, b, h = (int(input()), int(input()), int(input()))
print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
lis = [int(input()) for i in range(3)]
print(int((lis[0]+lis[1])*lis[2]/2))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a + b) * h / 2

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()
print (a + b) * h / 2

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

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


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




print(main())

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

print (a + b) * h / 2

Submission status: Accepted

Solution code:
a= input()
b = input()
h = input()


ans =  (a+b)*h/2

print(ans)

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print ((a+b)*h)/2

Submission status: Accepted

Solution code:
a,b,h = (int(input()) for i in range(3))
 
print((a+b)*h//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print((a+b) * h //2)

Submission status: Accepted

Solution code:
N = 3
a, b, h = [int(input()) for i in range(N)]
print((a+b)*h//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
 
print(int((a+b)*h//2))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a + b) * h / 2

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

# get numbers
a, b, h = int(raw_input()), int(raw_input()), int(raw_input())
print (a + b) * h / 2

Submission status: Accepted

Solution code:
def trapezoid(a, b, h):
	return (a + b) * h / 2

def main():
	a = int(raw_input())
	b = int(raw_input())
	h = int(raw_input())
	print trapezoid(a, b, h)

main()

Submission status: Accepted

Solution code:
a, b, h = [int(raw_input()) for _ in xrange(3)]
print (a+b)*h/2

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = 3
# N = int(input())
s = [input() for i in range(N)]

a = int(s[0])
b = int(s[1])
h = int(s[2])

S = int(((a + b)*h/2))
print(str(S))

Submission status: Accepted

Solution code:
a,b,h = [input() for var in range(3)]
print  (b-a)*h/2 + a * h

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

print (a + b) * h / 2

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Accepted

Solution code:
a,b,h=(int(input())for _ in[0]*3);print((a+b)*h//2)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(round((a + b) * h /2 ))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
daikei = (1/2) * (a + b) * h
print(int(daikei))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print "{}".format(int((a+b)*h/2))

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
H = int(input())

print((A + B) * H // 2)

Submission status: Accepted

Solution code:
a =  int(input())
b =  int(input())
h =  int(input())
print(str(int((a+b)*h/2)))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
print (a+b)*c/2

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    a = int(input())
    b = int(input())
    h = int(input())
    print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
s = (a + b) * h // 2
print(s)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

from __future__ import division, print_function, absolute_import, unicode_literals

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

Submission status: Accepted

Solution code:
# coding: utf-8

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def array2d(d1, d2, init = None):
    return [[init for _ in range(d2)] for _ in range(d1)]

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
h=int(input())

print("%s"%int((a+b)*h/2))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (((a + b) * h) / 2)

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
print (a+b)*c/2

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

s = (a+b)*h/2

print s

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

s = (a + b) * h / 2

print s

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a + b) * h / 2

Submission status: Accepted

Solution code:
#coding: utf-8

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

print (a+b)*h/2

Submission status: Accepted

Solution code:
import sys

#sys.stdin = open('input2.txt', 'r')
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())

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

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()

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

Submission status: Accepted

Solution code:
n0 = int(input())
n1 = int(input())
n2 = int(input())
print(int( (n0 + n1)  * n2 / 2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(int( (a+b)*h/2 ))

Submission status: Accepted

Solution code:
n = int(input())
m = int(input())
l = int(input())
ans = int((n+m)*l/2)
print(ans)

Submission status: Accepted

Solution code:
print (int(raw_input()) + int(raw_input())) * int(raw_input()) / 2

Submission status: Accepted

Solution code:
#ABC045A

a=int(raw_input())
b=int(raw_input())
h=int(raw_input())
print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(int((a*h) + (b-a)*h/2))

Submission status: Accepted

Solution code:
print (input() + input()) * input() / 2

Submission status: Accepted

Solution code:
print((int(input()) + int(input()))*int(input())//2)

Submission status: Accepted

Solution code:
a = input()
b = input()
c = input()
print ((a + b) * c)/2

Submission status: Accepted

Solution code:
# coding: utf-8

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

area = (a + b) * h / 2
print(int(area))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
result = int((a+b)*h/2)
print(result)

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()

print (a+b) * h / 2

Submission status: Accepted

Solution code:
x = [input() for i in range(3)]

a = int(x[0])
b = int(x[1])
h = int(x[2])

y=((a + b) * h) / 2
ans=int(y)
print(ans)

Submission status: Accepted

Solution code:
a = int(input().strip())
b = int(input().strip())
h = int(input().strip())

area = int((a + b) * h / 2)

print(area)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

if __name__ == '__main__':
    a = int(input())
    b = int(input())
    h = int(input())
    print(int((a+b)*h/2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

# Since h is even, area will always be an integer!
area = int(((a+b)*h)/2)

print(area)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

print(b * h if a == b and b == h else int((a + b) * h / 2))

Submission status: Accepted

Solution code:
a=int(raw_input())
b=int(raw_input())
h=int(raw_input())

print (a+b)*h/2

Submission status: Accepted

Solution code:
def ans(a, b, h):
    return (a + b) * h // 2

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

print(ans(a, b, h))

Submission status: Accepted

Solution code:
a,b,h = int(input()),int(input()),int(input())
print(int(((a+b)*h/2)))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
ans = abs(a+b)/2*h
print(int(ans))

Submission status: Accepted

Solution code:
print (input()+input())*input()/2

Submission status: Accepted

Solution code:
def solve(a, b, h):
    return (a + b) * h / 2


a = raw_input()
a = int(a)
b = raw_input()
b = int(b)
h = raw_input()
h = int(h)
ans = solve(a, b, h)
print ans

Submission status: Accepted

Solution code:
from __future__ import division
a = input()
b = input()
h = input()
print int(((a+b)/2)*h)

Submission status: Accepted

Solution code:
import math as m
from Queue import Queue

class Program:
    
    def main(self):
        a = int(raw_input())
        b = int(raw_input())
        h = int(raw_input())
        
        ans = (a + b) * h * 1 / 2
        print ans
        
if __name__ == '__main__':
    p=Program();
    p.main()

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
H = int(input())
print((A + B) * H // 2)

Submission status: Accepted

Solution code:
from sys import stdin
a = int(stdin.readline())
b = int(stdin.readline())
h = int(stdin.readline())
print ((a+b)*h)/2

Submission status: Accepted

Solution code:
a = input()
b = input()
h = input()

print (a+b)*h/2

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

res = (a + b) * h // 2

print(res)

Submission status: Accepted

Solution code:
import math

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

print(math.floor((a + b) * h / 2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
ret = ((a + b ) * h) / 2
print(int(ret))

Submission status: Accepted

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print (a + b) * h // 2

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3

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

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

Submission status: Accepted

Solution code:
def solve():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a+b)*h//2)

solve()

Submission status: Runtime Error

Solution code:
a, b, h = map(int, input().split())
print((a + b) * h // 2)

Submission status: Runtime Error

Solution code:
a,b,h = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
a,b,h = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
=int(input())
b=int(input())
h=int(input())

s=(a+b)*h/2

print(int(s))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

Solution code:
a, b, h = map(int, input().split())

answer = (a + b) * h // 2

print(answer)

Submission status: Runtime Error

Solution code:
a, b, h = map(int, input().split())

answer = (a + b) * h / 2

print(answer)

Submission status: Runtime Error

Solution code:
(a,b,c) = (int(input()),int(input()),int(input()))
s = (a+b)*h/2
print(s)

Submission status: Runtime Error

Solution code:
a = [int(input()) for i in range(5)]
(a[0]+a[1])*a[2]/2

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
print((a+b)*c//2)

Submission status: Runtime Error

Solution code:
print(eval('(i*i)*i//2'.replace('i','int(input()')))

Submission status: Runtime Error

Solution code:
a,b,c=eval('int(input())'*3)
print((a+b)*h//2)