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: Wrong Answer

Solution code:
import sys
stdin = sys.stdin
 
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
 
p=[0]*3
p[0]=ns()
p[1]=ns()
p[2]=ns()
turn='A'
d={'A':0,'B':1,'C':2}
 
while(len(p[d[turn]])==0):
	tmp=p[d[turn]][0]
	p[d[turn]][0]=[]	
	turn=tmp
 
 
print(d[turn])

Submission status: Wrong Answer

Solution code:
import sys
stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

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

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

Submission status: Wrong Answer

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

S = (input_list[0] + input_list[1])*input_list[2]/2

print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(str(S))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("abh")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

((a + b) * c) / 2

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input_array = []
for l in sys.stdin:
    input_array.append(int(l))

a = input_array[0]
b = input_array[1]
h = input_array[2]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = input()
a = a.replace("a","")
b = b.replace("b","")
c = c.replace("c","")
turn = 'a'
for i in range(500):
	if turn == 'a':
		if int(len(a)) == 0:
			print("A")
			break
		else:
			turn = str(a[0])
			a = a[1:]
	if turn == 'b':
		if int(len(b)) == 0:
			print('B')
			break
		else:
			turn = str(b[0])
			b = b[1:]
	if turn == 'c':
		if int(len(c)) == 0:
			print('C')
			break
		else:
			turn = str(c[0])
			c = c[1:]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print((A+B)*C)

Submission status: Wrong Answer

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

ans = (a+b)*h/2

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print (ans)

Submission status: Wrong Answer

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

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

print (ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a[0] == a[1]:
	print(a[0] ** 2)
else:
	print(int((a[0] + a[1]) * a[2] / 2))

Submission status: Wrong Answer

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

if a[0] == a[1]:
	print(a[0] ** 2)
else:
	print(int((a[0] + a[1]) * a[2] / a[2]))

Submission status: Wrong Answer

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

if a[0] == a[1]:
	print(a[0] ** 2)
else:
	print((a[0] + a[1]) * a[2] / a[2])

Submission status: Wrong Answer

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

if a[0] == a[1]:
	print(a[0] ** 2)
else:
	print((a[0] + a[1]) * a[2] / 2)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

area = (a+b)*h/2

print(area)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#台形の面積　＝　（上辺＋下辺）×高さ÷２
#入力　a,b,h
# a = 上辺、b = 下辺、h =　高さ
#制約:高さは偶数

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

if h % 2 == 0:
    s = (a + b)*h//2
    print(s)
else:
    print("hが偶数ではありません")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n = A.pop(0)
while True:
  if n == 'a':
    if A == []:
      print('A')
      break
    n = A.pop(0)
  elif n == 'b':
    if B == []:
      print('B')
      break
    n = B.pop(0)
  else:
    if C == []:
      print('C')
      break
    n = C.pop(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = list(int(input()) for _ in range(3))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 29 16:01:33 2019

@author: virfi
"""

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

(a+b)*h

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

turn = A
player = "A"
while turn:
    if turn[0] == "a":
        turn = A
        if len(A) == 0:
            player = "A"
            break

    elif turn[0] == "b":
        turn = B
        if len(B) == 0:
            player = "B"
            break

    elif turn[0] == "c":
        turn = C
        if len(C) == 0:
            player = "C"
            break
    turn.pop(0)

print(player)

Submission status: Wrong Answer

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

# 整数の入力
a = int(input())
b = int(input())
h = int(input())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

S = input()
n = len(S)

def dfs(i, f):
    if i == n - 1:
        return f
    return dfs(i + 1, f + S[i + 1]) + "+" + dfs(i + 1, f + "+" + S[i + 1])

def main():
    print(eval(dfs(0,S[0])))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

if h == 2:
  print(a + b)
print((a + b) * h / 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(S)

Submission status: Wrong Answer

Solution code:
a = 3
b = 4
h = 2

c = a + b * h / 2
c

Submission status: Wrong Answer

Solution code:
a = 5
h = 4
b = 10

c = a + b * h / 2
c

Submission status: Wrong Answer

Solution code:
a = 5
h = 4
b = 10

c = a + b / h
c

Submission status: Wrong Answer

Solution code:
a = int(input())

b= int(input())


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )
# from itertools import accumulate
# from collections import deque

import random


def main():
    s=input().strip()
    n=len(s)-1
    NUM_CASE= 2**n
    sum=0
    for case in range(0,NUM_CASE):
        left=0
        for index in range(n):
            if (case>>index) & 1 == 1:
                sum+=int(s[left:index+1])
                left=index+1
            else:               # if (case>>index) & 1 ==0:
                continue
        index=n
        sum+=int(s[left:index+1])
    print(sum)  
    return

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

# solve & output
print((a + b) * h / 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
sa = input()
sb = input()
sc = input()

def judges(lis):
    if lis[0] == 'a':
        judge=1
    elif lis[0] == 'b':
        judge=2
    else:
        judge=3
    return judge
  
import sys

judge = 1
while(1):
    if judge == 1:
        try:
            judge = judges(sa)
            sa = sa[1:]
#             print(sa)
        except IndexError:
            print('A')
            break
    
    elif judge == 2:
        try:
            judge = judges(sb)
            sb = sb[1:]
#             print(sb)
        except IndexError:
            print('B')
            break
    else:
        try:
            judge = judges(sc)
            sc = sc[1:]
#             print(sc)
        except IndexError:
            print('C')
            break

Submission status: Wrong Answer

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

print((3 + 4) * 2 // 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8

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

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

Submission status: Wrong Answer

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

a, b, h = input_

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

print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import itertools
num = str(input())

olist = [int(i+1) for i in range(len(num)-1)]
comblist = []
for i, _ in enumerate(olist, 1):     
    for j in itertools.combinations(olist, r=i):
        comblist.append(j)

L = []
for i in range(len(comblist)):
  t = num
  for j in range(len(comblist[i])):
    t = t[0:comblist[i][j]+j] + "," + t[comblist[i][j]+j:]
  L.append(t)

out = 0
for i in range(len(L)):
  t = L[i].split(",")
  for j in range(len(t)):
    out += int(t[j])
print(out+int(num))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
h = int(input())
S = (a+b)*h
print('{:.2g}'.format(S/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
sa = list(input())
sb = list(input())
sc = list(input())

turn = "a"
while True:
  if turn == "a":
    sa = sa[1:]
    if len(sa) == 0:
      print("A")
      break
    turn = sa[0]
  if turn == "b":
    sb = sb[1:]
    if len(sb) == 0:
      print("B")
      break
    turn = sb[0]
  if turn == "c":
    sc = sc[1:]
    if len(sc) == 0:
      print("C")
      break
    turn = sc[0]

Submission status: Wrong Answer

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

s = (a + b) * h /2

print(s)

Submission status: Wrong Answer

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

s = (a + b) * h

print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

a = int(input()) #連泊
b = int(input()) #日にち
h = int(input())

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

Submission status: Wrong Answer

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

answer = (a + b) * h /2

print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a*b*h/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

area = (str[0]+str[1])*str[2]/2

print(area)

Submission status: Wrong Answer

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

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

print(area)

Submission status: Wrong Answer

Solution code:
x = lambda:int(input())
print((x()*x())*x()//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print((a*b)//h)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b, h = IR(3)
    print((a+b)*h/2)
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    a = int(input())
    b = int(input())
    h = int(input())
    print((a+b)*h)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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