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:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LS()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007

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

#B
def B():
    s = S()
    t = S()
    s.sort()
    t.sort(reverse = True)
    if s < t:
        print("Yes")
    else:
        print("No")
    return

#C
def C():
    n = I()
    d = [None for i in range(n+1)]
    d[0] = 2
    d[1] = 1
    for i in range(2,n+1):
        d[i] = d[i-1]+d[i-2]
    print(d[n])
    return

#D
def D():
    x,y,z = LI()
    for i in range(1000000)[::-1]:
        if i*y+(i+1)*z <= x:
            print(i)
            quit()
    return

#E
def E():
    d = [(1,0),(-1,0),(0,1),(0,-1)]
    h,w = LI()
    s = SR(h)
    for i in range(h):
        for j in range(w):
            if s[i][j] == "#":
                su = 0
                for dy,dx in d:
                    y = i+dy
                    x = j+dx
                    if 0 <= y < h and 0 <= x < w:
                        if s[y][x] == "#":
                            su += 1
                if su == 0:
                    print("No")
                    quit()
    print("Yes")
    return

#F
def F():
    a,b,c,X,Y = LI()
    ans = float("inf")
    for z in range(300001):
        if z%2 == 0:
            m = c*z
            x = z//2
            y = z//2
            m += a*max(0,X-x)
            m += b*max(0,Y-y)
            if m < ans:
                ans = m
    print(ans)
    return

#G
def G():
    n = I()
    x = LI()
    f = [(i,x[i]) for i in range(n)]
    f.sort(key = lambda x:x[1])
    g = [(f[i][0],i) for i in range(n)]
    g.sort(key = lambda x:x[0])
    for i in range(n):
        if g[i][1] < n//2:
            print(f[n//2][1])
        else:
            print(f[n//2-1][1])
    return

#H
def H():
    return

#I
def I_():
    return

#J
def J():
    return

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import math

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

print(math.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:
import math

l = list(map(int, input().split()))

print(math.ceil((l[0] + l[1])/2.0))

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
#mathライブラリの天井関数を用いた場合
# -*- 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())
if a % 2 != 0 and b % 2 == 0:
  print(int((a+b)/2) + 1)
elif a % 2 == 0 and b % 2 != 0:
  print(int((a+b)/2) + 1)
else:
  print(int((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
import numpy as np
arr = list(map(int, input().split()))
print(math.ceil(np.mean(arr)))

Submission status: Accepted

Solution code:
import math
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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:
a, b = map(int, input().split())

ave = (a+b)/2

aveint = int(ave)

if ave%aveint > 0:
    print(aveint+1)
else:
    print(aveint)

Submission status: Accepted

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

import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


def main():
    ab = list(map(int, input().split()))
    print(math.ceil(sum(ab) / len(ab)))


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
import math
print(math.ceil((a+b)/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 + 1) / 2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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  = f()
    print((a+b)//2 + ((a+b)&1))

solve()

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:
import math
a,b=input().strip().split()
a,b=[int(a), int(b)]
print(math.ceil((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
print(math.ceil(eval(input().replace(" ", "+"))/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
print(math.ceil(eval(input().replace(' ','+'))/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

import math

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

def submit():
    a, b = read_input()

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


if __name__ == '__main__':
    submit()

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

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:
import math
a, b = map(int, input().split())
c = (a+b) / 2
print(math.ceil(c))

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 = [int(i) for i in input().split()]

print(math.ceil((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 = [int(i) for i in input().split()]
print((a+b+1)//2)

Submission status: Accepted

Solution code:
import sys
# import bisect
# import math
# import itertools
# import numpy as np
# import collections

"""Template"""


class IP:
    """
    入力を取得するクラス
    """

    def __init__(self):
        self.input = sys.stdin.readline

    def I(self):
        """
        1文字の取得に使います
        :return: int
        """
        return int(self.input())

    def S(self):
        """
        1文字の取得(str
        :return: str
        """
        return self.input()

    def IL(self):
        """
        1行を空白で区切りリストにします(int
        :return: リスト
        """
        return list(map(int, self.input().split()))

    def SL(self):
        """
        1行の文字列を空白区切りでリストにします
        :return: リスト
        """
        return list(map(str, self.input().split()))

    def ILS(self, n):
        """
        1列丸々取得します(int
        :param n: 行数
        :return: リスト
        """
        return [int(self.input()) for _ in range(n)]

    def SLS(self, n):
        """
        1列丸々取得します（str
        :param n: 行数
        :return: リスト
        """
        return [self.input() for _ in range(n)]

    def SILS(self, n):
        """
        Some Int LineS
        横に複数、縦にも複数
        :param n: 行数
        :return: list
        """
        return [self.IL() for _ in range(n)]

    def SSLS(self, n):
        """
        Some String LineS
        :param n: 行数
        :return: list
        """
        return [self.SL() for _ in range(n)]


class Idea:
    def __init__(self):
        pass

    def HF(self, p):
        """
        Half enumeration
        半分全列挙です
        pの要素の和の組み合わせを作ります。
        ソート、重複削除行います
        :param p: list : 元となるリスト
        :return: list : 組み合わせられた和のリスト
        """
        return sorted(set(p[i] + p[j] for i in range(len(p)) for j in range(i, len(p))))

    def Bfs2(self, a):
        """
        bit_full_search2
        bit全探索の改良版
        全探索させたら2進数のリストと10進数のリストを返す
        :return: list２つ : １個目 2進数(16桁)  2個目 10進数
        """
        # 参考
        # https://blog.rossywhite.com/2018/08/06/bit-search/
        # https://atcoder.jp/contests/abc105/submissions/4088632
        value = []
        for i in range(1 << len(a)):
            output = []

            for j in range(len(a)):
                if self.bit_o(i, j):
                    """右からj+1番目のiが1かどうか判定"""
                    # output.append(a[j])
                    output.append(a[j])
            value.append([format(i, 'b').zfill(16), sum(output)])

        value.sort(key=lambda x: x[1])
        bin = [value[k][0] for k in range(len(value))]
        val = [value[k][1] for k in range(len(value))]
        return bin, val

    def S(self, s, r=0, m=-1):
        """
        ソート関係行います。色々な設定あります。
        :param s: 元となるリスト
        :param r: reversするかどうか 0=False 1=True
        :param m: （2次元配列）何番目のインデックスのソートなのか
        :return: None
        """
        r = bool(r)
        if m == -1:
            s.sort(reverse=r)
        else:
            s.sort(reverse=r, key=lambda x: x[m])

    def bit_n(self, a, b):
        """
        bit探索で使います。0以上のときにTrue出します
        自然数だからn
        :param a: int
        :param b: int
        :return: bool
        """
        return bool((a >> b & 1) > 0)

    def bit_o(self, a, b):
        """
        bit探索で使います。1のときにTrue出すよ
        oneで1
        :param a: int
        :param b: int
        :return: bool
        """
        return bool(((a >> b) & 1) == 1)

    def ceil(self, x, y):
        """
        Round up
        小数点切り上げ割り算
        :param x: int
        :param y: int
        :return: int
        """
        return -(-x // y)

    def ave(self, a):
        """
        平均を求めます
        :param a: list
        :return: int
        """
        return sum(a) / len(a)

    def gcd(self, x, y):
        if y == 0:
            return x
        else:
            return self.gcd(y, x % y)


"""ここからメインコード"""


def main():
    # 1文字に省略
    r, e, p = range, enumerate, print
    ip = IP()
    id = Idea()
    mod = 10 ** 9 + 7

    """この下から書いてね"""
    a, b = ip.IL()
    p(id.ceil(a + b, 2))



main()

Submission status: Accepted

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

ans = (a+b)/2

print(math.ceil(ans))

Submission status: Accepted

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

mean = (int(in_list[0])+int(in_list[1]))/2

if (mean-int(mean))==0:
    print(int(mean))
else:
    print(int(mean)+1)

Submission status: Accepted

Solution code:
import math
a,b = [int(x) for x in input().split()]
 
print(math.ceil((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:
import math
a,b = map(int, input().split())
x = math.ceil((a + b) / 2)
print(x)

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:
print((sum(map(int,input().split()))-1)//2+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = sum(int(i) for i in input().split())
print(a//2+a%2)

Submission status: Accepted

Solution code:
import math
print(math.ceil(sum([int(i) for i in input().split()] )/ 2))

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math


a,b = map(int, sys.stdin.readline().rstrip().split())
print(math.ceil(sum([a,b])/2))

Submission status: Accepted

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

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

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

import math
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+1)//2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import functools

import os

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 debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def ceil(n): # ceiling関数
    if n > int(n):
        return(int(n)+1)
    else:
        return(int(n))
a,b = map(int,input().split())
print(ceil((a+b)/2))

Submission status: Accepted

Solution code:
# ABC082A - Round Up the Mean
from math import ceil

a, b = list(map(int, input().rstrip().split()))
print(ceil((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+1)//2)

Submission status: Accepted

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

Submission status: Accepted

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

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+1)/2))

Submission status: Accepted

Solution code:
# 2019/04/19
# AtCoder Beginner Contest 082 - A

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

# Calc
ans = int((a + b) / 2 + 0.5)

# Output
print(ans)

Submission status: Accepted

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

if (a + b) % 2 >= 0.5:
    print(int((a + b) / 2 + 1))
else:
    print(int((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:
import math
import statistics as st

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

print(math.ceil(st.mean((a,b))))

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:
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())
if (a + b) % 2 == 0:
    print(int((a + b) / 2))
else:
    print(int((a + b + 1) / 2))

Submission status: Accepted

Solution code:
import math

a_b_str = input().split()
a_b_int = [int(s) for s in a_b_str]

a = a_b_int[0]
b = a_b_int[1]

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

Submission status: Accepted

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

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:
#coding: utf-8
from  math import ceil
A =  list(map(int, input().split()))
print(ceil(sum(A) / len(A)))

Submission status: Accepted

Solution code:
# coding:UTF-8
import math
work = input().split(" ")
a = int(work[0])
b = int(work[1])
print(math.ceil((a+b)/2))

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:
a,b = map(int ,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
a,b = map(int,input().split())
ave = (a+b+1)//2 
print(ave)

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 = map(int, input().split())
c = math.ceil((a + b)/2)
print("{}".format(c))

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
c = -(-(a + b)//2)
print("{}".format(c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

import math

def io_generator():
	return input()

#+++++++++++++++++++

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

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

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
a,b=map(int,input().split())
c=math.ceil((a+b)/2)
print(c)

Submission status: Accepted

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

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())
print(math.ceil((a + b)/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:
import math
a, b = [int(item) for item in input().split()]
print(math.ceil((a+b) / 2))

Submission status: Accepted

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

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

Submission status: Accepted

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

print(answer)

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

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

Submission status: Accepted

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

if check == 0:
    print(calc)
else:
    calc += 1
    print(calc)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys
input=sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a , b = map(int,input().split())
print(int((a+b)/2)) if (a+b)%2==0 else print(int((a+b+1)/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())
if (a+b)%2==1:
    print((a+b+1)//2)
else:
    print((a+b)//2)

Submission status: Accepted

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

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(float, input().split())

x=(a+b)/2

if x%2==0:
    print(int(x))
else :
    print(int(x+0.5))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
q, mod = divmod(a+b, 2)
print(q if mod==0 else q+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+1)//2
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import ceil


def solve(string):
    a, b = map(int, string.split())
    return str(ceil((a + b) / 2))


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

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

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:
import math as Math
a,b = map(int,input().split())
x = (a + b) / 2
print(Math.ceil(x))

Submission status: Accepted

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

Submission status: Accepted

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

print(-(-(a+b)//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())
sum = a + b
if sum % 2 == 0:
    print(sum//2)
else:
    print(sum//2 + 1)

Submission status: Accepted

Solution code:

ab=list(map(int,input().split()))
m=ab[0]+ab[1]
if m%2==0:
  m=m/2
else:
  m=(m+1)/2
print(int(m))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import exit
import math
A,B = [int(n) for n in input().split()]
# N = int(input())
# a = [int(input()) for _ in range(N)]
# S = str(input())
# L = len(S)
# T = str(input())
print(math.ceil((A+B)/2))
exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import ceil
print(ceil(eval(input().replace(' ','+'))/2))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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


def func(a, b):
    result = int((a+b)/2 + 0.5)
    return result


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

print(func(a, b))

Submission status: Accepted

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

Submission status: Accepted

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

import math


def func(a, b):
    result = math.ceil((a+b)/2)
    return result


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

print(func(a, b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc082/tasks/abc082_a

import itertools
import collections
import bisect
import math
import sys
input = sys.stdin.readline

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def round_up_the_mean(a: int, b: int) -> int:
    return (a + b) // 2 if (a + b) % 2 == 0 else (a + b) // 2 + 1


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

Submission status: Accepted

Solution code:
s=sum(map(int,input().split()));print(s//2+int(bin(s)[-1]))

Submission status: Accepted

Solution code:
n,m = map(int,input().split())
print(-1*(-1*(n+m)//2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS(): return sys.stdin.readline().split()
def S(): return list(sys.stdin.readline())
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
mod = 1000000007
 
#A
a, b = LI()
print((a+b+1)//2)

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS(): return sys.stdin.readline().split()
def S(): return list(sys.stdin.readline())
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
mod = 1000000007

#A
a, b = LI()
print((a+b+1)//2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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


if __name__ == '__main__':
    A();