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:
l = []
for i in range(3):
	l.append(int(input()))
print((l[0] + l[1]) * l[2]/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:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
Sa = input().strip()
Sb = input().strip()
Sc = input().strip()
l = [len(Sa), len(Sb), len(Sc)]
s = [Sa, Sb, Sc]
p = 0
while True:
    l[p] -= 1
    if l[p] <= 0:
        print("ABC"[p])
        break
    else:
        p = "abc".find(s[p][l[p] - len(s[p]) + 1])

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)/2*h)

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:
# -*- coding: utf-8 -*-

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import functools

import os
import sys

sys.setrecursionlimit(10000)
INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def Yesif(cond):
    print('Yes' if cond else 'No')


def YESIF(cond):
    print('YES' if cond else 'NO')


def yesif(cond):
    print('yes' if cond else 'no')


a, b, c = inpm(3)

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

Submission status: Wrong Answer

Solution code:
# ABC045A - 台形 / Trapezoids
a, b, h= list(map(int, [input().rstrip() 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) / 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:
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(h*(a+b)/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:
a,b,h=[int(i) 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)]
ans = (a+b)*h/2
print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, h=map(int, open(0).read().split())
print ((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())  

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
  a = [int(input()) for i in range(3)]
  print((a[0]+a[1])*(a[2]/2))

if __name__=='__main__':main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
  a = [int(input()) for i in range(3)]
  print((a[0]+a[1])*a[2]/2)

if __name__=='__main__':main()

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:
upper_bottom = int(input())
downer_bottm = int(input())
height = int(input())

print((upper_bottom + downer_bottm) * height /height)

Submission status: Wrong Answer

Solution code:
ABC = []
for i in range(3):
    ABC.append(input())
pl_list = {0: 'A', 1: 'B', 2: 'C'}

pl = 0
while True:
    if ABC[pl] == '':
        print(pl_list[pl])
        exit()
    plcard = ABC[pl][0]
    string = ABC[pl]
    string = list(string)
    string = string[1:]
    string = ''.join(string)
    ABC[pl] = string

    if plcard == 'a':
        pl = 0
    elif plcard == 'b':
        pl = 1
    else:
        pl = 2

Submission status: Wrong Answer

Solution code:
#45
a = int(input())
ans = (a+ int(input()))/2
print(ans * 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 = [int(input()) for i in range(3)]
 
print((num[0]+num[1])*num[2]/2)

Submission status: Wrong Answer

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

# 出力
print("{}".format((a+b)/2*h))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 整数の入力
b = int(input())
# 整数の入力
h = int(input())
# スペース区切りの整数の入力

# 出力
print("{}".format((a+b)*h/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: 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())
c=a+b
print(h*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:
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())
ans = (a+b) * h
print(ans)

Submission status: Wrong Answer

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

c = a+b
d = h/2

print(c*d)

Submission status: Wrong Answer

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

e = a+b

print(e*c/2)

Submission status: Wrong Answer

Solution code:
turn = "a"
S = {}

S["a"] = list(input())
S["b"] = list(input())
S["c"] = list(input())

while True:
    S[turn].pop(0)
    if len(S[turn]) == 0:
        print(turn.upper())
        break

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
h = int(input())
ans = int(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())
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())
h=int(input())
if h%2==0:
    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:
# input
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()),int(input()),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:
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,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())
c=int(input())
print((a+b)/2*c)

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

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

Submission status: Wrong Answer

Solution code:
#! /usr/bin/python3
# 台形 / Trapezoids
"""
    1 ≤ a ≤ 100
    1 ≤ b ≤ 100
    1 ≤ h ≤ 100
    入力で与えられる値はすべて整数
    h は偶数
"""

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

area = ((a + b) * length) / 2

print(area)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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:
#py aa.py
a=input()
b=input()
h=input()
a=int(a)
b=int(b)
h=int(h)
c=(a+b)*h/2
print(c)

Submission status: Wrong Answer

Solution code:
#py aa.py
a=input()
b=input()
h=input()
a=int(a)
b=int(b)
h=int(h)
c=(a*b)*h/2
print(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 _ 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())
c=int(input())
print(int((a+b)*c)/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
c=int(input())
d=a+b
print(d*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:
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
a=i1()
b=i1()
h=i1()
print((a+b)*h/2)

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
a = int(raw_input())
b = int(raw_input())
h = int(raw_input())
print float((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:
#abc045_c

def f(s,res):
 temp=0
 for i in xrange(len(s)):
  if i==0:
   temp=res+int(s)
  else:
   temp+=f(s[i:],res+int(s[:i]))
 return temp
 
print f(raw_input(),0)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# problem C; edited from ID:manaysh

import itertools

S = input() # 125
#S = '125'

ans = int(S) # どこにも'+'を入れない場合
all_idx = list(range(1, len(S))) # [1, 2]

# indexの間に'+'を組み入れる関数
def sum_split_num(num, index):
    index.insert(0, 0)
    index.append(len(num))
    a = 0
    for i in range(len(num)-1):
        a += int(num[index[i]:index[i+1]])
    return(a)

for i in range(1, len(S)):
    # all_idxからi個選んだ組合せ
    for index in itertools.combinations(all_idx, i):
        ans += sum_split_num(S, list(index))

print(ans)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# problem C; 

import itertools

S = input() # 125
ans = int(S) # どこにも'+'を入れない場合
all_idx = list(range(1, len(S))) # [1, 2]

# indexの間に'+'を組み入れる関数
def sum_split_num(num, index):
    index.insert(0, 0)
    index.append(len(num))
    a = 0
    for i in range(len(num)-1):
        a += int(num[index[i]:index[i+1]])
        return(a)
    
for i in range(1, len(S)):
    # all_idxからi個選んだ組合せ
    for index in itertools.combinations(all_idx, i):
        ans += sum_split_num(S, list(index))

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,h=(int(input())for _ in[0]*3);print((a+b)*h/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:
sa = input()
sb = input()
sc = input()

cs = sa
cp = ""
np = "a"
while(True):
    cp = np
    if cs=='' :
        break
    np = cs[0]
#    print(cp)
    cs = cs.replace(np, '', 1)
#    print(cs)
#    print("")
    
    if cp=="a" :
        sa = cs
    elif cp=="b" :
        sb = cs
    elif cp=="c" :
        sc = cs

    if np=="a" :
        cs = sa
    elif np=="b" :
        cs = sb
    elif np=="c" :
        cs = sc

print(cp.upper())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8

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

print a*b*h

Submission status: Wrong Answer

Solution code:
n0 = int(input())
n1 = int(input())
n2 = int(input())
print( (n0 + n1)  * n2 / 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:
#ABC045A

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

Submission status: Wrong Answer

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

current = A
currentName = 'A'
while True:
    if len(current) == 0:
        break
    card = current.pop(0)
    if card is 'a':
        current = A
        currentName = 'A'
    elif card is 'b':
        current = B
        currentName = 'B'
    else:
        current = C
        currentName = 'C'

print(currentName)

Submission status: Wrong Answer

Solution code:

s1 = list(input())
s2 = list(input())
s3 = list(input())

s = dict()
s['a'] = s1
s['b'] = s2
s['c'] = s3



# NOTE : Initialize
current = 'a'


# NOTE : Simulate
while 1:
    s[current] = s[current][1:]

    if len(s[current]) == 0:
        print(current.upper())
        break

    current = s[current][0]

Submission status: Wrong Answer

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

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
lstA = list(input())
lstB = list(input())
lstC = list(input())

maxA = len(lstA)
maxB = len(lstB)
maxC = len(lstC)

numA = 0
numB = 0
numC = 0

res = ''
tmp = 'a'

while True:
	if tmp == 'a':
		if numA == maxA:
			res = 'A'
			break
		tmp = lstA[numA]
		numA += 1

	elif tmp == 'b':
		if numB == maxB:
			res = 'B'
			break
		tmp = lstB[numB]
		numB += 1

	else:
		if numC == maxC:
			res = 'C'
			break
		tmp = lstC[numC]
		numC += 1

print(res)

Submission status: Wrong Answer

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

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

print(area)

Submission status: Wrong Answer

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

a, b, h = map(int, x)

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

print(ans)

Submission status: Wrong Answer

Solution code:
import collections


def solve(sa, sb, sc):
    next_turn = sa.popleft()
    while True:
        if next_turn == 'a':
            if len(sa) == 0:
                return 'A'
            next_turn = sa.popleft()
        elif next_turn == 'b':
            if len(sb) == 0:
                return 'B'
            next_turn = sb.popleft()
        else:
            if len(sc) == 0:
                return 'C'
            next_turn = sc.popleft()


sa = raw_input()
sa = collections.deque(sa)
sb = raw_input()
sb = collections.deque(sb)
sc = raw_input()
sc = collections.deque(sc)
ans = solve(sa, sb, sc)
print ans

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import collections


def solve(sa, sb, sc):
    next_turn = sa.popleft()
    while True:
        if next_turn == 'a':
            if len(sa) == 0:
                return 'a'
            next_turn = sa.popleft()
        elif next_turn == 'b':
            if len(sb) == 0:
                return 'b'
            next_turn = sb.popleft()
        else:
            if len(sc) == 0:
                return 'c'
            next_turn = sc.popleft()
    return next_turn


sa = raw_input()
sa = collections.deque(sa)
sb = raw_input()
sb = collections.deque(sa)
sc = raw_input()
sc = collections.deque(sa)
ans = solve(sa, sb, sc)
print ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print a*b/2

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3

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

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

Submission status: Time Limit Exceeded

Solution code:
sa = input()
sb = input()
sc = input()
turn = sa[0]
sa = sa[1:]
while True:
    if turn == 'a':
        if not sa:
            win = 'A'
            break
        else:
            turn = sa[0]
            sa = sa[1:]
    if turn == 'b':
        if not sb:
            win = 'B'
            break
        else:
            turn = sb[0]
            sb = sb[1:]
    if turn == 'c':
        if not sc:
            win = 'C'
            break
        else:
            turn = sc[0]
            sc = sc[1:]

Submission status: Time Limit Exceeded

Solution code:
S_A, S_B, S_C = [list(input()) for i in range(3)]
S = S_A[0]
while True:
    if S == 'a':
        if len(S_A) == 0:
            break
        else:
            S == S_A.pop(0)
    elif S == 'b':
        if len(S_B) == 0:
            break
        else:
            S = S_B.pop(0)
    elif S == 'c':
        if len(S_C) == 0:
            break
        else:
            S == S_C.pop(0)
if S == 'a':
    print('A')
elif S == 'b':
    print('B')
elif S == 'c':
    print('C')

Submission status: Time Limit Exceeded

Solution code:
sa = [s for s in input()]
sb = [s for s in input()]
sc = [s for s in input()]

next_turn = "a"
flag = True

while flag:
    if next_turn == "a":
        if len(sa) == 0:
            print("A")
            flag = False
        else:
            next_turn = sa.pop(0)
    elif next_turn == "b":
        if len(sb) == 0:
            print("B")
            flag = False
        else:
            next_turn = sb.pop(0)
    elif next_turn == "c":
        if len(sc) == 0:
            print("C")
            flag = False
        else:
            next_turn = sc.pop(0)

Submission status: Time Limit Exceeded

Solution code:
l=list(input() for i in range(3))
tn =0
while len(l[tn])>0:
    if l[tn][0]=="a":
        l[tn]=l[tn][1:]
        tn=0
    elif l[tn][0]=="b":
        l[tn]=l[tn][1:]
        tn=1
    elif l[tn][0]=="c":
        l[tn]=l[tn][1:]
        tn=2
if tn==0:
    print("A")
elif tn==1:
    print("B")
elif tn==2:
    print("C")

Submission status: Time Limit Exceeded

Solution code:
sa = str(raw_input())
sb = str(raw_input())
sc = str(raw_input())

n = 'a'
h = ''
while True:
    if n == 'a':
        if len(sa) < 1:
            break
        h, sa = sa[0], sa[1:]
        n = h
    elif n == 'b':
        if len(sb) < 1:
            break
        h, sb = sb[0], sb[1:]
        n = h
    elif n == 'c':
        if len(sc):
            break
        h, sc = sc[0], sc[1:]
        n = h

print str.upper(n)

Submission status: Time Limit Exceeded

Solution code:
#abc045_b
import sys

a=raw_input()
b=raw_input()
c=raw_input()

ch=a[0]

while True:
 if ch=='a':
  a=a[1:]
  if len(a)==0:
   print 'A'
   sys.exit()
  ch=a[0]
 elif ch=='b':
  b=b[1:]
  if len(b)==0:
   print 'B'
   sys.exit()
  ch=b[0]
 elif ch=='c':
  c=c[1:]
  if len(c)==0:
   print 'C'
   sys.exit()
  ch=c[0]

Submission status: Time Limit Exceeded

Solution code:
a = str(raw_input())
b = str(raw_input())
c = str(raw_input())
s = a[0]
a = a[1:]
while True:
    if s == 'a':
        if len(a) == 1:
            print 'a'
            break
        s = a[0]
        a = a[1:]
    elif s == 'b':
        if len(b) == 1:
            print 'b'
            break
        s = b[0]
        b = b[1:]
    elif s == 'c':
        if len(c) == 1:
            print 'c'
            break
        s = c[0]
        c = c[1:]

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((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:
val = [int(input()) for i in range(3)]
print(int((val[0] + val[1]) * val[2] / 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 iroha():
    a, b, c = [int(input()) for i in range(3)]
    num = (a+b)*c / 2
    result = int(num)
    print(result)


if __name__ == "__main__":
    iroha()

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

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

Submission status: Accepted

Solution code:
"""
ABC045 A A - 台形
https://atcoder.jp/contests/abc045/tasks/abc045_a
"""

n = [int(input()) for i in range(3)]

print((n[0]+n[1])*n[2]//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:
import math
from datetime import date

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

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

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