Problem:


Score: 100 points

Problem Statement

There is a train going from Station A to Station B that costs X yen (the currency of Japan).

Also, there is a bus going from Station B to Station C that costs Y yen.

Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus.

How much does it cost to travel from Station A to Station C if she uses this ticket?

Constraints

1 \leq X,Y \leq 100

Y is an even number.

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

If it costs x yen to travel from Station A to Station C, print x.

Sample Input 1

81 58

Sample Output 1

110

The train fare is 81 yen.

The train fare is 58 ⁄ 2=29 yen with the 50% discount.

Thus, it costs 110 yen to travel from Station A to Station C.

Sample Input 2

4 54

Sample Output 2

31



Sample input:
81 58


Sample output:
110

Submission status: Runtime Error

Solution code:
N, M = map(int,input().split())
all_city = [list(map(int,input().split())) for i in range(M)]

city = {}
for i in all_city:
    if i[0] in city:
        city[i[0]].append(i[1])
    else:
        city[i[0]] = [i[1]]



for i,k in city.items():
    city[i] = sorted(k)

def change_Prefecture_code(prefecture):
    return str(prefecture).zfill(6)

def change_birth_code(birth_num):
    return str(birth_num).zfill(6)

for i in all_city:
    print(change_Prefecture_code(i[0]) + change_birth_code(city[i[0]].index(i[1]) + 1))

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
x = []
y = []
order = {}
city = {}
city1 = {}
ans = []
for i in range(a[1]):
    x1, y1 = [int(i) for i in input().split()]
    x.append(x1)
    y.append(y1)

for i in range(a[1]):
    order[i] = y[i]

for i in range(1, a[0]+1):
    Prefecture = []
    for j in range(a[0]+1):
        if i == x[j]:
            Prefecture.append(y[j])
    else:
        Prefecture.sort()
        city[i] = Prefecture

for k, v in city.items():
    for i in range(len(v)):
        k1 = v[i]
        v[i] = str(k).zfill(6) + str(i + 1).zfill(6)
        city1[k1] = v[i]

for k1 in order.values():
    for k, v in city1.items():
        if k1 == k:
            ans.append(v)
for i in ans:
    print(i)

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
    X, Y = map(int, input().split())

    print(int(X + y/2))

Submission status: Runtime Error

Solution code:
input_array = []
while True:
    try:
        input_array.append(input().split())
    except:
        break
for i in input_array:
    print(int(i[0] + i[1]/2))

Submission status: Runtime Error

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

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

X, Y = MAP()

print(X+Y//2)import sys, re

Submission status: Runtime Error

Solution code:
X,Y = map(int,input())
price = X + Y/2

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
t,a=map(int,input().split())
h=[abs((t-int(i)*6/1000)-a) for i in input().split()]
print(h.index(min(h))+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
t,a=map(int,input().split())
h=list(map(int,input().split()))
tmp=[]
tmp=[abs(int(t-h[i]*0.006)-a) for i in range(n)]
print(tmp.index(min(tmp))+1)

Submission status: Runtime Error

Solution code:
X, Y = map(int, input())

print(X + int(Y / 2))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

Z = X + (Y/2)

print(int(Z))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

Z = X + (Y/2)

print(Z)

Submission status: Runtime Error

Solution code:
def temp(T,A,x):
    return abs(A - (T - x * 0.006))
N = input()
T, A = map(int, input().split())
H = list(map(int, input().split()))

m = temp(T,A,H[0])
idx = 1
for i in range(1,len(H)):
    if m > temp(T,A,H[i]):
        m = temp(T,A,H[i])
        idx = i + 1

print(idx)

Submission status: Runtime Error

Solution code:
import functools
import math

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


print(inp() + inp() // 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
81 58

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
tmp = 1000000
ans = 0

for i in range(n):
  c = t - h[i] * 0.006
  d = a - c
  if d < 0:
    d = -d
  if d < tmp:
    tmp = d
    ans = i + 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
tmp = 1000000
ans = 0
for i in range(n):
  c = t - h[i] * 0.006
  d = a - c
  if d < 0:
    d = -d
  if d < tmp:
    tmp = d
    ans = i + 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
tmp = 1000000
ans = 0
for i in range(n):
  c = t - h[i] * 0.006
  d = a - c
  if d < 0:
    d = -d
  if d < tmp:
    tmp = d
    ans = i + 1
print(ans)

Submission status: Runtime Error

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

print(a + (b / 2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
PM = []
for i in range(N):
  PM = input().split()
  P = str(PM[0]).zfill(6)
  M = str(PM[1]).zfill(6)
  print(P + M)

Submission status: Runtime Error

Solution code:
N = int(input())
T, A= map(int, input().split())
H = list(map(int, input().split()))
dH =[]
for i in H:
    dH.append(abs(A - T + 0.006 * i))
print(dH.index(min(dH) + 1))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
T, A= map(int, input().split())
H = list(map(int, input().split()))
dH =[]
for i in H:
    dH.append(abs(A - T + 0.006 * i))
min_dH = min(dH)
print(dH.index(min_dH) + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=list(inout().split())
b=int(int(a[0])+int(a[1])/2)
print(b)

Submission status: Runtime Error

Solution code:
a=list(inout().split())
b=int(a[0])+int(a[1])/2
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X, Y = map(int, input())
print(X + Y // 2)

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
print(x+(y/2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

n,m = map(int,input().split())
p = [0] * m
y = [0] * m
for i in range(m):
    p[i],y[i] = map(int,input().split())

certificate = [[] for _ in range(n)]

for i in range(m):
    certificate[p[i]-1].append(y[i])

for i in range(len(certificate)):
    certificate[i].sort()

for i in range(m):
    number = ""
    number += str(p[i]).zfill(6)
    number += str(certificate[p[i]-1].index(y[i])+1).zfill(6)
    print(number)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X, Y = input().split()
print(X + Y/2)

Submission status: Runtime Error

Solution code:
from operator import itemgetter

N, M = map(int, input().split())

ci = []
pi = [0] * N
for i in range(M):
    ci.append([i] + list(map(int, input().split())))

ci.sort(key=itemgetter(1,2))
for c in ci:
    pi[c[1]-1] += 1
    prestr = str(c[1]).zfill(6)
    bhstr = str(pi[c[1]-1]).zfill(6)
    c.append(''.join([prestr, bhstr]))

ci.sort()
for c in ci:
    print(c[3])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = map(int, input().split())
h_list = list(map(int,input().split()))

temp_list=[]

for h in h_list:
	temp_list.append(abs(a+t-h*0.006))
print(temp_list.index(max(temp_list)) + 1)

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int,input().split())
H = list(map(int,input().split()))
 
res = [abs(T-h*0.006-A) for h in H]
print(res.index(min(res))+1)

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
T,A = map(int, input().split())
H = np.array(list(map(int, input().split())))
H = T - 0.006*H - A
H = np.abs(H)
print(np.argmin(H) + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
p = []
y = []
for i in range(M):
    p1,y1=[int(i) for i in input().split()]
    p.append(p1)
    y.append(y1)
ans = [0 for _ in range(M)]
for idx in range(M):
    ans[idx] = [idx, p[idx], y[idx]]
ans = sorted(ans, key=lambda x: x[1])
ans = sorted(ans, key=lambda x: x[2])
for idx in range(M):
    if idx == 0:
        ans[idx][2] = 1
    else:
        if ans[idx][1] == ans[idx-1][1]:
            ans[idx][2] = ans[idx-1][2] + 1
        else:
            ans[idx][2] = 1
ans = sorted(ans, key=lambda x: x[0])
for idx in range(M):
    print('{:0=6}{:0=6}'.format(ans[idx][1], ans[idx][2]))

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
PY=[list(map(int,input().split()))+[0] for _ in range(M)]
sort_PY=sorted(PY,key=lambda x:x[1])
c={}
for i in range(M):
    p=sort_PY[i][0]
    if(p in c):
        c[p]+=1
    else:
        c[p]=1
    sort_PY[i][2]=c[p]
for p,y,z in PY:
    print(str(p).zfill(6)+str(z).zfill(6))

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))
HT = list(map(lambda x: T - x*0.6, H))
answer = 0
for i in range(len(HT)):
    if abs(HT[i] - A) < abs(HT[answer]-A):
        answer = i
print(answer + 1)

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int, input().split())
H = [int(i) for i in input().split()]

if A >= 0:
    diff = [A - (T - h * 0.006) for h in H]
else:
    diff = [A + (T - h * 0.006) for h in H]
print(diff.index(min(diff)) + 1)

Submission status: Runtime Error

Solution code:
print(int(input()) + int(input())//2)

Submission status: Runtime Error

Solution code:
import collections as c
d=c.defaultdict(list)
d2=c.defaultdict(list)
a,b,*q=map(int,open(0).read().split())
for s in range(b):
    g,j=q[2*s],q[2*s+1]
    d[g].append(j)
    d[g]=sorted(d[g])
for t in d.keys():
    for k,v in enumerate(d[t]):
        d2[t].append((v,k+1))
for s in range(b):
    g,j=q[2*s],q[2*s+1]
    for sss in d2[g]:
        if sss[0]==j:
            print('{:06d}'.format(g)+'{:06d}'.format(sss[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input(X))
y = int(input(Y))

z = x + y/2
print(str(z))

Submission status: Runtime Error

Solution code:
x = int(input(x))
y = int(input(y))

z = x + y/2
print(str(z))

Submission status: Runtime Error

Solution code:
X, Y = map(int, input())
print(int(X + Y/2))

Submission status: Runtime Error

Solution code:
N,M = map(int, input().split())
citys = [list(map(int,input().split()))+[i] for i in range(M)]

citys.sort(key = lambda x:x[1])
nums = [0]*(N+1)
states = [None]*M

for p,y,i in citys:
    nums[p] += 1
    states[i] = [str(p), str(nums[p])]

for s in states:
    print(s[0].zfill(6)+s[1].zfill(6))

Submission status: Runtime Error

Solution code:
N,M = map(int, input().split())
citys = [list(map(int,input().split()))+[i] for i in range(M)]

citys.sort(key = lambda x:x[1])
nums = [0]*(N+1)
states = [None]*(M+1)

for p,y,i in citys:
    nums[p] += 1
    states[i] = [str(p), str(nums[p])]

for s in states:
    print(s[0].zfill(6)+s[1].zfill(6))

Submission status: Runtime Error

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

print(x + y / 2)

Submission status: Runtime Error

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

print(x + int(y / 2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))

for i in range(N):
    H[i] = abs(A - (T - H[i] * 0.006))
print(H.index(min(H)) + 1)

Submission status: Runtime Error

Solution code:
N = input()
T, A = map(int, input().split())
H = list(map(int, input().split()))

for i in range(N):
    H[i] = abs(A - (T - H[i] * 0.006))
print(H.index(min(H)) + 1)

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = map(int, input().split())
h = list(map(int, input().split()))
v = t-a
for i in range(n):
    h[i] = abs(v-h[i])
print(h.index(min(h))+1)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
H_list = list(map(int,input().split()))
temp_list = [t-h*0.006 for h in H_list ]
ans_list = [abs(a-x) for x in temp_list]
ans = min(ans_list)
print(ans_list.index(ans)+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M = [int(i) for i in input().split()]
data = list()
for i in range(M):
    p, y = [int(i) for i in input().split()]
    data.append([i, p, y])
data.sort(key=lambda x:(x[1],x[2]))
ind = 1
for j, (i, p, y) in enumerate(data):
    if data[j-1][1] != p:
        ind = 1
    data[j].append(ind)
    ind += 1
data.sort(key=lambda x:x[0])
for i, p, y, j in data:
    print(str(p).zfill(6) + str(j).zfill(6))

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = map(int, input().split())
h = list(map(int, input().split()))

li = []
for i in range(len(h)):
  li.append(abs(a - (t - h[i]*0.006)))
  
print(li.index(min(li)))

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = map(int, input().split())
h = list(map(int, input().split()))

li = []
for i in range(len(h)):
  li.append(abs(a - t - h[i]*0.006))
  
print(li.index(min(li)))

Submission status: Runtime Error

Solution code:
input = sys.stdin.readline

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

import math
import sys
from operator import itemgetter
input = sys.stdin.readline

# a = int(input().rstrip())
# a, b = map(int, input().rstrip().split())
# D = list(map(int, input().rstrip().split()))
# H = [int(input().rstrip()) for _ in range(L)]
# DD = [[0 for j in range(100)] for i in range(200)]
# dict = {} ## dictionary

# a = sorted(a, key=lambda x: x[1]))
# if __name__ == '__main__':

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

Submission status: Runtime Error

Solution code:
input = sys.stdin.readline

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

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = map(int, input().split())
e = [int(i) for i in input().split()]

temp = []
for i in e:
    temp.append(abs(t - i * 0.006 - a))
    
print(e)
print(temp)
print(temp.index(min(temp)) + 1)

Submission status: Runtime Error

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

y = x + y / 2
print(f"{y:.0f}")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X, Y = map(int, input())
print(X+Y//2)

Submission status: Runtime Error

Solution code:
N=int(input())
T,A=map(int,input().split())
H_list=list(map(int,input().split()))
a=list(map(lambda x:abs((T-x*0.006)-A), H_list))
#print(a)
#print(min(a))
print(a.index(min(a))+1)

Submission status: Runtime Error

Solution code:
N=int(input())
T,A=map(int,input().split())
H_list=list(map(int,input().split()))
a=list(map(lambda x:abs(A-(T-x*0.006)), H_list))
#print(a)
print(min(a))

Submission status: Runtime Error

Solution code:
import numpy as np
from operator import itemgetter

N, M = input().split()
N, M = int(N), int(M)
C = [input().split() for i in range(M)]

for i, c in enumerate(C):
  C[i] = [int(c[0]), int(c[1])]
  C[i].append(i)

C_sorted = sorted(C, key = lambda x: (x[0], x[1]))

counter = 1
current = 1

for c in C_sorted:
  if current < c[0]:
    counter = 1
  pref = str(c[0])
  num = str(counter)
  number = ''
  for i in range(6 - len(pref)):
    number += '0'
  number += pref
  for i in range(6 - len(num)):
    number += '0'
  number += num

  c.append(number)
  counter += 1
  current = c[0]

C_reversed = sorted(C_sorted, key = lambda x: x[2])

for c in C_reversed:
  print(c[3])

Submission status: Runtime Error

Solution code:
print(int(input()) + int(input()) / 2)

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int, input().split())
heights = list(map(int, input().split()))

temperature_diff_list = [abs(A - (T - height * 0.006)) for height in heights]
    
print(temperature_diff_list.index(min(temperature_diff_list)) + 1)

Submission status: Runtime Error

Solution code:
x,y = int(input())
print(x+int(y/2))

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# File              : a.py
# Author            : recurze
# Date              : 22:46 18.01.2019
# Last Modified Date: 22:46 18.01.2019

print int(raw_input()) + int(raw_input()) >> 1

Submission status: Runtime Error

Solution code:
X, Y = map(int, input())
print(X+Y//2)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
s = []

for i in h:
    s.append(abs(t-a-i*0.006))

print(s.index(min(s))+1)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
s = []

for i in h:
    s.append(abs(a-t+i*0.006))

print(s.index(min(s))+1)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
s = []

for i in range(n):
    s.append(abs(a-t+i*0.006))

print(s.index(min(s))+1)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int,input().split())
h = list(map(int,input().split()))
s = []

for i in h:
    s.append(abs(753-t+a*0.006))

print(s.index(min(s))+1)

Submission status: Runtime Error

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

print(x+(y//2))

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())
 
print(int(x+(y/2)))

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

  print(int(x+(y/2)))

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

if y==0:
 print(x+y)
else:
  print(int(x+(y/2)))

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

if x==0 or y==0:
 print(x+y)
else:
  print(int(x+(y/2)))

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

if x==0 or y==0:
 print(x+y)
else:
  print(x+(y/2))

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())


print(x+(y/2)):

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())
print(int(x+y/2))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = int(X + Y/2)

print(x)

Submission status: Runtime Error

Solution code:
n = int(input())
t,a = map(int, input().split())
h = [int(i) for i in input().split()]
candidates = list(map(lambda x: abs(a - t - x * 0.006), h))
print(candidates.index(min(candidates)) + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l= input().split
X = int(l[0])
Y = int(l[1])
x = X + Y/2
print(x)

Submission status: Runtime Error

Solution code:
X,Y = int(input()),int(input())
x = X + Y/2
print(x)

Submission status: Runtime Error

Solution code:
X = input()
Y = input()
print(int(X+Y/2)

Submission status: Runtime Error

Solution code:
a = input()
b = input()
print(str(a+b/2))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
print(str(a+b/2))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())
a = int(X + Y/2)
print(a)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = X + Y/2
print(int(x))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = int(X + Y/2)
print(x)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = X + Y/2
print(str(x))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = X + Y/2
print(x)

Submission status: Runtime Error

Solution code:
X, Y =(int(i),for i in input().split())
print(X+(Y/2))

Submission status: Runtime Error

Solution code:
input_X = input()
input_Y = input()
X = int(input_X)
Y = int(input_X)
x = X + Y/2

print(x)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = X + Y/2

print(x)

Submission status: Runtime Error

Solution code:

X = int(input())
Y = int(input())

x = X + Y/2

print(str(x))

Submission status: Runtime Error

Solution code:

X = int(input())
Y = int(input())

x = X + Y/2

print(x)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:utf-8
x = int(input())
y = int(input())
z = x + y/2
print(z)

Submission status: Runtime Error

Solution code:
#coding:utf-8
x = int(input())
y = int(input())
z = x + y/2
prit(z)

Submission status: Runtime Error

Solution code:

X = int(input())
Y = int(input())

x = X + Y/2

print(x)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

x = round(X + Y/2)

print(x)

Submission status: Runtime Error

Solution code:

X = int(input())
Y = int(input())

x = X + Y/2

print(round(x))

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

print(round(X+Y/2))

Submission status: Runtime Error

Solution code:

X = int(input())
Y = int(input())

print(X+Y/2)

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())
print(y/2+x)

Submission status: Runtime Error

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

print(inya[0]+a[1]/2)

Submission status: Runtime Error

Solution code:


if __name__ == '__main__':
    ken_num, city_num = list(map(int, input().split()))
    data = []
    for i in range(city_num):
        element = list(map(int, input().split())).append(i)
        data.append(element)
    # data = [list(map(int, input().split())).append(i) for i in range(city_num)]

    # ken_num, city_num = 2, 3
    # data = [[1,32,0], [2,63,1],[1,12,2]]

    data = sorted(data, key=lambda x: (x[0], x[1]))

    count = 1
    ken_num = 1
    ans_data = {}

    for i in range(city_num):
        number = data[i][2]
        if data[i][0] != ken_num:
            count = 1
            ken_num = data[i][0]
        chr = "{0:06d}".format(ken_num) + "{0:06d}".format(count)
        ans_data.update({number:chr})
        count += 1

    for i in range(city_num):
        print(ans_data[i])

Submission status: Runtime Error

Solution code:
n=int(input())
t,a=tuple(map(int,input().split()))
h=list(map(int,input().split()))

def tmp(y,x):
	return y-0.006*x
min=10**6
j=0
for i in range(len(h)):
	ze=abs(a-tmp(t,h[i]))
	if min>ze:
		min=ze
		j=i

print(j+1)

Submission status: Runtime Error

Solution code:
n=int(input())
t,a=tuple(map(int,input().split()))
h=list(map(int,input().split()))

def tmp(y,x):
	return y-0.006*x
min=100
j=0
for i in range(len(h)):
	ze=abs(a-tmp(t,h[i]))
	if min>ze:
		min=ze
		j=i

print(j+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = tuple(map(int, input().split()))
h = list(map(int, input().split()))
mine = 1000
mini = 0
d=[0 for i in range(n)]
def tmp(x):
    return t - 0.006*x

for i in range(n):
    d[i] = abs( a - tmp(h[i]) )
    if mine > d[i]:
        mine = d[i]
        mini = i

print(mini+1)

Submission status: Runtime Error

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

print(A + B // 2)

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

print(x + y/2)

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

print(x + y/2)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

print(X + Y/2)

Submission status: Runtime Error

Solution code:
x, y = tuple(map(int, input().split()))
def cal(x,y):
	z=x+y/2
    return z

Submission status: Runtime Error

Solution code:
x = int(input(x?\n))
y = int(input(y?\n))

print(x + y/2)

Submission status: Runtime Error

Solution code:
def f(x, y):
    return x+y/2

x = int(input())
y = int(input())
print(f(x,y))

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
print(x+y//2)

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
T,A = map(int,input().split(" "))
H =  list(map(lambda x:abs(T - float(x)*0.006 - A),input().split(" ")))
print(np.argmin(H)+1)

Submission status: Runtime Error

Solution code:
X,Y=int(input().split())
C=X+Y/2
print(C)

Submission status: Runtime Error

Solution code:
from collections import defaultdict

N,M=map(int,input().split())

A=defaultdict(list)
Q=[]

for i in range(M):
  P,Y=map(int,input().split())
  Q.append([P,Y])
  A[P].append(Y)
  
for a,b in A.items():
  A[a].sort()

for l in Q:
  s=str(l[0]).zfill(6)
  num=A[l[0]].index(l[1])
  s+=str(num+1).zfill(6)
  print(s)

Submission status: Runtime Error

Solution code:
N = int(input())
T, A = map(int, input().split())
diff =50000000
num = 0
for i in range(N):
    H = int(input())
    if abs(T - H*0.006) < diff:
        num = i + 1

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())
print(X + Y/2)

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())

print((X+Y)/2)

Submission status: Runtime Error

Solution code:
import sys

def main():
  train_fee, buss_fee = [int(arg) for arg in sys.argv[1:]]
  print(train_fee + (buss_fee / 2))

if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
math.gcd(1,2)

x,y = [int(i) for i in input().split()]

print(x+y//2)

Submission status: Runtime Error

Solution code:
X,Y = int(input().split(' '))
print(X + (Y/2))

Submission status: Runtime Error

Solution code:
X,Y = int(input.split(' '))
print(X + (Y/2))

Submission status: Runtime Error

Solution code:
X=int(input())
Y=int(input())

print(X+(Y//2))

Submission status: Runtime Error

Solution code:
x = int(input())

y = int(input())

sum = x + y/2 

print(sum)

Submission status: Runtime Error

Solution code:
x = int(input())

y = int(input())/2

sum = x + y

print(sum)

Submission status: Runtime Error

Solution code:
import numpy as np 
n , m = map(int, input().split())
l = np.array([list(map(int, input().split())) for _ in range(m)])
l2 = np.zeros(m)

l2 = l[:,0]*(10**6) + l[:,1]
l2 = np.sort(l2)

j = 1000000
k = 1
for i in range(m):
    if j+1000000 > l2[i]:
        l2[i] = j + k
        k += 1
    else :
        j += 1000000
        l2[i] = j + 1
        k = 2

for i in l2 :
    print('{0:012d}'.format(i))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
X,Y= "int(input())","int(input())"
print("{}".format(X + 2 //Y))

Submission status: Runtime Error

Solution code:
#!usr/bin/env python
# -*- coding: utf-8 -*-
X , Y= int(input()), int(input())
print("{}".format(X + Y // 2))

Submission status: Runtime Error

Solution code:
#!usr/bin/env python
# -*- coding: utf-8 -*-
X , Y = int(input()), int(input())
print("{}".format(X+Y//2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t, a = input().split(' ')
t = int(t)
a = int(a)
h = input().split(' ')

diff = 10000
point = 10000

for x in range(n):
    temp = t - int(h[x]) * 0.006
    tmp = abs(a - temp)

    if tmp < diff:
        diff = tmp
        point = x + 1

print(point)

Submission status: Runtime Error

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

return y / 2 + x

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
ans=x+int(y/2)
print(ans)

Submission status: Runtime Error

Solution code:
import sys
N = input()
TA = input()
T, A = TA.split()
Hinp = input()
H = Hinp.split()
ansnum = None
ans = 0
def getdiff(A, ans):
    return abs(max(ans, A) - min(ans, A))
def chk(A, _ans, ans):
    new_d, old_d = getdiff(A, _ans), getdiff(A, ans)
    if new_d < old_d:
        return True
    return False
def showans(ans):
    print(ans)
    sys.exit()
for i, x in enumerate(H):
    _ans = int(T) - int(x) * 0.006
    if _ans == A:
        showans(i+1)
    if not ansnum or chk(int(A), _ans, ansnum):
        ans = i+1
        ansnum = _ans
showans(ans)