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: Runtime Error

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

if h == 0:
    print(0)

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print(area)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
dk = {}
dk["a"] = input()
dk["b"] = input()
dk["c"] = input()

n = "a"
while True:
    if len(dk[n]) == 0:
        print(n.upper())
        break
    nn = dk[n][0]
    dk[n] = dk[n][1:]
    n = nn

Submission status: Runtime Error

Solution code:
dk = {}
dk["a"] = input()
dk["b"] = input()
dk["c"] = input()

n = "a"
while true:
    if len(dk[n]) == 0:
        return print(n.upper())
        break
    nn = dk[n][0]
    dk[n] = dk[n][1:]
    n = nn

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

def solve():
    a, b, h = list(map(int, input().split()))
    print(int((a+b)*h//2))

if __name__ == "__main__":
    solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = dict()
S['a'] = list(input())[::-1]
S['b'] = list(input())[::-1]
S['c'] = list(input())[::-1]
p = 'a'
while S[p]:
  p = S[p].pop()  
print(p.upper())

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

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

S = (a + b) * h /2

print(S)

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

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

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

print(S)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')



def solve():
    a,b,h = f()
    print((a+b)*h//2)

solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())
print(max(a*b,c*d))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

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

    solve(a, b, h)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

n = int(input())
k = int(input())
x = int(input())
y = int(input())

if n <= k :
    print(n*x)
elif k < n :
    ans = (k*x) + (y*(n-k))
    print(ans)

Submission status: Runtime Error

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from functools import reduce, partial
from fractions import Fraction
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

a = INT()
b = INT()
h = INT()
print(int((a+b)*h/2))import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from functools import reduce, partial
from fractions import Fraction
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

now = 0
index =[0,0,0]
dic={"a":0,"b":1,"c":2}

while True:
    if index[now] == len(cards[now]):
        break
    idx = index[now]
    index[now] += 1
    now = dic[cards[now][idx]]
    

print("ABC"[now])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if __name__=='__main__':main()
~

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 整数の入力
b = int(input())
# 整数の入力
h = int(input())
# スペース区切りの整数の入力
 
# 出力
print("{}".format((a+b)*h/2)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
""" AtCoder """

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

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

Submission status: Runtime Error

Solution code:
a = input()
ar = []
for i in range(3):
    ar.append(a[i]) 
n = len(ar)
ret = 0
for i in range(n+1):
    s = "+"
    tmp = ""
    for j in range(n):
        if (1 & (i >> j)) == 1:
            tmp += ar[j]
            tmp += s
        else:
            tmp += ar[j]
    stmp = tmp.split("+")
    ret += sum(int(k) for k in stmp)
print(int(ret))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split(" ")))
print((a[0] + a[1]) * a[2] // 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
print((a[0] + a[1]) * a[2] // 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<float.h>
#include<cfloat>
#include<string>
#include<ctype.h>
#include<algorithm>
#include<errno.h>
#include<cerrno>
#include<assert.h>
#include<cassert> 
#include<map>
#include<memory.h>
#include<cctype>
#include<ctype.h>
#include<math.h>
#include<vector> 
#include<cstdio> 
#include<set>
#include<string.h>
#include<stdio.h>
#include<new>
#include<memory>
#include<cmath>
#include<queue>
#include<cstring>
#define ll long long
#define fo(i,m,n) for(int i=(int)m;i<(int)n;i++)
#define br break
#define ct continue
#define pb push_back
#define pi 3.141592653589793238462643383279502884197169
#define F first
#define S second
#define pii pair<int,int>  
#define em empty()
#define vei vector<int>
#define ves vector<string>
#define qui queue<int> 
#define qu queue
using namespace std;
int main()
{int a,b,c;
 cin>>a>>b>>c;
 cout<<(a+b)*c/2; 
 system("pause");
 return 0;
}

Submission status: Runtime Error

Solution code:
upperbase,bottom,high = map(int,input().split())
print((upperbase + bottom) * high /　2)

Submission status: Runtime Error

Solution code:
upperbase,bottom,high = map(int,input().split())
print((upperbase + bottom) * high // 2)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
SA = list(input())
SB = list(input())
SC = list(input())

D = {'a': SA, 'b': SB, 'c': SC}
now = 'a'

while D[now]:
    now = D[now].pop()

print(now)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if __name__ == '__main__':
    solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 3
>>> b = 6
>>> h = 8
>>> print((a + b) * h / 2 )
36.0
>>>

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b, h = list(map(int, str.split("\n")))
S = (int(a) + int(b)) * int(h) // 2
print(S)

Submission status: Runtime Error

Solution code:
# coding: UTF8
a, b, h = list(map(int, int(input()).split("\n"))) 

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

Submission status: Runtime Error

Solution code:
# coding: UTF8
a, b, h = int(list(map(int, input().split("\n"))))

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

Submission status: Runtime Error

Solution code:
# coding: UTF8
a, b, h = list(map(int, input().split("\n"))) 

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

Submission status: Runtime Error

Solution code:
# coding: UTF8
N = 3
# N = int(input())

str = [input() for i in range(N)]
# print str
a = str[0]
b = str[1]
h = str[2]

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

Submission status: Runtime Error

Solution code:
N = int(input())
str = [input() for i in range(N)]
# print str
a = str[0]
b = str[1]
h = str[2]

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

Submission status: Runtime Error

Solution code:
N = input()
str = [input() for i in range(N)]
# print str
a = str[0]
b = str[1]
h = str[2]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, h = list(map(int, input().split("\n")))

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

Submission status: Runtime Error

Solution code:
N = input()
str = [input() for i in range(N)]
print str
a = str[0]
b = str[1]
h = str[2]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

a = s[1]
b = s[2]
h = s[3]

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

Submission status: Runtime Error

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

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

a = s[1]
b = s[2]
h = s[3]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = str(raw_input())
b = str(raw_input())
c = str(raw_input())

if len(a) == 1:
    print 'a'
    return

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
class board:
    def __init__(self, h, w):
        self.h = h
        self.w = w
        self.pieces = self.make_pieces()
        self.results = dict()

    def make_pieces(self):
        pieces = []
        for i in range(self.h):
            for j in range(self.w):
                pieces.append(0)
        return pieces

    def draw(self, i, j):
        i -= 1; j-= 1

        index = j + i * self.w
        print(index)
        self.pieces[index] = 1

    def start_scan(self):
        for i in range(self.w - 2):
            print(i)
            for j in range(self.h - 2):
                print(j)
                num = 0
                for x in range(i, i+3):
                    for y in range(j, j+3):
                        index = x + y * self.w
                        v = self.pieces[index]
                        print("v = {0}".format(v))
                        if v == 1:
                            num += 1
                self.results[num] = num

    def searched_box(self, num):
        return self.results.get(num, 0)
        

if __name__ == '__main__':
    args = input().split(' ')
    board_h = int(args[0])
    board_w = int(args[1])
    n       = int(args[2])

    board = board(board_h, board_w)
    for _ in range(n):
        args = input().split(' ')
        i = int(args[0])
        j = int(args[1])
        board.draw(i, j)

    board.start_scan()
    for i in range(10):
        print(board.searched_box(i))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S={c:list(input())for c in"abc"}
s="a"
while S[s]:s=S[s].pop(0)
print(s.upper())

Submission status: Runtime Error

Solution code:
s={}
for i in range(3):
    s[chr(97+i)]=input()
turn="a"
while True:
    if not s[turn]:
        break
    else:
        turn=s[turn][0]
        s[turn]=s[turn][1:]
print(turn.upper())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    h,w,n=map(int,input().split())
    d={}
    for _ in range(n):
        a,b=map(int,input().split()) 
        for i in (-1,0,1):
            for j in (-1,0,1):
                if 2<=a+i<=h-1 and 2<=b+j<=w-1:
                    d.setdefault((a+i,b+j),0)
                    d[a+i,b+j]+=1
    r=[0]*10
    for i in d.values():
        r[i]+=1
    r[0]=(h-2)*(w-2)-sum(r)
    for i in r:
        print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    H, W, N = map(int, raw_input().split())
    dx = [-1, 0, 1, -1, 0, 1, -1, 0, 1]
    dy = [-1, -1, -1, 0, 0, 0, 1, 1, 1]
    board = {}
     
    for i in xrange(N):
        a, b = map(int, raw_input().split())
        for j in xrange(9):
            x, y = a+dx[j], b+dy[j]
            if x <= 1 or x >= H or y <= 1 or y >= W:
                continue
            if (x, y) in board:
                board[(x, y)] += 1
            else:
                board[(x, y)] = 1
    ans = [0] * 10
    for v in board.values():
        ans[v] += 1
    ans[0] = (H-2)*(W-2)-sum(ans)
    for a in ans:
        print a

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
class nSnukes_Coloring:
	def returnEachNumber(self,H,W,N,r):
		HWMap = [[0 for i in range(W+2)] for j in range(H+2)]
		points = [0 for i in range(10)]
		for cord in range(len(r)):
			y,x = r[cord][0],r[cord][1]
			for i in range(3):
				for j in range(3):
					HWMap[y-i+1][x-j+1] += 1
		for i in range(H-2):
			for j in range(W-2):
				points[HWMap[i+2][j+2]] += 1
		for i in range(len(points)):
			print points[i]

if __name__ == "__main__":
	H, W, N = map(int, raw_input().split())
	r = [[int(i) for i in raw_input().split()] for i in range(N)]
	s = nSnukes_Coloring()
	s.returnEachNumber(H,W,N,r)

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
    players = {}
    players['a'] = list(input())
    players['b'] = list(input())
    players['c'] = list(input())

    t = 'a'
    while len(players[t]) > 0:
        t = players[t].pop(0)
    print(t.upper())

Submission status: Runtime Error

Solution code:
from collections import defaultdict

def inside(x, y):    
    return 0 <= x <= h - 3 and 0 <= y <= w - 3

h, w, n = (int(_) for _ in input().split())
black = defaultdict(int)
for i in range(n):
    a, b = (int(_) - 1 for _ in input().split())
    for j in range(3):
        for k in range(3):
            x, y = a - j, b - k
            if not inside(x, y):
                continue
            black[(x, y)] += 1
ans = [0 for i in range(10)]
ans[0] = (h-2)*(w-2) - len(black)
for k in black:
    ans[black[k]] += 1
for i in range(10):
    print(ans[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

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


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

Submission status: Runtime Error

Solution code:
import sys


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


a = sys.stdin.readline().rstrip()
int(a)
b = sys.stdin.readline().rstrip()
int(b)
h = sys.stdin.readline().rstrip()
int(h)
ans = solve(a, b, h)
print ans

Submission status: Runtime Error

Solution code:
import sys


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


a = sys.stdin.readline().rstrip()
int(a)
b = sys.stdin.readline().rstrip()
int(b)
h = sys.stdin.readline().rstrip()
int(h)
ans = solve(a, b, h)
print "{0}".format(ans)

Submission status: Runtime Error

Solution code:
# encoding: utf-8

import sys

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


a = sys.stdin.readline().rstrip()
int(a)
b = sys.stdin.readline().rstrip()
int(b)
h = sys.stdin.readline().rstrip()
int(h)
ans = solve(a, b, h)
print "{0}".format(ans)

Submission status: Runtime Error

Solution code:
# encoding: utf-8

import sys

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

def main():
    a = sys.stdin.readline().rstrip()
    int(a)
    b = sys.stdin.readline().rstrip()
    int(b)
    h = sys.stdin.readline().rstrip()
    int(h)
    ans = solve(a, b, h)
    print "{0}".format(ans)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
# encoding: utf-8


import sys


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


def main():
    a = sys.stdin.readline().rstrip()
    int(a)
    b = sys.stdin.readline().rstrip()
    int(b)
    h = sys.stdin.readline().rstrip()
    int(h)
    print solve(a, b, h)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
# encoding: utf-8


import sys


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


def main():
    a = sys.stdin.readline().rstrip()
    int(a)
    b = sys.stdin.readline().rstrip()
    int(b)
    h = sys.stdin.readline().rstrip()
    int(h)
    print solve(a, b, h)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
# encoding: utf-8


import sys


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


def main():
    a = sys.stdin.readline().rstrip()
    int(a)
    b = sys.stdin.readline().rstrip()
    int(b)
    h = sys.stdin.readline().rstrip()
    int(h)
    print solve(a, b, h)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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