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] = SR()
    return l
mod = 1000000007

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

#B
def B():
    s = S()
    t = S()
    s.sort()
    t.sort()
    t = t[::-1]
    l = [s,t]
    l.sort()
    if l[0] == s:
        print("Yes")
    else:
        print("No")
#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
a, b = map(int, input().split())
print([(a + b) // 2 + 1, (a + b) // 2][(a + b) % 2 == 0])

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

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

Submission status: Accepted

Solution code:
import math
from sys import stdin

a,b=[int(x) for x in stdin.readline().rstrip().split()]
print(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())
c=(a+b)/2
d=(a+b)//2
print(d if c==d else d+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 = math.ceil((a+b)/2)
print(c)

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 22:23:09 2019

@author: yuta
"""
import math

def pmean(a,b):
    x = math.ceil((a + b)/2)
    print(x)

c = input().split()
pmean(int(c[0]),int(c[1]))

Submission status: Accepted

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

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

print(ans)
print()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
#integer
#fractional part
all=(a+b)/2
i=int(all)
f=all-i
#print(f)

if(f>0):
    print(i+1)
else:
    print(i)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
#integer
#fractional part
all=(a+b)/2
i=int(all)
f=all-i
#print(f)

if(f>=0.5):
    print(i+1)
else:
    print(i)

Submission status: Accepted

Solution code:
import math
import numpy as np
import sys
input = sys.stdin.readline
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

a,b = IL()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from statistics import mean
import math
l=list(map(int,input().split()))
print(math.ceil(mean(l)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
X=str((a+b)*5)
x=int(X[-1])
if x>=5:
    print((a+b)//2+1)
else:
    print((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:
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:
s=input()
(a,b)=s.split()
a=int(a)
b=int(b)
x=(a+b)/2
x+=0.5
x=int(x)
print(x)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
int_a, int_b = map(int, input().split())

print(math.ceil((int_a + int_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())

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

print(x)

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

Submission status: Accepted

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

Submission status: Accepted

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

def floor(i):
  if i == int(i):
    return int(i) 
  else:
    return int(i) + 1
print(floor( (a+b) / 2) )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# encoding:utf-8

import copy
import numpy as np
import random

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

round = lambda x:(x*2+1)//2

print("{0:.0f}".format(round((a+b)/2)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

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

mean    = np.mean(l)
integer = int(mean)
decimal = mean - integer

j = decimal * 10

if j >= 5 :
    res = integer + 1
else :
    res = integer

print(res)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
""" AtCoder """

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

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

Submission status: Accepted

Solution code:
import numpy as np

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

Submission status: Accepted

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

val = (-a - b) // 2
print(-val)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal,ROUND_HALF_UP

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

from math import ceil

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

Submission status: Accepted

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

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

avg = (a + b) / 2

print(str(int(avg)) if avg % 1 == 0.0 else str(int(avg) + 1))

Submission status: Accepted

Solution code:
import math
import sys


def dudge_answer(a, b):
    ave = (a+b)/2
    return math.ceil(ave)

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

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=eval(input().replace(' ','+'))
print(x//2 if x%2==0 else x//2+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

lines = sys.stdin.readlines()

for n, line in enumerate(lines):
  a, b = [int(_) for _ in line.strip().split(' ')]
  print((a+b+1)//2)

Submission status: Accepted

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

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

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

print(int(ans))

Submission status: Accepted

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

def main():
    sa = input().split(' ')
    a = int(sa[0])
    b = int(sa[1])

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


abc082_a()

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

Submission status: Accepted

Solution code:
from math import ceil


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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
# coding: utf-8
import math

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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())
if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print(((a + b) // 2 + 1))

Submission status: Accepted

Solution code:
# Round Up the Mean
print((lambda x: x//2 if x % 2 == 0 else x//2+1)(sum(map(int, input().split()))))

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import sys
import math

n=input().split()
a = []
for i in range(len(n)):
    a.append(int(n[i]))
if (a[0]+a[1])%2 :
    print(int((a[0]+a[1]+1)/2))
else: print(int((a[0]+a[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:
a, b = map(int, input().split())

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

Submission status: Accepted

Solution code:
import math
a,b=[int(i) for i in 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())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a=input().strip().split(" ")

b=[int(i) for i in a]

c=b[0]+b[1]

c=c*(-1)

print(-1*(c//2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

import math

#整数a,bを読み込む
a, b = map(float, input().split())

#範囲チェック→今回はエラー処理がないため実装せず

#平均を出して切り上げ
val_ave = math.ceil((a+b)/2)

#表示
print(val_ave)

Submission status: Accepted

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

if int(sum(ab)/2) < (sum(ab))/2:
    print( int(sum(ab)/2)+1)
else:
    print( int(sum(ab)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Nov  3 09:19:07 2018

@author: sk
"""

     
      
b, c = map(int, input().split())
     
s=0.5*(b+c)
     
d = int(s)
    
if s-d > 0:
    v=int(d+1)
else :
    v=int(d)
print(v)

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
import math
ans = math.ceil((a+b)/2)
print(ans)
"""
if a != b:
  print(int((a+b)/2) + 1)
else:
  print(a)
"""

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

else:
    print(y + 1)

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

c = (a+b)/2
if (c-int(c))*10 >=5:
  print(int(c)+1)
else:
  print(int(c))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding: utf-8
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:
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())
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
if s % 2 == 0:
	print(s//2)
else:
	print((s+1)//2)

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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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 == 1:
    d = int((a + b)/2) + 1
    print(d)
else:
    print(int((a + b)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,m = map(int, input().split())

print(-(-(n+m)//2))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

ans = int((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-1)//2
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
x = (a + b) // 2 + (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:
#!/usr/bin/python3

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

a,b = inpl()
print(int((a+b)/2+0.5))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect

def ln():
    return map(int, input().split())

a,b = ln()
print(-(-(a+b)//2))

Submission status: Accepted

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

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