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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
s = int((a+b+1)/2.0)
print(s)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
x = -(-sum(i) // 2)
print(x)

Submission status: Accepted

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

Submission status: Accepted

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

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:
a, b = (int(x) for x in input().split())
c = int((a + b) / 2)
d = (a + b) / 2 - c
if d > 0:
  print(c + 1)
else:
  print(c)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
ab = input().rstrip().split(" ")
print(int(((int(ab[0]) + int(ab[1])) + 2 - 1) / 2))

Submission status: Accepted

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

sum = a + b

if sum % 2:
  print((sum//2) + 1)
else:
  print(sum//2)

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 24,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n, a = map(int, readline().rstrip().split())


ans = int((n+a+1)/2)

print(ans)

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 24,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n, a = map(int, readline().rstrip().split())


print(int((n+a+1)/2) if (n+a) % 2 == 1 else int((n+a)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math as math
nums = input()
a, b = map(int, nums.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  = list(map(int, input().split()))
i, j = str((a+b)/2).split(".")
add = 0 if int(j) == 0 else 1                                                                                                                                                                                                                 
print(int(i)+add)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
# abcxxx a
#
import unittest
from io import StringIO
import sys


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


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


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """1 3"""
        output = """2"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """7 4"""
        output = """6"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """5 5"""
        output = """5"""
        self.assertIO(input, output)


if __name__ == "__main__":
    #unittest.main()
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

import math

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

avg = (a + b) / 2

print(math.ceil(avg))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# a,bを入力
a, b = map(int, input().split())
#小数点以下が0のとき
if (a + b) % 2 == 0:
    print(int((a + b) / 2))
#小数点以下が0以外のとき
else:
    print(int((a + b + 1) / 2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC082 A Round Up the Mean
import math
a,b = map(float,input().split())
x = (a+b)/2
print(math.ceil(x))

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,open(0).read().split())

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

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:
def ceil(a):
  if int(a) == a:
    return int(a)
  else:
    return int(a) + 1

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

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

Submission status: Accepted

Solution code:
import math
INPUT = list(map(int,input().split()))
a=INPUT[0]
b=INPUT[1]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    print(int((a+b)/2+(a+b)%2))
if __name__ == '__main__':
    do()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

aa082()

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:
def slove():
    import sys
    input = sys.stdin.readline
    t = sum(list(map(int, input().rstrip('\n').split())))
    print((t + 1) // 2)


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
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:
  print((a+b)//2 + 1)
else:
  print((a+b)//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x,y = map(int,input().split())

a = float((x + y) / 2)

print(math.ceil(a))
#切り上げ切り捨ては標準モジュールがあるからそれを使う

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
print(math.ceil((sum(list(map(int,input().split()))))/2))

Submission status: Accepted

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

Submission status: Accepted

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

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

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
s = list(map(int, input().split()))
print(math.ceil(sum(s) / len(s)))

Submission status: Accepted

Solution code:
x=list(input().split())
x1=int(x[0])
x2=int(x[1])

ave=-(-(x1+x2)//2)
print(ave)

Submission status: Accepted

Solution code:
# ARC 082 A

def resolve():
  a, b = map(int, input().split())
  x = int(((a + b) / 2.0) + 0.5)
  print(x)


if __name__ == "__main__":
    resolve()

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

print((a+b+1)//2)
#敗北の翁

Submission status: Accepted

Solution code:
M,N=[int(x) for x in input().split()]
print((M+N+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:
import math
a,b = map(int, input().strip().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:
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())
x = (a+b)/2
print(int(-(-x//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:
def solve():
    a, b = list(map(int, input().split()))
    S = a + b
    T = 2
    ave = int((S + T - 1) / T)
    print(ave)

solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

X = a + b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
n = (A + B) // 2
print(n if n == (A + B) / 2 else n+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 sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
a,b=map(int,input().split())
print(-((-b-a)//2))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# import
import math

# 入力を受け取る
a, b = map(int, input().split())

# xを浮動小数点で得る
x = (a + b) / 2

# 小数点を切り上げる
ceil_x = math.ceil(x)

# 表示する
print(ceil_x)

Submission status: Accepted

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

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())
import math
print(int(math.ceil((a+b)/2)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
if __name__ == '__main__':
    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)//2,(a+b)//2+1][(a+b)%2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())

## 数値
 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""


A, B =  list(map(int, sys.stdin.readline().split()))
print(math.ceil((A + B) / 2) )

Submission status: Accepted

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

Submission status: Accepted

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

res = (A+B-1)//2+1
print(res)

Submission status: Accepted

Solution code:
import math
S = input().split()
A, B = int(S[0]), int(S[1])
mean = (A + B) / 2
print(math.ceil(mean))

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

if x - int(x) == 0:
    print(int(x))
else:
    print(int(x) + 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:
a, b = map(int, input().split())

from math import ceil
print(ceil((a + b) / 2))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = [int(_) for _ in input().split()]
if len(a) == 2 and all(1 <= item <= 100 for item in a):
    if (a[0] + a[1]) % 2 == 0:
        print((a[0] + a[1]) // 2)
    else:
        print((a[0] + a[1]) // 2 + 1)
else:
    print('hoge!')

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:
a,b=map(int,input().split())
ave=(a+b)/2
if ave%1 !=0:
	print(int(ave//1+1))
else:
	print(int(ave//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:
num = input().split()
print((int(num[0])+int(num[1])+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:
import math

ab = list(map(int, input().split()))
x = sum(ab)/len(ab)

print(math.ceil(x))

Submission status: Accepted

Solution code:
import math


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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
import sys
import  math
from statistics import *
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(-int(-sum(map(int,input().split())) // 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:
line = input().split()
a = int(line[0])
b = int(line[1])
ans = 0

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

print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

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())
print(-(-(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 numpy as np
a,b = input().split()
print(int(np.ceil((int(a)+int(b))/2)))

Submission status: Accepted

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

Submission status: Accepted

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

a, b = map(int, input().split())
x = (a + b) / 2
# https://qiita.com/sak_2/items/b2dd8bd1c4e4b0788e9a
round = lambda x: int((x * 2 + 1) // 2)
print(round(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x = (a+b)/2

import math
print( math.ceil(x))

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

Submission status: Accepted

Solution code:
print((sum(int(tok) for tok in input().split()) + 1) // 2)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#coding:utf-8
a, b = map(int, input().split())
#切り上げなので1を加算
print((a + b + 1) // 2)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    x,y = map(int,input().split())
    s=(x+y)/2
    ans=0
    while(s>0):
        s-=1
        ans+=1
    print(ans)
main()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

c = a + b

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

Submission status: Accepted

Solution code:
import math

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


if __name__ == "__main__":
    test()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-S
a,b = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

print((-(a+b)//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:
import math

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

c = (a+b)/2

print(math.ceil(c))

Submission status: Accepted

Solution code:
import math

ab = input().split()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main(a: int, b: int):
    return ((a + b + 1) // 2)


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

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)//2+1 if (a+b)%2 else (a+b)//2)