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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# cook your dish here
x,y = map(int,input().split())
print((x+y)//2)

Submission status: Wrong Answer

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

z = (x+y) / 2
a = round(z)
print(a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

    x = ((a + b) // 2) + 1
    print(x)
solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

print(sum(ab) // 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from statistics import mean 
L=list(map(int,input().split()))
print(int(mean(L))+1)

Submission status: Wrong Answer

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

c = a+b

d = round(c)

print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 文字列の入力
s = raw_input()

ret=len([x for x in list(s) if x == '1'])
print ret

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
digits = input('')
digits = digits.split(' ')
average = round((int(digits[0]) + int(digits[1])) / 2)
print(average)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#A - Round Up the Mean
#整数の入力
a,b = map(int,input().split())

#平均値計算
c = (a+b)/2 

#判定繰り上げ
if (a+b)%2 ==0:
    print(c)
else:
    print((a+b+1)/2)

Submission status: Wrong Answer

Solution code:
#A - Round Up the Mean
#整数の入力
a,b = map(int,input().split())

#平均値計算
c = (a*b)/2 

#判定繰り上げ
if a*b%2 ==0:
    print(c)
else:
    print((a*b+1)/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n = (a + b) / 2
print(round(n))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

stdin = sys.stdin

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

average = (a + b) // 2

print(average)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

if __name__ == "__main__":
	print("--2つの整数を入力する--")
	a, b = map(int, input().split())
	
	print( math.ceil( (a + b ) / 2) )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

import sys

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

Submission status: Wrong Answer

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

print(round(c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
a, b = map(int, sys.stdin.readline().split())
print(round((a+b)/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input().split())
if (a + b) % 1:
    print str(a + b)
else:
    print str(a + b - 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ab = input().split()
a = float(ab[0])
b = float(ab[1])
x = (a + b) / 2

print(round(x))

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/user/bin/python
# coding: UTF-8

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/user/bin/python
# coding: UTF-8

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s, t = input().split()
s = list(s)
s.sort()
t = list(t)
t.sort(reverse = True)
if t>s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/user/bin/python
# coding: UTF-8

a, b = map(int, input().split())
ave = (a + b)/2
print(round(ave), 0)

Submission status: Wrong Answer

Solution code:
from statistics import mean

print(round(mean(list(map(int, input().split())))))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if((a < 1 or 100 < a) or (b < 1 or 100 < b)):
	exit(0)
x = int(round((a+b) / 2))

print(x)

Submission status: Wrong Answer

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

x = int(round((a+b) / 2))

print(x)

Submission status: Wrong Answer

Solution code:
import math

def solv():
    a, b = map(int, input().split())
    x = (a + b)/2
    print(math.floor(x))

if __name__ == '__main__':
    solv()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/user/bin/python
# coding: UTF-8

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

Submission status: Wrong Answer

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

x = round((a+b) / 2)

print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
st=input().split()
a=int(st[0])
b=int(st[1])
print(round((a+b)/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=input()
B=A.split(" ")
a=int(B[0])
b=int(B[1])
c=a+b
import math
avg=math.floor(c/2)+1
print(avg)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
st=input().split()
a=int(st[0]);b=int(st[1])
print(round((a+b)/2))

Submission status: Wrong Answer

Solution code:
import math
if __name__=="__main__":
    a = list(map(int,input().split(" ")))
    b = (a[0]+a[1])/2
    if b-a[0]>=a[1]-b:
        print(math.floor(b))
    else:
        print(math.floor(b)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

# 出力
print(round((a+b)/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
print(int(round((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:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def I():
    #1 line 1 int
     return int(sys.stdin.readline().rstrip())
def LI():
    #1 line n int
     return list(map(int,sys.stdin.readline().rstrip().split()))
def S():
    #1 line 1 string
     return sys.stdin.readline().rstrip()
def LS():
    #1 line n strings
     return list(sys.stdin.readline().rstrip().split())

A,B,=LI()
x=A+B

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def I():
    # 1 line 1 int
    return int(sys.stdin.readline().rstrip())
def LI():
    # 1 line n ints
    return list(map(int,sys.stdin.readline().rstrip().split()))
def S():
    # 1 line 1 string
    return sys.stdin.readline().rstrip()
def LS():
    # 1 line n strings
    return list(sys.stdin.readline().rstrip().split())

a, b = LI()
x = a + b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 6)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"
AL = al.upper()

a,b = I()
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print((a+b+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:
#!/usr/bin/env python3
import math
import sys
sys.setrecursionlimit(10**6)

a, b = list(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:
lst = input().split()
a = int(lst[0])
b = int(lst[1])

v1 = (a + b) / 2
v2 = (a + b) // 2

if v1 == v2:
   print(v2)
else:
   print(v2 + 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())
ans = (-(a+b))//2

print(-ans)

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

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())
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
# import statistics
# a=input()
#b,c=int(input()),int(input())
# c=[]
# for i in a:
#    c.append(i)
e1,e2 = map(int,input().split())
#f = list(map(int,input().split()))
#g = [input() for _ in range(a)]
print(math.ceil((e1+e2)/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 = 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:
import math
print(math.ceil((eval(input().replace(' ','+'))/2)))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

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


if __name__ == '__main__':
    main()

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 + 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

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

print(math.ceil(x))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if (a%2 == 0 and b%2 == 0) or (a%2 == 1 and b%2 == 1):
    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 == 1:
    print((A+B)//2+1)
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 numpy as np
X = np.array([int(x) for x in input().split()])
ans = np.ceil(np.mean(X))
print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
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())
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())

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

Submission status: Accepted

Solution code:
#n = int(input())
a, b = map(int, input().split())
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
v = (a+b)//2
mod = (a+b) % 2
if mod == 0:
    print(v)
else:
    print(v+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import numpy as np
import sys, math
from itertools import permutations, combinations
from collections import defaultdict, Counter, deque
from math import factorial, gcd
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(10 ** 7)
enu = enumerate
MOD = 10 ** 9 + 7
input = lambda: sys.stdin.readline()[:-1]
pl = lambda x: print(*x, sep="\n")

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

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

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

Submission status: Accepted

Solution code:
import math
a, b = (int(t) for t in 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 - 1)) // 2)

Submission status: Accepted

Solution code:
import sys
import math

sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inl = lambda: [int(x) for x in sys.stdin.readline().split()]
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))

a, b = inl()

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

Submission status: Accepted

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

x = a + b

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

print(str(multi))

Submission status: Accepted

Solution code:
import math


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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
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:
import decimal

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

num = decimal.Decimal((a + b) / 2)

ans = int(num)
if num % 1 != 0:
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

if (a+b)%2==0:
  print("{:.0f}".format((a+b)/2))
else:
  print("{:.0f}".format((a+b)/2-0.5+1))