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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
x = (a + b) / 2.0
import numpy as np
print(int(np.ceil(x)))

Submission status: Accepted

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

if ave - int(ave) > 0:
    ave = int(ave) + 1
else:
    ave = int(ave)

print(ave)

Submission status: Accepted

Solution code:
import math

def main():
  n, c = input().split()
  
  ans = (int(n) + int(c)) / 2

  print(math.ceil(ans))

if __name__ == "__main__":
    main()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

import math

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

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

def solv():
    a, b = map(int, input().split())
    x = (a + b)/2
    if (math.floor(x * 10) % 10 >= 5):
        print(math.floor(x)+1)
    else:
        print(math.floor(x))

if __name__ == '__main__':
    solv()

Submission status: Accepted

Solution code:
import math

A, B=list(map(int, input().split()))
# A = 5
# B = 5
print(math.ceil((A+B)/2))

Submission status: Accepted

Solution code:
import math
roundx = lambda x:(x*2+1)//2
m = roundx(sum(list(map(int, input().split())))/2)

print(int(m))

Submission status: Accepted

Solution code:
# coding: utf-8
import math

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

Submission status: Accepted

Solution code:
import math

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

x = (a+b)/2

if a % 2 == 0 and b % 2 ==0:
	print(int(x))

if a % 2 == 1 and b % 2 ==0:
	print(int(x+0.5))

if a % 2 == 0 and b % 2 ==1:
	print(int(x+0.5))

if a % 2 == 1 and b % 2 ==1:
	print(int(x))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ans = (a + b) / 2
if str(ans)[len(str(ans))-1] == "5":
    ans += 0.5
print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

print(T)

Submission status: Accepted

Solution code:
a,b = list(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:
# -*- coding: utf-8 -*-
import math
A, B = map(int, input().split(" "))

print(math.ceil((A+B)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

c = a + b
d = c/2

x = math.ceil(d)

print(x)

Submission status: Accepted

Solution code:
import math

numbers = [int(i) for i in input().split()]
ans = math.ceil((numbers[0]+numbers[1])/ 2)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

c = (a + b) / 2

if c > int(c):
    print(int(c + 1))
else:
    print(int(c))

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

print(ans)

Submission status: Accepted

Solution code:
import math

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

res = math.ceil((a + b) / 2.0)
print(res)

Submission status: Accepted

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

Submission status: Accepted

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

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

val=(a+b)/2

if(val*10%10>=5):
    print(int(val)+1)
else:
    print(int(val))

Submission status: Accepted

Solution code:
import math


def my_round(x, d=0):
    p = 10 ** d
    return float(math.floor((x * p) + math.copysign(0.5, x))) / p


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


solve()

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import math

x,y=[int(i) for i in input().split()]
ans = math.ceil((x+y)/2.0)
print(ans)

Submission status: Accepted

Solution code:
# coding:utf-8
a, b = list(map(float, input().split()))
c = (a + b)/2
c_int = int(c)
if c > c_int:
    print(c_int+1)
else:
    print(c_int)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, input().split())
    x = A + B
    print((x + 1) // 2)

main()

Submission status: Accepted

Solution code:
import sys
import math

line = sys.stdin.readline().strip()
a, b = [int(x) for x in line.split()]
r = -math.floor(-(a + b) / 2)
print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[A, B] = map(int,raw_input().split())

#print A, B

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

Submission status: Accepted

Solution code:
import math

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

a = A1[0]*1.0
b = A1[1]*1.0

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

Submission status: Accepted

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

Submission status: Accepted

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

import numpy as np
import math

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

if __name__ == "__main__":
    ab = input().split()
    a = int(ab[0])
    b = int(ab[1])
    print(slove(a, b))

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())
tmp = (a+b) / 2
if int(str(tmp).split('.')[-1]) > 4:
    print(int(tmp+1))
else:
    print(int(tmp))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, b = map(int, input().split())
print((a + b + 1) // 2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
# num = int(input())
#
num = [int(x) for x in input().split()]
#
# val = input().split()
#
# val = input()

print(math.ceil((num[1]+num[0])/2))

Submission status: Runtime Error

Solution code:
s = list(input())
t = list(input())

ss = sorted(s)
tt = sorted(t, reverse=True)

sa = ''.join(ss)
ta = ''.join(tt)

if sa < ta:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(input())
t=list(input())
sv=sorted(s)
tv=sorted(t)
if sv<tv:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(round((a + b) / 2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = sorted(input())
t = sorted(input(),reverse=True)
if(s < t): print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
s = sort(input())
t = sorted(input(),reverse = True)
if(s < t): print("Yes")
else: print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = list(map(int, input().split(' ')))
avg = (a+b)/2
diff = [0]*(b-a+1)
for i in range(a, b+1):
  diff[i-a] = abs(avg - i)
minimum = min(diff)

if minimum==0.5:
  print(int(avg+0.5))
elif minimum==0:
  print(int(avg))

Submission status: Runtime Error

Solution code:
a, b = list(map(int, input().split(' ')))
avg = (a+b)/2
diff = [0]*(b-a+1)
for i in range(a, b+1):
  diff[i-a] = abs(avg - i)
minimum = min(diff)

if minimum==0.5:
  print(int(avg+0.5))
elif minimum==0.0:
  print(int(avg))

Submission status: Runtime Error

Solution code:
a, b = list(map(int, input().split(' ')))
avg = (a+b)/2
diff = [0]*(b-a+1)
for i in range(a, b+1):
  diff[i-a] = abs(avg - i)
minimum = min(diff)

if minimum==0.5:
  print(int(avg+0.5))
elif mimimum==0.0:
  print(int(avg))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(str(multi))

Submission status: Runtime Error

Solution code:
s=list(input())
t=list(input())

s.sort()
t.sort()
t.reverse()

for i in range(len(s)):
  S=s[i]
for i in range(len(t)):
  T=t[i]
if S<=T:
  print('No')
elif S==T:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
num1 = int(input())
num2 = int(input())
X = (num1 + num2)/2
print(math.ceil(X))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
t=input()
s_array=[]
t_array=[]
for i in range(len(s)):
  s_array.append(s[i])
for i in range(len(t)):
  t_array.append(t[i])

s_array=sorted(s_array)

t_array=sorted(t_array,reverse=True)
for i in range(min([len(s_array),len(t_array)])):
  if s_array[i]<t_array[i]:
    print('Yes')
    exit()
  elif s_array[i]>t_array[i]:
    print('No')
    exit()
if len(s_array)<len(t_array):
  print('Yes')
  exit()
print('No')

Submission status: Runtime Error

Solution code:

import math


def main():
    x, y = map(int, input())
    print(math.floor((x + y) / 2))


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
 
x = a+b
 
if x == int(x):
  print(x)
 
else:
  x += 1
  print(int(x))

Submission status: Runtime Error

Solution code:
a = input()
b = input()
 
x = a+b
 
if x == int(x):
  print(x)
 
else:
  print(int(x+1))

Submission status: Runtime Error

Solution code:
a = input()
b = input()

x = a+b

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

Submission status: Runtime Error

Solution code:
import numpy as np
ab = input().split(" ")
print(np.round(np.mean(int(ab[0]), int(ab[1]))))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

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

Submission status: Runtime Error

Solution code:
import math
print(math.ceil((int(input())+int(input()))/2))

Submission status: Runtime Error

Solution code:
import math
print(math.ceil((int(input)+int(input))/2))

Submission status: Runtime Error

Solution code:
a = [input() for i in range(2)]

sp = "".join(sorted(list(a[0])))
tmp = list(a[1])
tmp.sort()
tmp.reverse()
tp = "".join(tmp)  
if sp < tp:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a = [input() for i in range(2)]
     
sp = "".join(sorted(list(a[0])))
tmp = list(a[1])
tmp.sort()
tmp.reverse()
tp = "".join(tmp)
     
if sp < tp:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
x,y = int(input())

m = (x+y)/2

print(math.ceil(m))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(min(N*A,B))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<(a+b+1)/2<<endl;
  return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
s = input()
t = input()
s.sort()
t.sort()
for x, y in zip(s, t[::-1]):
    if x > y:
        print('No')
        sys.exit()
    elif x == y:
        continue
    else:
        print('Yes')
        sys.exit()
if len(s) <= len(t):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s = input()
t = input()

if sorted(s) < list(reversed(t)):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s=input()
x,y=map(int,input().split())
xpossible=[0]
ypossible=[0]
j=0
while s[j]=='F':
  j+=1
  xpossible[0]+=1
  if j==len(s):
    break
counter=0
for i in range(j,len(s)):
  current=0
  while s[i]=='F':
    i+=1
    current+=1
    if i==len(s):
      break
  r=set()
  if counter==0:
    for j in xpossible:
      r.add(j+current)
      r.add(j-current)
    xpossible=[]
    for j in r:
      xpossible.append(j)
  else:
    for j in ypossible:
      r.add(j+current)
      r.add(j-current)
    ypossible=[]
    for j in r:
      ypossible.append(j)
  current=0
  while s[i]=='T':
    i+=1
    current+=1
    if i==len(s):
      break
  counter=(counter+current)%2
if x in xpossible and y in ypossible:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
s=input()
x,y=map(int,input().split())
xpossible=[0]
ypossible=[0]
j=0
while s[j]=='F':
  xpossible[0]+=1
  if j==len(s):
    break
counter=0
for i in range(j,len(s)):
  current=0
  while s[i]=='F':
    i+=1
    current+=1
    if i==len(s):
      break
  r=set()
  if counter==0:
    for j in xpossible:
      r.add(j+current)
      r.add(j-current)
    xpossible=[]
    for j in r:
      xpossible.append(j)
  else:
    for j in ypossible:
      r.add(j+current)
      r.add(j-current)
    ypossible=[]
    for j in r:
      ypossible.append(j)
  current=0
  while s[i]=='T':
    i+=1
    current+=1
    if i==len(s):
      break
  counter=(counter+current)%2
if x in xpossible and y in ypossible:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

s=input()
t=input()

if s==t:
  print("No")
  sys.exit()
  

alpha2num = lambda c: ord(c) - ord('A') + 1

s_list=list(s)
t_list=list(t)

s_list=[alpha2num(i) for i in s_list]
t_list=[alpha2num(i) for i in t_list]

s_list.sort()
t_list.sort(reverse=True)

print(s_list)#昇順
print(t_list)#降順

cnt=0
for i in range(min(len(s_list),len(t_list) )):
  cnt+=1
  if s_list[i]<t_list[i]: #sを早くしたい
    print("Yes")
    sys.exit()
if cnt==min(len(s_list),len(t_list)):
  print("Yes")
  sys.exit()
  
print("No")

Submission status: Runtime Error

Solution code:
s=sorted(input())
t=sorted(input(),reverse=True)
if s<t:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
s=sorter(input())
t=sorted(input(),reverse=True)
if s<t:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=int(print())
if (a+b)%2==0:
  print((a+b)/2)
if (a+b)%2==1:
  print((a+b+1)/2)

Submission status: Runtime Error

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: Runtime Error

Solution code:
s = sorted(input())
t = sorted(input())
t_reverse = t[::-1]
if s < t_reverse:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(input())
s_ = sorted(s)
t = list(input())
t_ = sorted(t,reverse=True)
print('Yes' if s_< t_ else 'No')

Submission status: Runtime Error

Solution code:
import math

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

import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
a,b=int(input())
x=a*b/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
import math
a,b=int(innput())
x=a*b/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
import math
x=a*b/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
A = list(map(int,input().split))
B = (A[0]+A[1])/2
if B >= int(B):
  print(int(B)+1)
else:
  print(int(B))

Submission status: Runtime Error

Solution code:
A = list(map(int,input().split))
B = (A[0]+A[1])/2
if B >= int(B):
  print(int(B)+1)
else:
  print(B)

Submission status: Runtime Error

Solution code:
A = list(map(int,input().split))
B = (A[0]+A[1])/2
if B <= int(B):
  print(int(B)+1)
else:
  print(B)

Submission status: Runtime Error

Solution code:
s = input()
t = input()
ss = sorted(s)
tt = sorted(t,reverse=True)
for n, w in zip(ss,tt):
  if n < w:
    print("Yes")
    exit()
  elif n > w:
    print("No")
    exit()
if len(ss) > len(tt):
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [LI()for i in range(n)]
inf = 10**17
mod = 10**9 + 7

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

Submission status: Runtime Error

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

ave = (a + b)/ 2

print(math.ceil(ave))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

average = (a+b)/2

print(math.ceil(average)

Submission status: Runtime Error

Solution code:
# solution
import io

print("Yes" if sorted(input()) < sorted(input(),reverse = True) else "No")

Submission status: Runtime Error

Solution code:
import sys
import math
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def S(): return sys.stdin.readline()
def LS(): return sys.stdin.readline().split()
def LS2(N): return [sys.stdin.readline().split() for i in range(N)]
def FILL(i,h,w): return [[i for j in range(w)] for k in range(h)]
def sisha(num,digit): return Decimal(str(num)).quantize(Decimal(digit),rounding=ROUND_HALF_UP)
#'0.01'や'1E1'などで指定、整数に戻すならintをかます
MOD = 1000000007
INF = float("inf")
sys.setrecursionlimit(10**5+10)
input = sys.stdin.readline

a,b = MI()
print(int((a+b+1)/2)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

print(mean(a, b).roundup())

Submission status: Runtime Error

Solution code:
s = list(input())
t = list(input())
s.sort()
t.sort()
s = ''.join(s)
t = ''.join(t)

[print('Yes') if s < t else print('No')]

Submission status: Runtime Error

Solution code:
a = list(input())
b = list(input())

a.sort()
b.sort(reverse=True)


for i in range(int(len(b))):
    c =(a[i],b[i])
    d = sorted(c)
    if i != int(len(b))-1:
        if a[i] == b[i]:
            continue
        elif c == d and a[i] != b[i]:
            print("No")
            break
        else:
            print("Yes")
            break
    if i == int(len(b))-1:
        if a[i] == b[i]:
            if int(len(a)) >= int(len(b)):
                print("No")
            else:
                print("Yes")
        elif c == d and a[i] != b[i]:
            print("No")
            break
        else:
            print("Yes")
            break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(-((-(input())//2)))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c=(a+b)*0.5
print(int(c+0.9))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c=(a+b)*0.5
print(c+0.9)

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
print(int((a+b)*o.5+0.9))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c=a*b
d=c/2
print(c)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c=(a+b)*0.5
print(round(c))

Submission status: Runtime Error

Solution code:
s=sorted;i=input
print("NYoe s"[s(i())<s(i())[::-1]::2])

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

c = a+b

print(c + 2 - 1)/2

Submission status: Runtime Error

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: Runtime Error

Solution code:
def calc():
    ans = (a + b)/2
    rem = (a + b)%2

    if rem = 0:
        return ans
    else:
        ans = ans + 0.5
        return ans

a, b = map(int.imput().split())
print(calc())

Submission status: Runtime Error

Solution code:
import pip._internal.models.target_python

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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