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,b,h=[int(input()) for i in range(3)]

print(int((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:
# import bisect
# from collections import Counter, defaultdict, deque
# import copy
# from heapq import heappush, heappop, heapify
# from fractions import gcd
# import itertools
# from operator import attrgetter, itemgetter
# import math

import sys

# import numpy as np

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    a, b, h = map(int, open(0).read().split())
    s = (a+b)*h//2
    print(s)


if __name__ == '__main__':
    main()

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()) for i in range(3)]
print(int((a[0]+a[1])/2*a[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:
#045_A
a,b,h=[int(input()) for _ in range(3)]
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 = (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(round((a+b)*h/2))

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:
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    a = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    h = int(next(tokens))  # type: int
    solve(a, b, h)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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():
    length = [int(input()) for _ in range(3)]
    print(sum(length[:2]) * length[2] // 2)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
input = open(0).readline

x = [0]*3
for i in range(3):
    x[i] = int(input().strip())
a, b, h = x[0], x[1], x[2]
ans = int(((a + b) * h)/2)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(answer)

Submission status: Accepted

Solution code:
#!/use/bin/env python3

from collections import defaultdict

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
 
 
def main():
 
    johen = int(input())
    teihen = int(input())
    takasa = int(input())

    print((johen + teihen) * takasa // 2)    
    
    return 0
 
 
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#A - 台形

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() )

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

Submission status: Accepted

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

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

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())
c = int(input())
print(int((a+b) * c / 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())

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

Submission status: Accepted

Solution code:
a,b,h = [int(input()) for n in range(3)]
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, b, h = [int(input()) for i 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(s)

Submission status: Accepted

Solution code:
#ABC045 A
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 _ in range(3)]
print(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((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(int((a+b) * h / 2))

Submission status: Accepted

Solution code:
up=int(input())
down=int(input())
h=int(input())
print((up+down)*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,b,h=[int(input()) for _ 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:
a = [int(input()) for i in range(3)]
print(int((a[0] + a[1]) *a[2] /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:
a, b, h = [int(input()) for i in range(3)]
S = (a + b) * h / 2
S = int(S)
print(S)

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, b, h = [int(input()) for i in range(3)]
print((a+b)*h//2)

Submission status: Accepted

Solution code:
a,b,c=(int(input()) for _ in range(3))
print((a+b)*c//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())
result = int((a + b) * h / 2)
print(result)

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 2, Feb, 2020
"""

import sys
import itertools

import numpy as np

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

a,b,h=map(int, read().split())
print(h*(b+a)//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())

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

print(menseki)

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 045
# A - 台形 / Trapezoids
a = int(input())
b = int(input())
h = int(input())
A = int((a+b)*h/2)
print(A)

Submission status: Accepted

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

Submission status: Accepted

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


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())
c = int(input())

print((a + b) * c // 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())

area = (a + b) * h / 2

print(int(area))

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())

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def calc_trapezoid_area(top_length, under_length, height):    
    return (top_length + under_length) * height // 2

if __name__=='__main__':
    top_length, under_length, height = map(int, [input() for i in range(3)])
    print(calc_trapezoid_area(top_length, under_length, height))

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:
import sys

# a 上底
a = int(input())

# b 下底
b = int(input())

# h 高さ
h = int(input())

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

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    #r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    #a = list(map(int, r.split()))
    #a,b,c,d = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0
    r = [int(stdin.readline()) for i in range(3)]

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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())
print(int((a+b) * h * 0.5))

Submission status: Accepted

Solution code:
import sys

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

square = (a + b) * h / 2

print(int(square))

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:
print((int(input())+int(input()))*(int(input())//2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
K=int(input())
X=int(input())
print((N+K)*X//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
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())

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

print(m)

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, b, h = [int(input()) for x in range(3)]
print(int((a + b) * h / 2))

Submission status: Accepted

Solution code:
ans = int(input())
ans += int(input())
ans *= int(input())
print(ans//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 = int(input())
b = int(input())
h = int(input())
r = (a + b) / 2 * h

print(int(r))

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())
ans = ((a+b) * h)/2
print(int(ans))

Submission status: Accepted

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

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

Submission status: Accepted

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

area = (a+b)*h/2

print('{:.0f}'.format(area))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = [int(input()) for i in range(3)]
result = (data[0]+data[1])*data[2]*0.5
if result == int(result) :
  print(int(result))
else :
  print(result)

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(int((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())
 
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(input())
b = int(input())
c = int(input())
print(int((a+b)*c/2))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

def main(argv=sys.argv):
  
  a = int(input())
  b = int(input())
  h = int(input())
  
  print((a + b) * h // 2)
  
  
  return 0


if __name__ == '__main__':
  sys.exit(main())

Submission status: Accepted

Solution code:
# coding: utf-8
import sys


def main(argv=sys.argv):

    top = int(input())
    bottom = int(input())
    height = int(input())

    print((top + bottom) * height // 2)

    return 0


if __name__ == '__main__':
    sys.exit(main())

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())
b = int(input())
h = int(input())

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

Submission status: Accepted

Solution code:
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def gcd(a,b): #最大公約数
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def divisors(a): # 約数列挙
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): #素数判定
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): #素数列挙
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

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

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
a = list(int(input()) for _ in range(3))
print((a[0]+a[1])*a[2]//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())
print(int((a+b) * h * 0.5))

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
l = [int(input()) for _ in range(3)]

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 045 - A
# -*- encoding: UTF-8 -*-
a = int(input())
b = int(input())
h = int(input())


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

print(m)

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

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())
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:
import sys

a, b, h = map(int, sys.stdin.read().split())

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

if __name__ == '__main__':
    ans = main()
    print(ans)

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:
n, k, x = [int(input()) for i in range(3)]
print((n+k)*x//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())

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

Submission status: Accepted

Solution code:
# 3回入力
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())
c=int(input())
#d=int(input())
print(int((a+b)*c/2))

Submission status: Accepted

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

print('{:.0f}'.format((A+B)*C/2))

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
h = int(input())
print(str((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(input())
b = int(input())
h = int(input())

s = (a + b) * h * 0.5
print(round(s))

Submission status: Accepted

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

menseki = ( a +b )* h /2

print(int(menseki))

Submission status: Accepted

Solution code:
# 
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a = int(input())
b = int(input())
h = int(input())

print(int(((a+b)*h)/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())

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

Submission status: Accepted

Solution code:
up = int(input())
down = int(input())
high = int(input())
area = (up + down ) * high / 2
print(int(area))

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())

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

Submission status: Accepted

Solution code:
from sys import stdin

a = int(stdin.readline().rstrip())
b = int(stdin.readline().rstrip())
h = int(stdin.readline().rstrip())

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

Submission status: Accepted

Solution code:
#1<=A<=100
#1<=b<=100
#1<=h<=100
#hは偶数
#Sは面積
a=int(input())
b=int(input())
h=int(input())
S=(a+b)*h/2
print('%d'%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:
a = int(input())
b = int(input())
h = int(input())

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(m)

Submission status: Accepted

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

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

print(n)

Submission status: Accepted

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

Submission status: Accepted

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

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

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, b, h=map(int, list(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((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:
# ABC045a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, h = map(int, open(0).read().split())

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

if __name__ == '__main__':
    print(Trapezoids(a, b, h))

Submission status: Accepted

Solution code:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    *A, = map(int,open(0).read().split())
    print(sum(A[:2])*A[-1]//2)    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
from string import ascii_lowercase

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:
#ABC045_A

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect, fractions
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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())
 
s = (a + b)*h/2
print(int(s))

Submission status: Accepted

Solution code:
a,b,h = [int(input()) for _ in range(3)]
print(h*(a+b)//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:
def main(a, b, h):
    return (a + b) * h // 2


if __name__ == '__main__':
    A = int(input())
    B = int(input())
    H = int(input())
    print(main(A, B, H))

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:
#!python3.4.3

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())
S = int((a + b) * h / 2)
print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# python3 (3.4.3)
import sys
input = sys.stdin.readline

# main
A = int(input())
B = int(input())
H = int(input())

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

Submission status: Accepted

Solution code:
def examA():
    a = I(); b = I(); h = I()
    ans = (a+b)*h//2
    print(ans)


import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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:
a = int(input())
b = int(input())
h = int(input())
 
print(int(h * (a + b) / 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())

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

print(ans)

Submission status: Accepted

Solution code:
#045-A
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())
S = (a+b)*h/2
print(int(S))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
#入力
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())

print('{}'.format( int((a+b)*h/2) ))

Submission status: Accepted

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

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:
def solve():
    A, B, H = int(input()), int(input()), int(input())

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


if __name__ == '__main__':
    res = solve()
    print(res)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
b = int(input())
h = int(input())

area = int((a+b)*h/2.0)
print('%d' %(area))

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:
a, b, h = map(int, [input() for i in range(3)])
print((a + b) * h // 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,h = map(int,open(0).read().split())

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:
a = int(input())
b = int(input())
h = int(input())
k = (a+b)*h/2
print(int(k))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

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:
def solve():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a+b)*h//2)

if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

print(str(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:
#n = int(input())
a = int(input())
b = int(input())
h = int(input())

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

print(ans)

Submission status: Accepted

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

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

print(trapezoid)

Submission status: Accepted

Solution code:
a = int(input().strip())
b = int(input().strip())
h = int(input().strip())
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))