TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = input
b2 = a
c2 = b
a2 = c
print(a2, b2, c2)


import sys
a, b, c = map(int, sys.argv[1:])
b2 = a
c2 = b
a2 = c
print(a2, b2, c2)


in_ = input()
a, b, c = map(int, in_.split())
b2 = a
c2 = b
a2 = c
print(a2, b2, c2)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N = int(input())


def make_divisors(n):
    for i in range(1, int(n ** 0.5) + 1):
        if n % i == 0:
            yield i
            if i != n // i:
                yield n // i


ans = len(tuple(make_divisors(N - 1))) - 1

it = make_divisors(N)
next(it)

for k in it:
    tmp = N
    while not tmp % k:
        tmp //= k
    if tmp % k == 1:
        ans += 1
print(ans)


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


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = list(map(int, input().split()))
a[0] = a[1]
a[0] = a[2]
print(a[0],a[1],a[2], sep=' ')

a = list(map(int, input().split()))
k = a[0]
a[0] = a[1]
a[1] = k
k = a[0]
a[0] = a[2]
a[2] = k
print(a[0], a[1], a[2], sep=' ')


Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

copy = x[0]
x[0] = x[2]
x[2] = copy

print(" ".join([str(i) for i in x]))

x = list(map(int,input().split()))
copy = x[0]
x[0] = x[1]
x[1] = copy

copy = x[0]
x[0] = x[2]
x[2] = copy

print(" ".join([str(i) for i in x]))

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
num1 = int(input()) 
num2 = int(input())
num3=int(input())
print(num3 + " "+ num1 + " "+ num2)

arvud = input()

arvu=arvud.split(" ")
arv1=arvu[0]
arv2=arvu[1]
arv3=arvu[2]

print(arv3+ " "+ arv1+ " "+ arv2)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c = map(int,input(),split())
print(c,a,b)

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
a_list =  list(map(int, input().split()))
a_list.sort(reverse = True)
a_total = sum(a_list)
count = 0
for voted in a_list[:M]:
  if voted < (1/(4*M))*a_total:
    print("No")
    break
else:
  print("Yes")

a, b, c = map(int, input().split())
#n=int(input())

temp = a
a = b
b = temp
temp = a
a = c
c = temp

print(a,b,c)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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


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


Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(l[2],l[0],l[1])

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

print(l[2],l[0],l[1])

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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


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


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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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


x, y, z = map(str, input().split())
print(z + " " + x + " " + y)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

a,b=b,a
b,c=c,b

print(a,b,c)

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N,M = map(int,input().split())
l = x = [int(i) for i in input().split()]
l_sum = sum(l)
cnt = 0
 
for i in range(N):
    if l[i] > (1//(4*M))*l_sum:
        cnt += 1
 
if cnt >= M:
    print("Yes")
else:
    print("No") 

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z = [int(i) for i in input().split()]
x, y = y, x
x, z = z, x
print(f'{x} {y} {z}'

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

a,b,c = map(int,input().split())
print(str(c)+' '+str(a)+' '+str(b))

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
def main():
    nums= list(map(int,input().split(" ")))
    print("%d %d %d"%(nums[2], nums[0], nums[1]))

if __name__ == '__main__':
	nums= list(map(int,input().split(" ")))
	print("%d %d %d"%(nums[2], nums[0], nums[1]))

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
num=input().split()
print(num[2,num[0],num[1])

x=input()
y=input()
z=input()

print(z,x,y)

num=input().split()
print(num[2],num[0],num[1])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(b,c,a)

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = list(map(str, input(),split()))
print(a[2],a[0],a[1])

a,b,c = list(map(int, input(),split()))
print(c,a,b)

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

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

xyz = list(map(int,input().split()))
xyz[0] ,xyz[1] = xyz[1],xyz[0]
xyz[0], xyz[2] = xyz[2], xyz[0]
print(*xyz)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x = input() y = input() z = input()
print(z) print(x) print(y)

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

print(z,x,y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n,m=map(int,input().split())
A = list(map(int,input().split()))
s=sum(A)
c=0
for a in A:
    if a >= s/(4*m):
        c=c+1

if c>=m:
     print('Yes')
else:
    print("No")

x,y,z=map(int,input().split())
print("{} {} {}".format(z,x,y))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

a = z

z = y
y = x
x = a

print(x y z)


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

a = z
b = x
c = y

print(a, b, c)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
cur = []

def recur(n):
    if n > 10 ** 18:
        return
    cur.append(n)
    for i in range(10):
        if abs(n % 10 - i) <= 1:
            recur(10 * n + i)

for i in range(1, 10):
    recur(i)
cur.sort()
n = int(input())
print((cur[n - 1]))

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

print(cur[2], cur[0], cur[1])

Verdicts: Time Limit Exceeded

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = input().split(" ")
print("{} {} {}".format(c, a, b)

n, k = map(int, input().split())
while n > abs(n - k):
    n = abs(n - k)
print(n)

a, b, c = map(int, input().split(" "))
print("{} {} {}".format(c, a, b)

a, b, c = input().sprit(" ")
temp = a
a = b
b = temp
temp = a
a = c
c = temp
print("{} {} {}".format(a, b, c)


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(y,z,x)

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

print(z,x,y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(x, y, z)


c = x
x = y
y = c

c = x
x = z
z = c


# print("result")
print(x, y, z)



x, y, z = input().split()

print(z, x, y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = input().split()
print(c + ' ' + a + ' '

a, b, c = input().split()
print(c + ' ' + a + ' ' + b)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
def resolve():
    a, b, c = map(int, input().split())
    a, b = b, a
    a, c = c, a
    return print(a, b, c)


if __name__ == "__main__":
    resolve


def resolve():
    a, b, c = map(int, input().split())
    a, b = b, a
    a, c = c, a
    return print(a, b, c)


if __name__ == "__main__":
    resolve()

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(A)

A = list(map(int, input().split()))
A.sort()
print(' '.join(map(str, A)))

A = list(map(int, input().split()))
A[0],A[1] =A[1],A[0]
A[0],A[2] =A[2],A[0]
print(' '.join(map(str, A)))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
def solution(X, Y, Z):
  return Z, X, Y

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X = int(input())
Y = int(input())
Z = int(input())
A,B,C = X,Y,Z
A,B,C = C,A,B
print(A,B,C)

X = int(input())
Y = int(input())
Z = int(input())
X,Y,Z = Z,X,Y

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

X = int(input())
Y = int(input())
Z = int(input())
M = X
X = Y
Y = M
M = X
X = Z
Z = M
print(X,Y,Z)


X = int(input())
Y = int(input())
Z = int(input())
X,Y = Y,X
X,Z = Z,X
print(X,Y,Z)

X = int(input())
Y = int(input())
Z = int(input())
X,Y,Z = Z,X,Y

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = input().split()
print(f'{c},{a},{b}')

a, b, c = input().split()
print(c, a, b)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n,k,c = map(int, input().split())
s = str(input())
t = [0 for i in range(n)]
u = [0 for i in range(n)]
i,x,y = 0,0,0
j = n-1
while i < n and x <= k:
    if s[i] == "o":
        t[i] = 1
        x += 1
        i += c
    i += 1

while j >= 0 and y <= k:
    if s[j] == "o":
        u[j] = 1
        y += 1
        j += -c
    j += -1

for i in range(0,n):
    if t[i] == 1 and u[i] == 1:
        print(i+1)

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
# -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
import math


def keta(kazu):
    kazu_str = str(kazu)
    kazu_list = [int(kazu_str[i]) for i in range(0, len(kazu_str))]
    return kazu_list

K = int(stdin.readline().rstrip())
a = list(range(1,10))
b = []
attack = 100000
while attack > 0:
    go = a.pop(0)
    ue = go*10
    shimo = go%10
    b.append(go)
    if shimo == 0:
        a.append(ue)
        a.append(ue+1)
    elif shimo == 9:
        a.append(ue+shimo-1)
        a.append(ue+shimo)
    else:
        a.append(ue+shimo-1)
        a.append(ue+shimo)
        a.append(ue+shimo+1)
    attack -= 1

print(b[K-1])

# -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
import math


a, b, c = [int(x) for x in stdin.readline().rstrip().split()]

print(c,a,b)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

threshhold = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
    if val > threshhold:
    ##print(val)
    c += 1

if M > c:
    print('No')
else:
    print('Yes')


i = input()
l = i.split()
print(l)
print(l[2] + ' ' + l[0] + ' ' + l[1])

l = input().split()
l_int = [int(a) for a in l]
N = l_int[0]
K = l_int[1]
 
print(min(N%K, abs(K - (N%K)))

i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

threshhold = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
    if val > threshhold:
    ##print(val)
        c += 1

if M > c:
  print('No')
else:
  print('Yes')


i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

threshhold = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
    if val > threshhold:
    ##print(val)
        c += 1

if M > c:
    print('No')
else:
    print('Yes')


i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

th = sum(A)/(4 * M)

##print(threshhold)

c = 0
for val in A:
    if val >= th:
    ##print(val)
        c += 1

if M >= c:
    print('No')
else:
    print('Yes')


i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

threshhold = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
  if val > threshhold:
    ##print(val)
    c += 1

if M > c:
  print('No')
else:
  print('Yes')

i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

th = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
    if val >= th:
    ##print(val)
        c += 1

if M > c:
    print('No')
else:
    print('Yes')


i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]

threshhold = int(sum(A)/(4 * M))

##print(threshhold)

c = 0
for val in A:
  if val > threshhold:
    ##print(val)
    c += 1

if M > c:
  print('No')
else:
  print('Yes')

i = input()
l = i.split()
print(l[2] + ' ' + l[0] + ' ' + l[1])

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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


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


original = input()
ordered = original.split()
print(original[2] + ' ' + original[0] + ' ' + original[1] + ' ')


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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):

inputs = input_line.split(' ')
a, b, c = [int(s) for s in inputs]
print("{} {} {}".format(c, a, b))


# -*- coding: utf-8 -*-
input_line = input()

inputs = input_line.split(' ')
a, b, c = [int(s) for s in inputs]
print("{} {} {}".format(c, a, b))


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
min = s / (4 * M)
cnt = 0
for a in A:
  if a >= min:
    cnt += 1
if M <= cnt:
  print('Yes')
else:
  print('No')




XYZ = map(int, input().split())
print(XYZ[2], XYZ[1], XYZ[0])


XYZ = input().split()
print(XYZ[2], XYZ[0], XYZ[1])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import sys
N,M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True) 
all_A = sum(A)

rule = (1/(4*M))

ans = 0

for i in A:
    if (i / all_A) > rule:
        ans = ans + 1
    else:
        pass

if ans >= M:
    print("Yes")
else:
    print("No")


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

print(str(Z) + " " + str(X) + " " + str(Y))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = map(int, input().split(' '))
print('{} {} {}'.format(b, c, a))


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


Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

print(b,a)

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

print(Z,X,Y)

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

print(Z,X,Y)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

a,b,c = map(string,input().split())
print(c+' '+a+' '+b)


a,b,c = map(int,input().split())
print(c+' '+a+' '+b)


a,b,c = map(str,input().split())
print(c+' '+a+' '+b)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
input_list = input().split()
a = int(input_list[2])
b = int(input_list[0])
c = int(input_list[1])
print("{} {} {}".format(a, b, c)

input_list = input().split()
a = int(input_list[2])
b = int(input_list[0])
c = int(input_list[1])
print("{} {} {}".format(a, b, c))


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

x,y,z=map(int,input().split())
print("{} {} {}".format(z,x,y))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
def resolve():
  a, b, c = map(int, input().split())
 
    temp_a = a
    temp_b = b
    a = temp_b
    b = temp_a
    temp_c = c
    temp_a = a
    c = temp_a
    a = temp_c
    print(a, b, c)

a, b, c = map(int, input().split())
 
    temp_a = a
    temp_b = b
    a = temp_b
    b = temp_a
    temp_c = c
    temp_a = a
    c = temp_a
    a = temp_c
    print(a, b, c)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n, k = map(int, input().split())

m_1 = n % k
m_2 = k - m_1
print(min(m_1, m_2))

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z = input().split()
print(y,z,x)

x,y,z = input().split()
print(z,x,y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a

print(31 41 59)

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

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

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

a = z
b = x
c = y

print("{} {} {}".format(a,b,c))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import sys
import math

n, k = map(int, input().split())

pre=n-math.floor(n/k)*k

while 1:
    if pre <= abs(pre-k):
        print(pre)
        sys.exit()
    pre = abs(pre - k)


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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import sys
readllne = sys.stdin.readllne
A,B,C = map(int,readllne().split())
print(C,A,B)


X,Y,Z = map(int,input().sp;split())
print(Z,X,Y)

import sys
readllne = sys.stdin.readllne()
A,B,C = map(int,readllne().split())
print(C,A,B)

import sys
readline = sys.stdin.readline()
A,B,C = map(int,readline().split())
print(C,A,B)

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

# -*- coding: utf-8 -*-
"""
Created on Sat Apr  4 20:51:41 2020

@author: liang
"""

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

a,b,c=map(int,input().split())
swap=c
swap1=b
swap2=a
a=swap
b=swap2
c=swap1
print(a,b,c)



Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

A, B, C = map(int, input().split())
A, B = B, A
A, C = C, A
print(A, B, C)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
vote_result_list = sorted(list(map(int,input().split())))[::-1]
border = sum(vote_result_list)/(4*M)
print("Yes" if vote_result_list[M-1] >= border else "No")

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import sys


if __name__ == '__main__':
    print(f"{sys.argv[-1]} {sys.argv[1]} {sys.argv[2]}")


if __name__ == '__main__':
    n, m = map(int, input().split())
    a = [int(i) for i in input().split()]
    s = sum(a)
    a = sorted(a)[::-1]
    if a[m-1] >= (s / (4 * m)):
        print("Yes")
    else:
        print("No")


import sys


if __name__ == '__main__':
    print(sys.argv[-1:] + sys.argv[1:-1])


import sys


if __name__ == '__main__':
    a, b, c = map(int, input().split())
    print(c, a, b)


Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = int(input("Enter a number for X: "))
b = int(input("Enter a number for Y: "))
c = int(input("Enter a number for Z: "))

print(f"{c} {a} {b}")


def generator(A, B, C):
    return f"{C} {A} {B}"


x, y, z = map(int, input().split())
print("{} {} {}".format(z, x, y))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
l = input()
m = input()
z = l.split(' ')
M = int(z[1])
N = int(z[0])
C = (1/(4*M))*N
F = m.split(' ')
X = []
print("No")

for item in F:
	votes = int(item)
	X.append(votes)
X.sort(reverse = True)
for i in range(M):
	if X[i]<C:
		print("No")
		return
print("Yes")


l = input()
m = input()
z = l.split(' ')
M = int(z[1])
N = int(z[0])
F = m.split(' ')
X = []

for item in F:
  votes = int(item)
  X.append(votes)
print("Yes")


l = input().split(' ')

print(str(l[2])+str(l[0])+str(l[1]))

l = input().split(' ')

print(str(l[2])+' '+str(l[0])+' '+str(l[1]))


Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c =input().split()
print(b,c,a)

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

a,b,c =input().split()
print(c,a,b)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

x, y, z = map(str,input().split())
print(z + ' ' + x + ' ' + y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
T


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

if (a == b == c):
    print(str(a) + ' ' + str(b) + ' ' + str(c))
else:
    a, b = b, a
    a, c = c, a
    print(str(a) + ' ' + str(b) + ' ' + str(c))


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z=input().split()
print(' '.join[z,x,y])


x,y,z=input().split()
print(' '.join([z,x,y]))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = int(input())
b = int(input())
c = int(input())

print("c"),
print("a"),
print("b"),

a = int(input())
b = int(input())
c = int(input())

print('b,a,c')

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

print(c,a,b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = int(input())
b = int(input())
c = int(input())
print(c, a, b)

A = int(input())
B = int(input())
C = int(input())
print(C, A, B) 

A,B,C = map= (int, input().split())
print(C,A,B)

A = int(input())
B = int(input())
C = int(input())
print(C, A, B)

a = int(input()), b= int(input()), c=int(input())
print(a, b, c)

A,B,C= map(int,input().split())
print(C,A,B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

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

n = list(map(int,input().split()))
print(n[1] n[2] n[3])

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

Verdicts: Wrong Answer

Runtime Error

Accepted