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

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

Submission status: Wrong Answer

Solution code:
def iroha():
    a, b, c = [int(input()) for i in range(3)]
    num = (a+b)*c / 2
    result = int(num)
    print(result)

Submission status: Wrong Answer

Solution code:
def iroha():
    a, b, c = [int(input()) for i in range(3)]
    num = (a+b)*2 / 2
    result = int(num)
    print(result)


if __name__ == "__main__":
    iroha()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    iroha()

Submission status: Wrong Answer

Solution code:
a,b,c = [str(input()) for i in range(3)]
current = 'a'
while True:
    cur = current[len(current)-1]
    if cur == 'a':
      current+=a[0]
      a=a[1:]
    elif cur == 'b':
      current+=b[0]
      b=b[1:]
    elif cur == 'c':
      current+=c[0]
      c=c[1:]
    if a == '' or b =='' or c =='':
      print(current[len(current)-1].upper())
      break

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rf = lambda: map(float, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

print('test')

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

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

Submission status: Wrong Answer

Solution code:
#45
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(int((a+b)*h/0.5))

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())
x = (a+b)/2
print(x*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 = 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:
# 数値の取得
a = int(input())
b = int(input())
h = int(input())
 
# 面積を求めて出力
area = (a + b) * h * 0.5
print(area)

Submission status: Wrong Answer

Solution code:
# 数値の取得
a = int(input())
b = int(input())
h = int(input())

# 面積を求めて出力
area = (a + b) * h / 0.5
print(area)

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()) for i in range(3)]
print((a[0]+a[1])*a[2]/2)

Submission status: Wrong Answer

Solution code:
a = [int(input()) for i in range(3)]
(a[0]+a[1])*a[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 = 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、下底の長さが b、高さが hの台形があります。
# この台形の面積を求めてください。

# 制約
# 1 ≦ a ≦ 100
# 1 ≦ b ≦ 100
# 1 ≦ h ≦ 100
# 入力で与えられる値はすべて整数
# hは偶数

# 標準入力から a, b, h の値を取得する。
input_a = int(input())
input_b = int(input())
input_h = int(input())

# 台形の計算をし、結果を出力する
result = (input_a + input_b) * input_h / 2
print(result)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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



# 処理
S =((a + b) * h) / 2



# 出力
print(S)

Submission status: Wrong Answer

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



# 処理
S = (a + b) * h / 2



# 出力
print(S)

Submission status: Wrong Answer

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

# 計算
answer = (a + b) / 2 * h

# 出力
print(answer)

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

answer = (a + b) * c / 2

print(answer)

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

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

Submission status: Wrong Answer

Solution code:
def main():
	a = int(input())
	b= int(input())
	h = int(input())
	t = abs(a-b)
	ar = a*h + ((t*h)//2)
	print(ar)
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())
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, b, h = int(input()), int(input()), int(input())
res = (a+b)*2 / h
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
list = []

for i in range(3):
    list.append(int(input()))

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

Submission status: Wrong Answer

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

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

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

x = (a+b)*h/h
print(int(x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, os, math, bisect, itertools, collections, heapq, queue
# from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall
from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b, h = ii(), ii(), ii()
    print(((a + b) * h) / 2)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys, os, math, bisect, itertools, collections, heapq, queue
# from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall
from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b, h = ii(), ii(), ii()
    print(((a + b) * 2) // 2)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys, os, math, bisect, itertools, collections, heapq, queue
# from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall
from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b, h = ii(), ii(), ii()
    print(((a + b) * 2) / 2)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

S = (a+b)*h/2

print(S)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys


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


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


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


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


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

Submission status: Wrong Answer

Solution code:
import sys


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


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


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


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


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

Submission status: Wrong Answer

Solution code:
a = list(input())
b = list(input())
c = list(input())
x = "d"
a_idx = 0
b_idx = 0
c_idx = 0
while True:
    if x == "a":
        if a_idx == len(a):
            print("A")
            break
        else:
            x = str(a[a_idx])
            a_idx += 1
    elif x == "b":
        if b_idx == len(b):
            print("B")
            break
        else:
            x = str(b[b_idx])
            b_idx += 1
    elif x == "c":
        if c_idx == len(c):
            print("C")
            break
        else:
            x = str(c[c_idx])
            c_idx += 1
    else:
        x = "a"

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:
s=[input() for i in range(3)]
l=[len(s[i]) for i in range(3)]
abc=[0,0,0]
now=0
while abc[now]!=l[now]:
    s_sub=s[now][abc[now]]
    abc[now]+=1
    now=(0 if s_sub=="a" else 1 if s_sub=="b" else 2)
print("A" if now==0 else "B" if now==1 else "C")

Submission status: Wrong Answer

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

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


trapezoids()

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:
def I():
  return int(input())
a,b,h=[I() for _ in range(3)]
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())

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 i in range(3)])

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:
ls=[]

for i in range(3):
  ls.append(input())

l=[]

for i in range(3):
  l.append(int(ls[i]))
  
print((l[0]+l[1])*l[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())

s=(a+b)*h/2

print(s)

Submission status: Wrong Answer

Solution code:
top=int(input())
bottom=int(input())
height=int(input())

num=top+bottom

ans=num*height/2

print(str(ans))

Submission status: Wrong Answer

Solution code:
#上底の長さ
a = input()
#下底の長さ
b = input()
#高さ
h = input()
#答え
ans = 0
#文字列を数値化しつつ
#(上底+下低)*高さ/2で台形の面積を求める
ans = (int(a) + int(b)) * int(h) / 2
#答えを出力
print(ans)

Submission status: Wrong Answer

Solution code:
#上底の長さ
a = input()
#下底の長さ
b = input()
#高さ
h = input()
#文字列を数値化しつつ
#(上底+下低)*高さ/2で台形の面積を求める
print((int(a) + int(b)) * int(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())
#面積
area = (a+b)*h/2
print(area)

Submission status: Wrong Answer

Solution code:
#上底
a = float(input())
#下底
b = float(input())
#高さ
h = float(input())
#面積
area = (a+b)*h/2
print(area)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

print(area())

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("{}".format(S))

Submission status: Wrong Answer

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

print("S={}".format(S))

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:
def dfs(i, f):
  if i == n-1:
    return sum(list(map(int,f.split("+"))))
  return dfs(i+1, f+"+"+s[i+1])+dfs(i+1, f+s[i+1])

s = input()
n = len(s)

print(dfs(0,s[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=3
b=4
h=2
int(a+b)*h%2

Submission status: Wrong Answer

Solution code:
a = int(input("上底は？"))
b = int(input("下底は？"))
h = int(input("高さは？"))
daikei = (a + b) * h / 2
print("台形の面積は", daikei, "cm2")

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

def I(): return int(stdin.readline().rstrip())

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

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/2
print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
h = int(input())
sum = a + b
print (sum * 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:
cards_list = [input() for i in range(3)]

end = True
turn = 0

def impl(cards): 
    if cards == "":
      return False
    if cards[0] == "a":
        next = 0
    elif cards[0] == "b":
        next = 1
    else:
        next = 2
        
    if len(cards) != 1:
        return cards[1:], next
    else:
        return "", next

while end:
    if cards_list[turn] == "":
        end = impl(cards_list[turn])
    else:
        cards_list[turn], turn = impl(cards_list[turn])

if turn == 0:
    print("A")
elif turn == 1:
    print("B")
else:
    print("C")

Submission status: Wrong Answer

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

end = True
turn = 0

def impl(cards): 
    if cards == "":
      return False
    if cards[0] == "a":
        next = 0
    elif cards[0] == "b":
        next = 1
    else:
        next = 2
        
    if len(cards) != 1:
        return cards[1:], next
    else:
        return "", next

while end:
    if cards_list[turn] == "":
        end = impl(cards_list[turn])
    else:
        cards_list[turn], turn = impl(cards_list[turn])
    print(end)

if turn == 0:
    print("A")
elif turn == 1:
    print("B")
else:
    print("C")

Submission status: Wrong Answer

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

end = True
turn = 0

def impl(cards): 
    if cards == "":
      return False
    if cards[0] == "a":
        next = 0
    elif cards[0] == "b":
        next = 1
    else:
        next = 2
        
    if len(cards) != 1:
        return cards[1:], next
    else:
        return "", next

while end:
    print(turn)
    print(cards_list[turn])
    if cards_list[turn] == "":
        end = impl(cards_list[turn])
    else:
        cards_list[turn], turn = impl(cards_list[turn])
    print(end)

if turn == 0:
    print("A")
elif turn == 1:
    print("B")
else:
    print(turn)
    print("C")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
import sys
from itertools import permutations

def solve():
    input = sys.stdin.readline
    a = int(input())
    b = int(input())
    h = int(input())
    print((a + b) * h / 2)
    return 0

if __name__ == "__main__":
    solve()

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

print(ans)

Submission status: Wrong Answer

Solution code:
ue = int(input("上底："))
sita = int(input("下底："))
takasa = int(input("高さ："))
men = (ue+sita)*takasa/2
print(int(men))

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

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


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

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


if __name__ == '__main__':
    resolve()

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,open(0));print((a+b)*c/2)

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,c=map(int,open(0));print(a*b*c/2)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#台形
def ABC_45_A():
    a = int(input())
    b = int(input())
    h = int(input())

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


if __name__ == '__main__':

    ABC_45_A()

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

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

Submission status: Wrong Answer

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

S=(int(a)+int(b))*int(c)*1/2

print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(n):
    ans+=i+1

print(ans)

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

Submission status: Wrong Answer

Solution code:
up = int(input())
down = int(input())
height = int(input())

print((up + down)*height/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(men)

Submission status: Wrong Answer

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

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

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:
SA = list(str(input())) 
SB = list(str(input())) 
SC = list(str(input())) 
card = 'a'

for i in range(500):
    if len(SA)==1 and card=='a':
        print('A')
        break
    elif len(SB)==1 and card=='b':
        print('B')
        break
    elif len(SC)==1 and card=='c':
        print('C')
        break
        
    if card == 'a':
        SA = SA[1:]
        card = SA[0]
    elif card == 'b':
        SB = SB[1:]
        card = SB[0]
    elif card == 'c':
        SC =SC[1:]
        card = SC[0]

Submission status: Wrong Answer

Solution code:
def resolve():
	t = []
	for _ in range(3):
		t.append(int(input()))
	a, b, h = t
	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/2))

Submission status: Wrong Answer

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

if a>b:
  print((((a-b)*h)/2)+(b*h))
elif b>a:
  print((((b-a)*h)/2)+(a*h))
else:
  print(a*h)

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

ans = (a + b)*h / 2

print(ans)

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

menseki = (a + b) * h / 2

print(menseki)

Submission status: Wrong Answer

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

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

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:
s_a = list(input())
s_b = list(input())
s_c = list(input())

S=[s_a,s_b,s_c]

order=0
while True:
    if S[order][0]=='a':
        del S[0][0]
        order=0
    elif S[order][0]=='b':
        del S[1][0]
        order=1
    else:
        del S[2][0]
        order=2

    if len(S[order])==0:
        print('A')
        exit(0)
    elif len(S[order])==0:
        print('B')
        exit(0)
    elif len(S[order])==0:
        print('C')
        exit(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

d = 0
d = a + b
d = d * c / 2
print(d)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a = int(input())
b = int(input())
c = int(input())

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

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