TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
print(a + (0.5 * b))

x, y  = map(int, input().split())
ans = x + (y / 2)
print(ans)

a, b = map(int, input().split())
print(a + 0.5 * b)

x, y  = map(int, input().split())
ans = x + (y / 2)
print(int(ans))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
print(x + y/2)

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
list = input().split(" ")
print(str(int(list[0])+int(list[1])))

print(int(input())+Int(input())/2)

X, Y = map(int, input().split())

print(X + Y/2)

print(int(input())+int(input())/2)

X, Y = map(int, input().split())

print(int(X + Y/2))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
data = list(map(int,input().split()))

print(data[0]+data[1]/2)


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

print(int(data[0]+data[1]/2))


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X,Y = map(int, input().split())
print(int(X+(Y/2))

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y=map(int,input().split())
print(x*(y/2))

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y=map(int, input().split())
print(min([x+y//2, x//2+y]))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
b = list(map(int,input().split()))
print(b[0] + b[1])


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


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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
N = int(input())
T,A = map(int,input().split())
h = list(map(int,input().split()))

ans = 0
base = T - 0.06*h[0]
for i,n in enumerate(h):
    if(i==0):
        pass
    tem = T - 0.006*n
    if(abs(tem - A)<abs(base - A)):
        base = tem
        ans = i+1
    else:
        ans = 1
print(ans)


x, y = map(int,input().split())
ans = x + (1/2)*y
print(ans)

N = int(input())
T,A = map(int,input().split())
h = list(map(int,input().split()))

ans = 0
base = T - 0.006*h[0]
for i,n in enumerate(h):
    if(i==0):
        pass
    tem = T - 0.006*n
    if(abs(tem - A)<abs(base - A)):
        base = tem
        ans = i+1
    else:
        ans = 1
print(ans)


x, y = map(int,input().split())
y = 1/2 * y
ans = int(x + y)
print(ans)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x, y = map(int, input())
print(x + y // 2)

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int, input().split())
print("{}".format(x + (y/2)))

X,Y = map(int, intput().split())
print("{}".format(X+(Y/2)))

x,y = map(int,input().split())
print('{}'.format(int(x+(y/2))))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B = list(map(int, input().split()))
print(A + (B / 2))

import sys
if __name__ == "__main__":
    N, M = map(int, sys.stdin.readline().split())
    P = [0] * (N + 1)
    C = [0] * M

    for m in range(M):
        p, y = map(int, input().split())
        C[m] = [m, p, y, 0]
    C.sort(key=lambda x :x[2])

    for c in C:
        P[c[1]] += 1
        c[3] = P[c[1]]
    C.sort(key=lambda x :x[0])

    for c in C:
        print("{}{}".format(str(c[1]).zfill(6), str(c[3]).zfill(6)))

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int,input().split())
print(X + Y/2)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
list = input().split
X = list[0]
Y = list[1]

price = X + Y/2
print(price)

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

list = input().split()
X = list[0]
Y = list[1]

price = X + Y/2
print(price)

list = input().split()
X = list[0]
Y = list[1]

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

list = input().split()
X = list[0]
Y = list[1]

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

x, y = map(int, input().split())
print(x+round(y/2))

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
import numpy as np
H, W, K = map(int, input().split())
p = 10**9 + 7
r = [1, 1, 2, 3, 5, 8, 13, 21, 34]
dp = np.zeros([H + 1, W], dtype=int)
dp[0, 0] = 1
for h in range(H):
    for w in range(W):
        if w != 0:
            dp[h+1, w] += ((dp[h, w-1] * r[w-1])%p * r[W-1-w])%p
        dp[h+1, w] += ((dp[h, w] * r[w])%p * r[W-1-w])%p
        if w != W-1:
            dp[h+1, w] += ((dp[h, w+1] * r[w])%p * r[W-2-w])%p
        dp[h+1, w] = dp[h+1, w]%p
print(dp[H, K-1])

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
print(eval(input().replace(' ','+0.5*'))

print(eval(input().replace(' ','+0.5*')))

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
# -*- coding: <encoding name> -*-

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

# -*- coding: <encoding name> -*-

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
print(x+y/2)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
N = int(input())
T, A = map(int, input().split())
H_list = list(map(int, input().split()))

pre = A
'''
3
21 -11
81234 52141 94124
'''
for i, h in enumerate(H_list):
    if i == 0:
        ans = i
        pre = T - h * 0.006
        continue
    kion = T - h * 0.006
    if abs(A - kion) < abs(A - pre):
        #print(kion)
        #print(pre)
        #print(abs(A - kion),'kion')
        #print(abs(A - pre),'pre')
        ans = i
print(ans + 1)

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x=int(input())
y=int(input())
print(x+y//2)

x,y=(int(n) for n in input().split())
print(x+y//2)

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())

yen = x + y/2
print(yen)

x,y = map(int, input().split())

print(x+y/2)

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

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

x,y = map(int,input().split())

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
input = sys.stdin.readline

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

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


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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = ma-(int,input().split())
print(a + (b//2))

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
print(int(input()) + int(input())//2)


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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
print(x/2+y)

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x, y = map(int, input().split())
a = x + y/2
print(a)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b= map(int, input())
print(a+(b//2))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int, input().split())
print(X+Y/2) 

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x, y = map(int, input().split())
print(x + y / 2)


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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
import sys
sys.setrecursionlimit(10**8)
def ii(): 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 _ in range(N)]
def dp2(ini, i, j): return [[ini]*i for _ in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for _ in range(j)] for _ in range(k)]

#from collections import defaultdict #d = defaultdict(int) d[key] += value

def ume(x):
    x = str(x)
    if len(x) < 6:
        return '0'*(6-len(x)) + x
    return x

def main():
    N, M = mi()

    l = dp2(0, 3, M)
    cnt = [0]*(N+1)
    ans = dp2(0, 2, M)
    for i in range(M):
        p, y = mi()
        l[i][0], l[i][1], l[i][2] = p-1, y, i
        cnt[p] += 1
    for i in range(N):
        cnt[i+1] += cnt[i]

    l.sort(key=lambda x: x[0])
    for i in range(N):
        ichibu = l[cnt[i]:cnt[i+1]]
        ichibu.sort(key=lambda x: x[1])
        for j in range(cnt[i+1]-cnt[i]):
            ans[ichibu[j][2]][0] =ichibu[j][0]+1
            ans[ichibu[j][2]][1] =j+1
    
    for x, y in ans:
        print(ume(x)+ume(y))


if __name__ == "__main__":
    main()

import sys
sys.setrecursionlimit(10**8)
def ii(): 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 _ in range(N)]
def dp2(ini, i, j): return [[ini]*i for _ in range(j)]

#from collections import defaultdict #d = defaultdict(int) d[key] += value
#from collections import Counter # a = Counter(A).most_common()
#from itertools import accumulate #list(accumulate(A))

A, B = mi()

print(A + B // 2)

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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))

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int, input().split())
print(X+(Y/2))

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
X,Y=(int(i) for i in input().split())
print(X+Y/2)

import numpy as np
N=int(input())
T,A=(int(i) for i in input().split())
H=[int(i) for i in input().split()]
T=np.array([T for i in range(N)])
print(abs(A-(T-H*0.006)).argmin())

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
print(a + b / 2)

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

print(a + b // 2)

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A,B=map(int, input().split())
print(A+B/2)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X,Y=(int(x) for x in input().split())
print(X+Y/2)

X,Y=(int(x) for x in input().split())
print(int(X+Y/2))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x=input("X:")
y=input("Y:")
z=x+y/2
print(z)

x=int(input("X:"))
y=eval(input("Y:"))
z=x+y/2
print(z)


f=input.split(" ")
x=f[1]
y=f[2]
z=x+y/2
print(z)


f=input("string is:")
number=f.split(" ")
x=number[1]
y=number[2]
z=x+y/2
print(z)

f=input().split(" ")
x=f[1]
y=f[2]
z=x+y/2
print(z)


list=input().split("\n")
number=int(list[0])
list_2=list[1].split(" ")
t=int(list_2[0])
a=int(list_2[1])
list_3=list[2].spilit(" ")
index=1
min=abs(a-(t-int(list_3[0])))
target_index=1
for height in list_3:
    temp=t-int(height)*0.006
    diff=abs(a-temp)
    if diff < min :
        min = diff
        target_index = index
    index += 1    
print(target_index)

f=input()
number=f.split(" ")
x=number[1]
y=number[2]
z=x+y/2
print(z)


x=int(input("X:"))
y=int(input("Y:"))
z=x+y/2
print(z)


number=input().split(" ")
x=int(number[0])
y=int(number[1])
z=x+y/2
print(int(z))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
X,Y = map(int,input().split())

print(X+Y/2)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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))

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

X,Y = map(int, input().split())

print(X+Y/2)

X,Y = map(int, input().split())

print(int(X+Y/2))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x, y =map(int, input().split())
print(x + y/2)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
print(int(input())+(int(input())//2))

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int, input().split())

print(X+(Y/2))

X, Y = map(int, input().split())

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x, y = input().strip().split(' ')
x, y = [int(x), int(y)]

print(x + y/2)

x, y = input().strip().split(' ')
x, y = [int(x), int(y)]

print(int(x + y/2))


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int, input().split())

print(X + (Y / 2))


X, Y = map(int, input().split())

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A,B=map(int, input().split())
print(A+B/2)


A,B=map(int, input().split())
print(int(A+B/2))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b = (int(i) for i in input().split())
print((a + b) / 2)


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

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)

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

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

a, b = (int(i) for i in input().split())
print("{}".format((a + b) / 2))

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
 
print(a + (b / 2))

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

print(a + (b / 2))

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
lis = input().split()
lis = [int(lis[i]) for i in range(2)]

print(lis[0] + lis[1]/2)

lis = input().split()
lis = [int(lis[i]) for i in range(2)]

print(int(lis[0] + lis[1]/2))


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
print(x+y/2)

import math
n = int(input())
t,a = map(int,input().split())
hight = list(map(int, input().split()))
ans = 100000
ansnumber = 0
for num,i in enumerate(hight):
    tmp = math.fabs(i - a)
    if ans > tmp:
         ans = tmp
         ansnumber = num+1
print(ansnumber)

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

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

x,y = input().split
print(int(x)+int(y)/2)


import math
n = int(input())
t,a = map(int,input().split())
hight = list(map(int, input().split()))
ans = 100000
ansnumber = 0

for num,i in enumerate(hight):
    tmp = math.fabs(t-i*0.006 - a)
    if ans > tmp:
         ans = tmp
         ansnumber = num+1

x,y = input().split()
print(int(x)+int(y)/2)

a,b = (int(i) for i in input().split())  
c = a + b/2
print(c)

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
#!/usr/bin/env python3

from collections import defaultdict

def tostring(p,j):
    p = str(p+1)
    j = str(j+1)
    return (6 - len(p))*"0" + p + (6-len(j)) *"0" + j


if __name__ == "__main__":
    N, M = map(int, input().split())

    py = [[] for _ in range(N)]

    dat = [tuple(map(int, input().split())) for _ in range(M)]

    for i in range(M):
        p,y = dat[i]
        py[p-1].append((y,i))
    
    for p in range(N):
        py[p] = sorted(py[p])
    
    answer = M * [None]

    for p in range(N):
        for j in range(len(py[p])):
            y,i = py[p][j]
            answer[i]= tostring(p,j)
    
    for a in answer:
        print(a)

        


#!/usr/bin/env python3

if __name__ == "__main__":
    t,b = map(int, input().split())
    print(t +b//2)


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
print(a+b/2)

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B = map(int, input().split())
print(A+B/2)

A, B = map(int, input().split())
print(int(A+B/2))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a = list(map(int, input().split()))

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):

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

print(X+Y/2)


X,Y=list(map(int,input().split()))
 
print(int(X+Y/2))

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X,Y = int(input())
print(int(X + Y /2))

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int, input().split())
print(x+(y/2))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
print(x + y /2)

n =input()

n = n.replace('9','0')
n = n.replace('1','9')
n = n.replace('0','1')
print(n)

x,y = map(int,input().split())

print(x + int(y/2))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int, input().split())

print(x + (y/2))

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
X, Y = map(int, input())
print(X+Y//2)

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

Verdicts: Runtime Error

Accepted