Problem:


Score : 100 points

Problem Statement

You are given two positive integers a and b.
Let x be the average of a and b.
Print x rounded up to the nearest integer.

Constraints

a and b are integers.

1 \leq a, b \leq 100

Input

Input is given from Standard Input in the following format:

a b

Output

Print x rounded up to the nearest integer.

Sample Input 1

1 3

Sample Output 1

2

The average of 1 and 3 is 2.0, and it will be rounded up to the nearest integer, 2.

Sample Input 2

7 4

Sample Output 2

6

The average of 7 and 4 is 5.5, and it will be rounded up to the nearest integer, 6.

Sample Input 3

5 5

Sample Output 3

5



Sample input:
1 3


Sample output:
2

Submission status: Accepted

Solution code:
x,y = map(int,input().split())

t = (x+y)//2

if (x+y)%2 == 0:
    print(t)
else:
    print(t + 1)

Submission status: Accepted

Solution code:
import math
x, y = map(int, input().split())

z = (x+y) / 2
a = math.ceil(z)
print(a)

Submission status: Accepted

Solution code:
import math
n = sum(map(int, input().split()))
print(int(math.ceil(n / 2)))

Submission status: Accepted

Solution code:
import math
a,b = map(int,input().split())
x = math.ceil(0.5*(a+b))
print(x)

Submission status: Accepted

Solution code:
from math import ceil as c
a,b=map(int,input().split())
print(int(c((a+b)/2)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import ceil
def solve():
    a, b = map(int, input().split())
    print(ceil((a + b) / 2))
solve()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
n = a + b
if n % 2 == 0:
  print(n // 2)
else:
  print((n // 2) + 1)

Submission status: Accepted

Solution code:
print(-~eval(input().replace(" ","+"))//2)

Submission status: Accepted

Solution code:
print(~-sum(map(int,input().split()))//2+1)

Submission status: Accepted

Solution code:

ab=map(int,input().split());print((sum(ab)-1)//2+1)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
t=a+b
print(t//2+[0,1][t%2!=0])

Submission status: Accepted

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

def main():
	a, b = map(int, input().split())
	
	print(-(-(a + b) // 2))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def round_up(num):
    if num % 1 == 0:
        return int(num)
    return int(num) + 1

ab = [int(m) for m in input().split(" ")]

print(round_up(sum(ab) / 2))

Submission status: Accepted

Solution code:
import math

a, b = map(int, input().split())
print(str(math.ceil((a + b) / 2)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a,b=map(int,input().split())
print(math.ceil(sum([a,b])/2))

Submission status: Accepted

Solution code:
import math 
a,b=list(map(int,input().split()))
print(math.ceil((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num,numsecond = map(int,input().split())
number = num + numsecond
answer = number // 2
if number / 2 - number //2 > 0:
    answer += 1

print(answer)

Submission status: Accepted

Solution code:
#coding:utf-8
n=[int(i) for i in input().split()]
n1=(n[0]+n[1])/2
n2=int((n[0]+n[1])/2)
if(n1-n2==0):print(n2)
else:print(n2+1)

Submission status: Accepted

Solution code:
print (sum([int(x) for x in raw_input().split()]) + 1) / 2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b =list(map(int, input().split()))
A = a + b
if A % 2 == 0:
	print(int(A // 2))
else:
	print(int((A + 1) // 2))

Submission status: Accepted

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

if (a+b)%2==0:
    print(int((a+b)/2))
else:
    print(int((a+b)/2+0.5))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if (a+b)%2==0:
  print((a+b)//2)
else:
  print((a+b+1)//2)

Submission status: Accepted

Solution code:
import math
a, b = map(float, input().split())


mean = math.ceil(float((a+b)/2.0))
print(mean)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print((A+B+1)//2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from functools import reduce
import math
 
a = list(map(int,input().split()))
c = reduce(lambda x,y: (x+y)/2 ,a)
print(math.ceil(c))

Submission status: Accepted

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

if float((a+b)/2) == int((a+b)/2):
  print(int((a+b)/2))
else:
  print(int((a+b)/2)+1)

Submission status: Accepted

Solution code:
[a,b]=[int(i) for i in input().split()]
c=(a+b)/2
if c%1==0:
    print(int(c))
else:
    print(int(c//1)+1)

Submission status: Accepted

Solution code:
A,B=map(int,input().split())

if (A+B)%2==0:
    print((A+B)//2)
else:
    print((A+B+1)//2)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print((a+b)//2 + (0 if (a+b)%2==0 else 1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
rnd = lambda x : (x * 2 + 1) // 2
print(int(rnd((a + b) / 2)))

Submission status: Accepted

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

if X % 2 == 0:
    print(X//2)
else:
    print(X//2 + 1)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print((a+b)//2 if (a+b)%2==0 else (a+b+1)//2)

Submission status: Accepted

Solution code:
import math

a, b = map(int, input().split())
x = math.ceil((a + b) / 2)
print(x)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b=map(int,input().split())
x=a+b
if x%2==0:
    print(x//2)
else:
    print(x//2+1)

Submission status: Accepted

Solution code:
print(int(sum(map(int,input().split()))/2+0.5))

Submission status: Accepted

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

if c%2 == 0:
    print(int(c/2))
    
else:
    print(int(c/2)+1)

Submission status: Accepted

Solution code:
import math

a,b = map(int,input().split())
print(math.ceil(((a+b)/2)))

Submission status: Accepted

Solution code:
# ６月５日
a, b = map(int, input().split())
c = (a+b)/2
d = int(c)
if c == d :
    print(d)
else :
    print(d+1)

Submission status: Accepted

Solution code:
b, c = map(int, input().split(" "))
x=(b+c)//2+(b+c)%2
print(x)

Submission status: Accepted

Solution code:
nums = list( map( int, input().split() ) )
val = sum( nums )
print( val//2 if( val%2 == 0) else val//2+1 )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(math.ceil((a + b) / 2))

Submission status: Accepted

Solution code:
def my_round(x): return int((x*2+1)//2)
a, b = map(int, input().split())
print(int(my_round((a+b)/2)))

Submission status: Accepted

Solution code:
from math import ceil

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

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print((a+b)//2 if (a+b)%2==0 else 1+(a+b)//2)

Submission status: Accepted

Solution code:
import math

a,b = (int(i) for i in input().split())
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print((a + b) // 2 + 1)

Submission status: Accepted

Solution code:
a, b = map(int, input().split(' '))
import math
print(math.ceil((a + b)/2))

Submission status: Accepted

Solution code:
import math

digits = input('')
digits = digits.split(' ')
average = math.ceil((int(digits[0]) + int(digits[1])) / 2)
print(average)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a, b = map(int, input().split())
avg = (a + b)*0.5
print(math.ceil(avg))

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
 
s = l[0] + l[1]
if s % 2 == 1:
    s = s+ 1
else:
    None
print(s // 2)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print((a + b) // 2 + 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
 
s = l[0] + l[1]
if s % 2 == 1:
    s = s+ 1
else:
    None
print(s // 2)

Submission status: Accepted

Solution code:
a,b=map(int, input().split())
m=(a+b)/2
n=int(m)
if m-n!=0:
  print(n+1)
else:
  print(n)

Submission status: Accepted

Solution code:
import math
print((lambda x: math.ceil((x[0]+x[1])/2))(list(map(int, input().split()))))

Submission status: Accepted

Solution code:
import math

a,b=[int(i) for i in input().split()]
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
import math
l = list(map(int,input().split()))
a,b = l[0],l[1]
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
import math

def main():
    a, b = map(int, input().split())

    print(math.ceil((a + b) / 2))

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
A,B = map(int,input().split())
print(math.ceil((A + B) / 2 ))

Submission status: Accepted

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

n = (a + b) / 2
print(math.ceil(n))

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
print((A+B+1)//2)

Submission status: Accepted

Solution code:
def ceil_div(num, den):
    return ((num - 1) // den) + 1

if __name__ == '__main__':
    a, b = map(int, input().split())
    print(ceil_div(a + b, 2))

Submission status: Accepted

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

if (a+b)%2 != 0:
  print((a+b)//2 + 1)
else:
  print((a+b)//2)

Submission status: Accepted

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

print(math.ceil((a + b) / 2))

Submission status: Accepted

Solution code:
from math import ceil
a,b=list(map(int,input().split()))
x=ceil((a+b)/2)
print(x)

Submission status: Accepted

Solution code:
from math import ceil
print(ceil(sum(list(map(int, input().split())))/2))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if (a + b) % 2 == 0:
	print((a + b) // 2)
else:
	print((a + b) // 2 + 1)

Submission status: Accepted

Solution code:
a,c=map(int,input().split())
if (a+c)%2==0:
    print(int((a+c)/2))
else :
    print(int((a+c)/2+1))

Submission status: Accepted

Solution code:
import math
a, b = map(int, input().split())
i = ( a + b) / 2
x = math.ceil(i)
print(x)

Submission status: Accepted

Solution code:
# coding: utf-8
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import ceil
print(ceil(sum(map(int, input().split()))/2))

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])

print(math.ceil((a+b)/2))

Submission status: Accepted

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

s = a + b

if a + b % 2 == 0:
    print((a + b) // 2)
else:
    print((a + b + 1) // 2)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c=(a+b)
if c%2==0:
    print(int(c/2))
else:
    print(int(c/2)+1)

Submission status: Accepted

Solution code:
x = input().split()
a = int(x[0])
b = int(x[1])
c = (a + b) % 2
d = (a + b) // 2
if c == 0 :
     print(d)
else :
    print(d + 1)

Submission status: Accepted

Solution code:
a,b = (int(i) for i in input().split())
if (a+b)%2==0: print((a+b)//2)
else: print((a+b+1)//2)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
x=(a+b)
if x%2==0:
    print(x//2)
else:
    print((x//2)+1)

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a,b = na()
import math
print(math.ceil(((a+b) / 2)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=eval(input().replace(' ', '+'));print(a//2+a%2)

Submission status: Accepted

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

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    A, B = list(map(int, input().split()))

    mean = (A + B + 1) // 2
    print(mean)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print((A+B+1)//2)

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
A, B = map(float, input().split())
print((int)((A+B)*0.5+0.5))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
input_list = list(map(int,input().split()))

import math
print(math.ceil((input_list[0] + input_list[1])/2))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if (a+b)%2 == 0:
	print((a+b)//2)
else:
	print((a+b)//2+1)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a, b = map(int, input().rstrip().split())
import math
print(math.ceil((a + b) / 2)) #小数点以下を切り上げする

Submission status: Accepted

Solution code:
import math
x,y=map(int,input().split())
print(math.ceil((x+y)/2))

Submission status: Accepted

Solution code:
from math import ceil
g = list(map(float, input().split()))
x = (g[0] + g[1]) / 2
print(ceil(x))

Submission status: Accepted

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

Submission status: Accepted

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

from decimal import Decimal, ROUND_HALF_UP

def main():
    a, b = map(int, input().split())
    print(Decimal((a + b) / 2).quantize(0, ROUND_HALF_UP))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
a,b=map(int,input().split())
print(math.ceil((a+b)*0.5))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def A_Round_Up_the_Mean():
    a,b = map(int, input().split())
    print(int((a+b)/2+0.5)) 
A_Round_Up_the_Mean()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
y = (a + b)/ 2
import math
print(math.ceil(y))

Submission status: Accepted

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

import math

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

print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
import math

def main():
    print(
        (lambda nums: math.ceil((nums[0] + nums[1]) / 2))(list(map(int, input().split())))
    )

main()

Submission status: Accepted

Solution code:
print(int((sum(list(map(int,input().split())))+1)>>1))

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
import math
print int(math.ceil((a + b) / 2.0))

Submission status: Accepted

Solution code:
import math
A, B = map(int, input().split())
print(math.ceil(float(A + B)/2.0))

Submission status: Accepted

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

import sys

a, b = [int(e) for e in raw_input().split()]
#print a, b

sys.stdout.write('%d\n' % ( (a + b + 1)/2 ))
sys.stdout.flush()

Submission status: Accepted

Solution code:
import math
a = list(map(lambda x: int(x), input().split(" ")))
print(math.ceil(sum(a)/len(a)))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ave = (a+b)/2
 
if ave == int(ave):
    print(int(ave))
    
else:
    print(int(ave)+1)

Submission status: Accepted

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

if ave == int(ave):
    print(int(ave))
    
else:
    print(int(ave)+1)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc082/tasks/abc082_a

"""
import sys
from sys import stdin
from math import ceil
from statistics import mean
input = stdin.readline


def solve(data):
    return ceil(mean(data))


def main(args):
    data = [int(x) for x in input().split()]
    ans = solve(data)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
print((sum(map(int, input().split())) + 1) // 2)

Submission status: Accepted

Solution code:
import math
a,b = map(int, input().split())
print(math.ceil((a+b)/2.0))

Submission status: Accepted

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

Submission status: Accepted

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



def main():
    A, B = map(int, input().split())

    S = A + B
    ans = S//2 + (1 if S%2 else 0)
    print(ans)

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split(' '))
x=((a+b))/2
if x%1!=0:
    x+=0.5
print(int(x))

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print(int((A + B) / 2 + 0.5))

Submission status: Accepted

Solution code:
import math

def foo(a, b):
    return math.ceil((a+b)/2)


if __name__ == "__main__":
    a,b = map(int, input().split())
    print(foo(a, b))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if (a+b)/2>int((a+b)/2):
    print(int((a+b)/2+1))
else:
    print(int((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

if __name__ == "__main__":
	a, b = map(int, input().split())
	print( math.ceil( (a + b ) / 2) )

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if (a+b) % 2 == 0:
    print((a+b) // 2)
else:
    print((a+b) // 2 + 1)

Submission status: Accepted

Solution code:
from __future__ import division
l = map(int, raw_input().split())
print int(round(sum(l)/2))

Submission status: Accepted

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

if (a+b) % 2==0:
  print(int((a+b)/2))
else:
  print(int((a+b)/2)+1)

Submission status: Accepted

Solution code:
n = input()
N = n.split()
a = int(N[0])
b = int(N[1])

sum = a + b

if sum % 2 == 0:
    ave = sum // 2
else:
    ave = (sum // 2) + 1

print(ave)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
A,B = list(map(int, input().split()))

if (A+B) % 2 == 0:
    print(round((A+B)/2))
else:
    print(round((A+B+1)/2))

Submission status: Accepted

Solution code:
a,b=[int(x) for x in input().split()]
print(int((a+b+1)/2))

Submission status: Accepted

Solution code:
import math

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

mean = (a+b)/2
print(math.ceil(mean))

Submission status: Accepted

Solution code:

a, b = map(int, input().split())
print((a + b + 1) // 2)

Submission status: Accepted

Solution code:
A, B = map(int, raw_input().split())
print (A+B+1)/2

Submission status: Accepted

Solution code:
import math
a,b = [int(i) for i in input().split()]
ans = a + b
print(math.ceil(ans / 2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math
a,b=map(int,input().split())
x=(a+b)/2

print(math.ceil(x))

Submission status: Accepted

Solution code:
import math
N = list(map(int,input().split()))

print(math.ceil((N[0]+N[1])/2))

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    a,b = LI()
    r = (a+b) // 2 + (a+b) % 2

    return r



print(main())

Submission status: Accepted

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

Submission status: Accepted

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

import math
import sys

a, b = sys.stdin.readline().strip().split(" ")
a = int(a)
b = int(b)
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
print(round((a+b)/2+0.1))

Submission status: Accepted

Solution code:
import math

[a, b] = map(int, input().split(" "))
x = math.ceil((a + b) / 2.)
print(x)

Submission status: Accepted

Solution code:
import math
a, b = map(int, input().split())
mean = (a+b)/2
print(int(math.ceil(mean)))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from math import ceil
a,b = map(int, input().split())
avg = ceil((a+b)/2.0)
print(avg)

Submission status: Accepted

Solution code:
import math
a,b = map(int,input().split())
x = (a+b)/2
print(math.ceil(x))

Submission status: Accepted

Solution code:
import math

l = input().split()
a = int(l[0])
b = int(l[1])
c = float((a+b)/2)

print(math.ceil(c))

Submission status: Accepted

Solution code:
import math
n = list(map(int,input().split()))
print(math.ceil((n[0] + n[1]) / 2))

Submission status: Accepted

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

a, b = map(int, input().split())
x = (a + b) / 2
print(math.ceil(x))

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt, ceil, floor
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache, reduce
from operator import xor
from heapq import heappush, heappop
INF = float("inf")
sys.setrecursionlimit(10**7)

# 4近傍（右, 下, 左, 上）
dy4, dx4 = [0, -1, 0, 1], [1, 0, -1, 0]


def inside(y: int, x: int, H: int, W: int) -> bool: return 0 <= y < H and 0 <= x < W
def ceil(a, b): return (a + b - 1) // b


def main():
    a, b = map(int, input().split())
    print(ceil((a + b), 2))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

def main():
   a, b = map(int, input().split())
   print(math.ceil((a+b)/2))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
numbers = input().rstrip().split()
number1 = int(numbers[0])
number2 = int(numbers[1])
 
mean = (number1+number2) / 2
 
print(math.ceil(mean))

Submission status: Accepted

Solution code:
import math

a, b = map(int, input().split())
ans = math.ceil((a + b) / 2)
print(ans)

Submission status: Accepted

Solution code:
import math
a=raw_input().split()
print int(math.ceil((int(a[0])+int(a[1]))/2.0))

Submission status: Accepted

Solution code:
from math import ceil
a, b = tuple(map(int, input().split()))

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

Submission status: Accepted

Solution code:
import math
a,b = map(int, input().split(' '))
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
S=((input())).split(' ')
print((int)(((int)(S[0])+(int)(S[1]))/2+0.5))

Submission status: Accepted

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

res = math.ceil(float(a + b) / 2)
print(res)

Submission status: Accepted

Solution code:
from math import ceil

LIST = [int(x) for x in input().split()]

def main():
    average = sum(LIST) / len(LIST)
    print(ceil(average))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

a, b = map(int, input().split())
c = math.ceil((float(a)+float(b))/2)
print(c)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
import math
x = (a + b) /2 
print(math.ceil(x))

Submission status: Accepted

Solution code:
A,B=list(map(int,input().split()))
if (A+B)%2==0:
    print((A+B)//2)
else:
    print((A+B)//2+1)

Submission status: Accepted

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

# 整数の入力
a, b = map(int, input().split())
x = math.ceil((a + b) / 2)

# 出力
print(x)

Submission status: Accepted

Solution code:
a,b=raw_input().split()
ans = (int(a)+int(b))/2+(int(a)+int(b))%2
print ans

Submission status: Accepted

Solution code:
print (eval(raw_input().replace(' ','+'))+1)/2

Submission status: Accepted

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

if (a+b)%2 == 0:
    print((a+b)//2)
else:
    print(int(((a+b)/2*10+5)//10))

Submission status: Accepted

Solution code:
r=input().split()

a=r[0]
b=r[1]

c=int(a)+int(b)
if c%2==0:
    d=c/2
elif c%2==1:
    d=(c/2)+1

print(int(d))

Submission status: Accepted

Solution code:
import math
a, b = map(int, raw_input().split())
print int(math.ceil((a+b)/2.0))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 19 13:45:02 2017

@author: kotania
"""
import math
 
ab = input().split()
a = float(ab[0])
b = float(ab[1])
x = (a + b) / 2

print(math.ceil(x))

Submission status: Accepted

Solution code:
#abc082a
import math
a,b=map(int,raw_input().split())
print int(math.ceil((a+b)/2.0))

Submission status: Accepted

Solution code:
import math


def main():
    a, b = map(int, input().split())
    print(math.ceil((a+b)/2))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

a, b = list(map(int, input().split(' ')))
print(math.ceil((a + b) / 2))

Submission status: Accepted

Solution code:
import math

input_data = list(map(int, input().split(' ')))

print(math.ceil((input_data[0] + input_data[1]) / 2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
a = int(str.split()[0])
b = int(str.split()[1])

print(int((a+b)/2 + 0.5))

Submission status: Accepted

Solution code:
import math

a,b = map(int,input().split())
ans=math.ceil((a+b)/2)

print(ans)

Submission status: Accepted

Solution code:
import math

a, b = (int(i) for i in input().split())

ans = math.ceil((a + b) / 2)
print(ans)

Submission status: Accepted

Solution code:
import math

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

x = math.ceil((a + b) / 2)

print(x)

Submission status: Accepted

Solution code:
import numpy as np
from collections import Counter
import collections
round = lambda x:(x*2+1)//2
a = list(map(float,input().split()))
a = np.array(a)
b = round(np.mean(a,dtype = "float16"))
print(int(b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
 
import math
 
l = list(map(int, input().split()))
print(math.ceil((l[0] + l[1])/2))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if (a+b)%2==0 :
	print((a+b)//2)
else:
	print((a+b)//2+1)

Submission status: Accepted

Solution code:
#coding:utf-8


def main():
    a,b = map(int, raw_input().split())
    print (a+b)/2 if (a+b)%2==0 else (a+b)/2+1

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import math
a, b = map(int, input().split())
print(math.ceil((a+b)/2))

Submission status: Accepted

Solution code:
print((lambda x: int(0.999999999999 + ((int(x[0]) + int(x[1])) / 2)))(input().split()))

Submission status: Accepted

Solution code:

import math

ina = raw_input().split()

a = int(ina[0])
b = int(ina[1])

print int( math.ceil((float(a) + b) / 2) )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import itertools
import heapq
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque


# d = defaultdict(lambda: 0)
# setrecursionlimit(10**7)
# inf = float("inf")


##### stdin ####
def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_I(): return map(int, stdin)
def ALL_IL(): return LM(int,stdin)

##### tools #####
def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))

##### main #####



def main():
	a,b = LI()
	print(math.ceil((a+b)/2))


if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if (a + b) % 2 == 1:
    print((a + b) // 2 + 1)
else:
    print((a + b) // 2)

Submission status: Accepted

Solution code:
# coding: utf-8

import math

n = map(int, raw_input().split())

print int(math.ceil(sum(n) / 2.0))

Submission status: Accepted

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

m = int((a + b) / 2)
if m == (a + b) / 2:
    print(m)
else:
    print(m + 1)

Submission status: Accepted

Solution code:
num = input().split(" ")
a = int(num[0])
b = int(num[1])

x = (a + b) // 2
y = (a + b) % 2
if y != 0 :
    print(str(x + 1))
else      :
    print(str(x))

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
print (a + b) / 2 + 1 if (float(a + b) / 2) % 1 >= 0.5 else (a + b) / 2

Submission status: Accepted

Solution code:
import math

a = list(map(lambda x: int(x),input().split()))
s = sum(a)
ave = math.ceil(sum(a)/len(a))

print(ave)

Submission status: Accepted

Solution code:
import math
x,y=[int(i) for i in input().split()]
print(int(math.ceil((x + y) / 2)))

Submission status: Accepted

Solution code:
import math

a,b = map(float,input().split(" "))
print(math.ceil((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=map(int, raw_input().split())
b=a[0]+a[1]
if b%2!=0:
    b+=1
print b/2

Submission status: Accepted

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