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

Submission status: Accepted

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

Submission status: Accepted

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

if (a+b) % 2 == 1:
    print(int((a+b+1)/2))
else:
    print(int((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,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("{}".format(int((a+b+2-1)/2)))

Submission status: Accepted

Solution code:
# 入力 : 数字2つ
a, b = map(int, input().split())

# 出力 : 平均の切り上げ
print(int((a+b+1)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
x = (a+b)/2
# print(x)
m, n = divmod(x,1)
# print("{},{}".format(m,n))
if n>0:
    ans = m+1
else:
    ans = m
print(int(ans))

Submission status: Accepted

Solution code:
print((sum(list(map(int,input().split())))+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:
import math

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

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

Submission status: Accepted

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

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

hei = (a+b) % 2
ans = (a+b)//2

if hei == 0:
  print(ans)
else:
  print(ans+1)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
x = (a+b)//2
if (a+b)%2 == 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())
ans=(a+b+2-1)//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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

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


print(math.ceil(x))

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:
from math import ceil
from statistics import mean

ab = list(map(int, input().split()))
print(ceil(mean(ab)))

Submission status: Accepted

Solution code:
import math
import statistics

ab = list(map(int, input().split()))
print(math.ceil(statistics.mean(ab)))

Submission status: Accepted

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

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

Submission status: Accepted

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

ave = (a + b + 1)//2

print(str(ave))

Submission status: Accepted

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

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(float,input().split())
if (a+b)%2 == 1:
    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())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
c = math.ceil((a+b)/2)
print(c)

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

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

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 29, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A, B = map(int, readline().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
x=(a+b)/2
# print(x*10)
if x*10%10 == 0:
    answer = (a+b)//2
elif 1 <= x*10%10 and x*10%10 < 5:
    answer = (a+b)//2
else:
    answer = (a+b)//2 + 1

print(answer)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(ans)

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

Submission status: Accepted

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

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

ans = (a + b + 2 - 1) // 2

print(ans)

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
i = list(map(int,input().split()))

x = (i[0] + i[1]) / 2.0

print(math.ceil(x))

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

Submission status: Accepted

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

Submission status: Accepted

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

c = (a+b)/2

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

Submission status: Accepted

Solution code:


import numpy as np

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

Submission status: Accepted

Solution code:
import math

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

    avg = (a + b) / 2

    print(math.ceil(avg))

if __name__ == '__main__':
    main()

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:
import math

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

ave = (a + b) / 2

print( math.ceil(ave))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
num = input().split()
num_i = [int(s) for s in num]

x = (num_i[0]+num_i[1])/2
print(math.ceil(x))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# "//"は商を求める演算子
x = (a + b + 1) // 2
print(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:
import math

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
a, b = map(int,input().split())
ab = a+b
if ab%2 == 0:
    print(ab//2)
else:
    print(ab//2+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:
a, b = map(int, input().split())
x = int((a+b+2-1)/2)
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:
#!/usr/bin/python3
# vim: set fileencoding=utf-8:
import sys
import math
input = sys.stdin.readline


def round(x): return (x*2+1)//2

"""
H = int(input())
h = [int(ele) for ele in input().split()]
h = [0] + h
"""


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


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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
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())
print((a + b) // 2) if(a + b) % 2 == 0 else print((a + b) // 2 + 1)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from statistics import mean
from math import ceil

data = list(map(int, list(input().split())))
print(ceil(mean(data)))

Submission status: Accepted

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

Submission status: Accepted

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

n=a+b

print(-(-n//2))

Submission status: Accepted

Solution code:


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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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 sys import stdin
from math import ceil
#stdin = open("input.txt")

if __name__ == "__main__":
    a, b = [int(item) for item in stdin.readline().split()]
    
    print(ceil((a + b)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(float,input().split())
x = (a+b) / 2
y = (a+b) % 2
if y > 0:
  x += 0.5
print(int(x))

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return ((a + b) + 2 - 1) // 2

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = [int(i) for i in input().split()]
print(-(-(num[0]+num[1])//2))

Submission status: Accepted

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

Submission status: Accepted

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

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:
import math

a, b = map(int, input().split())
print(-((a + b) * (- 1) // 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
import sys

a, b = map(int, sys.stdin.readline().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

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

a, b = MAP()
print(ceil((a+b)/2))

Submission status: Accepted

Solution code:
# Problem https://atcoder.jp/contests/abc082/tasks/abc082_a
# Python 3rd Try
from math import ceil


def ceil2number(a, b):
    result = 0
    c = (a + b) / 2
    result = ceil(c)
    return result


if __name__ == "__main__":
    answer = 0
    a, b = map(int, input().split(' '))
    answer = ceil2number(a, b)
    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:
# Problem https://atcoder.jp/contests/abc082/tasks/abc082_a
# Python 2nd Try


def solver(a, b):
    answer = 0
    answer = (a + b + 1) // 2
    return answer


if __name__ == "__main__":
    a, b = map(int, input().split(' '))
    answer = 0
    answer = solver(a, b)
    print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import math
def round_up_mean(a,b):
#  ans = math.ceil((a+b)/2)
#  print(ans)
  ans = -(-(a+b)//2)
  print(ans)

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

Submission status: Accepted

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

av = int((a+b)%2)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect, string
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**7)
inf = float('inf')
mod = 10**9+7
ans = inf ;count = 0 ;pro = 1

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(int(x))

Submission status: Accepted

Solution code:
import math

a, b = [int(num) for num in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

t = (s[0] + s[1]) / 2
print(math.ceil(t))

Submission status: Accepted

Solution code:
# Problem https://atcoder.jp/contests/abc082/tasks/abc082_a
# Python 1st Try


def orginalCeil(a, b):
    c = (a + b + 1) // 2
    return c


if __name__ == "__main__":
    a, b = map(int, input().split(' '))
    answer = orginalCeil(a, b)
    print(answer)
exit

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[print(math.ceil(eval(input().replace(" ", "+")) / 2)) for math in [__import__("math")]]

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))
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(- int((-b-a)//2) )

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC082a
from math import ceil
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)


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:
##### 解けた #####
from math import ceil

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

print(ceil((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 as m

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

Submission status: Accepted

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

adivb =((a+b)//2) 
addition = ((a+b)%2)

print((adivb)+(addition))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a, b = list(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:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN

a,b=map(int,input().split())
x=Decimal((a+b)/2).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
print(x)

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 -*-
import math

# 入力
#N = str(input())
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())
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())
import numpy as np
print(int(np.ceil((a+b)/2)))

Submission status: Accepted

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

Submission status: Accepted

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

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:
#082a
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

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

print(x)

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 examA():
    a, b = LI()
    ans = (a+b+1)//2
    print(ans)


import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

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

Submission status: Accepted

Solution code:


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

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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


#a/bの結果を小数点以下切り上げ
import math
print(math.ceil((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
b = (a[0] + a[1]) // 2	#商
c = (a[0] + a[1]) % 2	#余り
if c != 0:
	print(b + 1)
else:
	print(b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
inputs = input().rstrip().split(' ')
a = int(inputs[0])
b = int(inputs[1])
print(math.ceil((a + b) / 2))

Submission status: Accepted

Solution code:
#Round Up the Mean
a, b = map(int, input().split())
S = a + b
if S % 2 == 1:
    S = S + 1
print(int(S/2))

Submission status: Accepted

Solution code:
import sys
# import collections
import math
# import string
# import bisect
# import re
# import itertools
# import statistics

def main():
    a, b = (int(x) for x in sys.stdin.readline().split())
    ans = math.ceil((a + b) / 2)
    print(ans)


if __name__ == "__main__":
    # execute only if run as a script
    main()

Submission status: Accepted

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

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