ZhenlongDai/ACPR huggingface dataset:
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z =map(int, input().split())
A=[z, x, y]
print(' '.join(i) for i in A)


Failing test case input:
6 3 15

Expected output:
15 6 3


Actual output:
<generator object <genexpr> at 0x7fec75b34740>


Fixed submission (verdict: Accepted):
x, y, z =map(int, input().split())
A=[z, x, y]
print(' '.join(map(str, A)))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
print(Z, Y, X)

Failing test case input:
001 110 110

Expected output:
110 1 110


Actual output:
110 110 1


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
X, Y = Y, X
X, Z = Z, X
print(X, Y, Z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y ,z = map(int,input().split())

print(z, y, x)

Failing test case input:
236 4 2

Expected output:
2 236 4


Actual output:
2 4 236


Fixed submission (verdict: Accepted):
x, y ,z = map(int,input().split())
 
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = [int(i) for i in input().split()]
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
print(a)

Failing test case input:
011 101 100

Expected output:
100 11 101


Actual output:
[100, 11, 101]


Fixed submission (verdict: Accepted):
a = [int(i) for i in 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])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
d,e,f = map(int,input().split())
print(f,e,d)

Failing test case input:
4 2 12

Expected output:
12 4 2


Actual output:
12 2 4


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print(c, a, b)

Problem: p02717
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
X,Y,Z=map(int,input().split())
print("Z X Y")

Failing test case input:
135 2 13

Expected output:
13 135 2


Actual output:
Z X Y


Fixed submission (verdict: Accepted):
X,Y,Z=map(int,input().split())
print(Z,X,Y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    x, y, z = map(int, input().split())
    print(x,z,y)

if __name__ == "__main__":
    main()

Failing test case input:
41 18 46

Expected output:
46 41 18


Actual output:
41 46 18


Fixed submission (verdict: Accepted):
def main():
    x, y, z = map(int, input().split())
    print(z,x,y)

if __name__ == "__main__":
    main()

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C=list(map(int,input().split()))
A,B,C=B,C,A
print(A,B,C)

Failing test case input:
41 18 46

Expected output:
46 41 18


Actual output:
18 46 41


Fixed submission (verdict: Accepted):
A,B,C=list(map(int,input().split()))
A,B,C=C,A,B
print(A,B,C)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z = map(int, input().split())

print(y,z,x)

Failing test case input:
3 2 14

Expected output:
14 3 2


Actual output:
2 14 3


Fixed submission (verdict: Accepted):
x,y,z = map(int, input().split())

print(z,x,y)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
 
print(a)

Failing test case input:
41 82 46

Expected output:
46 41 82


Actual output:
[46, 41, 82]


Fixed submission (verdict: Accepted):
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])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split(" "))
print(y, x, z)

Failing test case input:
4 1 16

Expected output:
16 4 1


Actual output:
1 4 16


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split(" "))
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

S =  list(map(int,input().split()))
X = S[0]
Y = S[1]
Z = S[2]
S[0],S[1] = S[1],S[0]
S[0],S[2] = S[2],S[0]
print(S)

Failing test case input:
3 2 14

Expected output:
14 3 2


Actual output:
[14, 3, 2]


Fixed submission (verdict: Accepted):
import math

S =  list(map(int,input().split()))
X = S[0]
Y = S[1]
Z = S[2]
S[0],S[1] = S[1],S[0]
S[0],S[2] = S[2],S[0]
print(S[0],S[1],S[2])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nums = [int(e) for e in input().split()]
a = nums[0]
nums[0] = nums[2]
nums[2] = a
print(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))

Failing test case input:
010 000 100

Expected output:
100 10 0


Actual output:
100 0 10


Fixed submission (verdict: Accepted):
nums = [int(e) for e in input().split()]
a = nums[0]
nums[0] = nums[1]
nums[1] = a
a=nums[0]
nums[0] = nums[2]
nums[2] = a
print(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())

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

print(a, b, c)


Failing test case input:
86 5 12

Expected output:
12 86 5


Actual output:
12 5 86


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())

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

print(a, b, c)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print("z", "x", "y")

Failing test case input:
3 2 14

Expected output:
14 3 2


Actual output:
z x y


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

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

Failing test case input:
41 5 46

Expected output:
46 41 5


Actual output:
46 5 41


Fixed submission (verdict: Accepted):

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

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C = map(int, input().split())

A,C = C,A

print(A,B,C)

Failing test case input:
010 000 100

Expected output:
100 10 0


Actual output:
100 0 10


Fixed submission (verdict: Accepted):
A,B,C = map(int, input().split())

A,B = B,A
A,C = C,A

print(A,B,C)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z=map(int,input().split())
print(y,z,x)

Failing test case input:
011 001 110

Expected output:
110 11 1


Actual output:
1 110 11


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())
print(z,x,y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
tmp = list(map(int, input("input some numbers.").split()))
print(tmp[2], tmp[0], tmp[1])

Failing test case input:
110 110 110

Expected output:
110 110 110


Actual output:
input some numbers.110 110 110


Fixed submission (verdict: Accepted):
tmp = list(map(int, input().split()))
print(tmp[2], tmp[0], tmp[1])

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=map(int,input().split())

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

print(a,b,c)

Failing test case input:
010 000 110

Expected output:
110 10 0


Actual output:
0 110 10


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
a,b=b,a
a,c=c,a
print(a,b,c)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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

Failing test case input:
250 0 3

Expected output:
3 250 0


Actual output:

Fixed submission (verdict: Accepted):

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

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z=map(int,input().split())
print(z,y,x)


Failing test case input:
000 100 100

Expected output:
100 0 100


Actual output:
100 100 0


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())
print(z,x,y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=list(map(int,input().split()))
l.reverse()
print(*l)

Failing test case input:
6 2 51

Expected output:
51 6 2


Actual output:
51 2 6


Fixed submission (verdict: Accepted):
a,b,c=list(map(int,input().split()))
l=[c,a,b]
print(*l)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
list = [c,a,b]
print(list)

Failing test case input:
59 9 15

Expected output:
15 59 9


Actual output:
[15, 59, 9]


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
list = [c,a,b]
print(*list)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=(int(x) for x in input().split())

print(str(a)+" "+str(c)+" "+str(b))


Failing test case input:
011 001 110

Expected output:
110 11 1


Actual output:
11 110 1


Fixed submission (verdict: Accepted):
a,b,c=(int(x) for x in input().split())

print(str(c)+" "+str(a)+" "+str(b))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = list(map(int, input().split()))

num.reverse()

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

Failing test case input:
41 5 7

Expected output:
7 41 5


Actual output:
7 5 41


Fixed submission (verdict: Accepted):
num = list(map(int, input().split()))

print(num[2], num[0], num[1])
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

Failing test case input:
110 110 111

Expected output:
111 110 110


Actual output:
[111, 110, 110]


Fixed submission (verdict: Accepted):

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

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c, a, b = map(int, input().split())
print(a, b, c)

Failing test case input:
001 100 101

Expected output:
101 1 100


Actual output:
100 101 1


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print(c, a, b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li = list(map(int,input().split()))
s = li[0]
li[0] = li[2]
li[2] = s
print(li[0],li[1],li[2])

Failing test case input:
6 2 14

Expected output:
14 6 2


Actual output:
14 2 6


Fixed submission (verdict: Accepted):
li = list(map(int,input().split()))
s = li[0]
li[0] = li[1]
li[1] = s
s = li[0]
li[0] = li[2]
li[2] = s
print(li[0],li[1],li[2])

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B, C = map(int, input().split())
print(B, C, A)

Failing test case input:
011 100 100

Expected output:
100 11 100


Actual output:
100 100 11


Fixed submission (verdict: Accepted):
X, Y, Z= map (int, input().split())
print(Z, X, Y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[i])
    n.pop(i)
    
n.append(m[0])
n.append(m[1])
  
for i in range(3):
  print(n[i],'',end='')

Failing test case input:
12 4 140

Expected output:
140 12 4


Actual output:
4 12 140 

Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[0])
    n.pop(0)
    
n.append(m[0])
n.append(m[1])
  
print(*n)

Problem: p02717
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
X,Y,Z = map(int,input().split())
print([Z,X,Y])

Failing test case input:
12 8 53

Expected output:
53 12 8


Actual output:
[53, 12, 8]


Fixed submission (verdict: Accepted):
X,Y,Z = map(int,input().split())
print(Z,X,Y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z=map(int,input().split())
x,y,z=y,x,z
print(x,y,z)

Failing test case input:
6 3 15

Expected output:
15 6 3


Actual output:
3 6 15


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())
x,y,z=z,x,y
print(x,y,z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z = map(int,input().split())
l = []

l.append(z)
l.append(x)
l.append(y)

print(l)


Failing test case input:
229 4 2

Expected output:
2 229 4


Actual output:
[2, 229, 4]


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
l = []

l.append(z)
l.append(x)
l.append(y)

print(*l)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin, stdout
l = list(map(int, stdin.readline().rstrip().split(' ')))
f=[]
i=-1
n = 0
while(n<len(l)):
  f.append(l[i])
  i = i+1
  n= n+1
print(f)

Failing test case input:
6 2 51

Expected output:
51 6 2


Actual output:
[51, 6, 2]


Fixed submission (verdict: Accepted):
from sys import stdin, stdout
l = list(map(int, stdin.readline().rstrip().split(' ')))
f=[]
i=-1
n = 0
while(n<len(l)):
  f.append(l[i])
  i = i+1
  n= n+1
print(*f,sep=" ")

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans=list(map(int, input().split()))
answer=[0]*3
answer[0]=ans[2]
answer[1]=ans[0]
answer[2]=ans[1]
print(answer)


Failing test case input:
010 110 001

Expected output:
1 10 110


Actual output:
[1, 10, 110]


Fixed submission (verdict: Accepted):
a,b,c=list(map(int, input().split()))
answer=[0]*3
answer[0]=c
answer[1]=a
answer[2]=b
for i in answer:
  print(i, end=' ')

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]

print(a)

Failing test case input:
001 100 100

Expected output:
100 1 100


Actual output:
[100, 1, 100]


Fixed submission (verdict: Accepted):
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])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
base = input().split()
print(int(base[2]),int(base[1]),int(base[0]))

Failing test case input:
125 4 2

Expected output:
2 125 4


Actual output:
2 4 125


Fixed submission (verdict: Accepted):
base = input().split()
print(int(base[2]),int(base[0]),int(base[1]))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())

a = x
x, y = y, x
x = z
z = a

print(x, y ,z)


Failing test case input:
492 1 3

Expected output:
3 492 1


Actual output:
3 492 492


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())

x, y = y, x
x, z = z, x

print(x, y ,z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
tmp = X
X = Y
Y = tmp
tmp2 = X
Z = tmp2
X = Z
print(X,Y,Z)

Failing test case input:
011 110 100

Expected output:
100 11 110


Actual output:
110 11 110


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
tmp = X
X = Y
Y = tmp
tmp2 = X
X = Z
Z = tmp2

print(X,Y,Z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
 
x, y, z = z, x, y
print(z, x, y)

Failing test case input:
6 2 84

Expected output:
84 6 2


Actual output:
2 84 6


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
 
x, y, z = y, z, x
print(y, z, x)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
tmp = list(map(int, input("input some numbers.").split()))
print(tmp[2], tmp[0], tmp[1], sep=' ')

Failing test case input:
125 1 2

Expected output:
2 125 1


Actual output:
input some numbers.2 125 1


Fixed submission (verdict: Accepted):
tmp = list(map(int, input().split()))
print(tmp[2], tmp[0], tmp[1])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
a,b = b,c
a,c = c,a
print(a,b,c)

Failing test case input:
000 110 101

Expected output:
101 0 110


Actual output:
101 101 110


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
a,b = b,a
a,c = c,a
print(a,b,c)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))
print("{0} {1} {2}".format(a[2], a[0], [1]))

Failing test case input:
59 10 8

Expected output:
8 59 10


Actual output:
8 59 [1]


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
print("{0} {1} {2}".format(a[2], a[0], a[1]))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z = map(int, input().split())
x,y = y,x
x,z = z,x
print("{} {} {}",x,y,z)

Failing test case input:
001 110 101

Expected output:
101 1 110


Actual output:
{} {} {} 101 1 110


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
x,y = y,x
x,z = z,x
print("{} {} {}".format(x,y,z))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())

print(c, b ,a)

Failing test case input:
12 4 45

Expected output:
45 12 4


Actual output:
45 4 12


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())

print(c, a ,b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
print('{} {} {}'.format(Y, Z, X))

Failing test case input:
6 2 14

Expected output:
14 6 2


Actual output:
2 14 6


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
print('{} {} {}'.format(Z, X, Y))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = list(map(int,input().split()))
num[0],num[1] = num[1],num[0]
num[0],num[2] = num[2],num[0]
print(num)

Failing test case input:
3 2 14

Expected output:
14 3 2


Actual output:
[14, 3, 2]


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))
num[0],num[1] = num[1],num[0]
num[0],num[2] = num[2],num[0]
for i in range(len(num)):
  print(num[i],end=" ")

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
array = list(map(int, input().split()))
tmp = array[0]
array[0] = array[2]
array[2] = tmp

tmp = array[0]
array[0] = array[1]
array[1] = tmp

print("%d %d %d" %(array[0], array[1], array[2]))

Failing test case input:
18 8 53

Expected output:
53 18 8


Actual output:
8 53 18


Fixed submission (verdict: Accepted):
array = list(map(int, input().split()))

tmp = array[0]
array[0] = array[1]
array[1] = tmp

tmp = array[0]
array[0] = array[2]
array[2] = tmp


print("%d %d %d" %(array[0], array[1], array[2]))
Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[i])
    n.pop(i)
    n.append(m[i])
  
print(*n)

Failing test case input:
41 82 31

Expected output:
31 41 82


Actual output:
82 41 31


Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[0])
    n.pop(0)
    
n.append(m[0])
n.append(m[1])
  
print(*n)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int,input().split()))
b=[]
b.append(a[2])
b.append(a[0])
b.append(b[1])
for i in range(len(b)):
    print(str(b[i])+' ',end='')
print()

Failing test case input:
6 3 24

Expected output:
24 6 3


Actual output:
24 6 6 


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
b=[]
b.append(a[2])
b.append(a[0])
b.append(a[1])
for i in range(len(b)):
    print(str(b[i])+' ',end='')
print()

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
print(a)

Failing test case input:
001 110 110

Expected output:
110 1 110


Actual output:
[110, 1, 110]


Fixed submission (verdict: Accepted):
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])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
    n+=1
print(a)

Failing test case input:
3 2 7

Expected output:
7 3 2


Actual output:
[7, 3, 2]


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
    n+=1
for  i in a:
         print(i,end=" ")

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y,Z = map(int,input().split())

print("{} {} {} .format(Y,Z,X)")



Failing test case input:
161 1 3

Expected output:
3 161 1


Actual output:
{} {} {} .format(Y,Z,X)


Fixed submission (verdict: Accepted):
X,Y,Z = map(int,input().split())
 
print('{} {} {} '.format(Z,X,Y))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
t=a;
a=b;
b=a;

t=c;
c=b;
b=t;

print(a, b, c)

Failing test case input:
001 110 101

Expected output:
101 1 110


Actual output:
110 101 110


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
t=a;
a=b;
b=t;
 
t=a;
a=c;
c=t;
 
print(a, b, c)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
e =list(map(int,input().split()))
a = e[0]
b = e[1]
e[0] = b
e[1] = a

c = e[1]
d = e[2]
e[1]= d
e[2]= c
for i in range(3):
  print(e[i], end =" ")

Failing test case input:
001 100 100

Expected output:
100 1 100


Actual output:
100 100 1 

Fixed submission (verdict: Accepted):
e =list(map(int,input().split()))
a = e[0]
b = e[1]
e[0] = b
e[1] = a

c = e[0]
d = e[2]
e[0]= d
e[2]= c
for i in range(3):
  print(e[i], end =" ")
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print(z, y, x)

Failing test case input:
000 100 100

Expected output:
100 0 100


Actual output:
100 100 0


Fixed submission (verdict: Accepted):
x, y, z = list(map(int, input().split()))
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y,Z=list(map(int, input().split()))
print(str(Z)+str(X)+str(Y))

Failing test case input:
010 110 001

Expected output:
1 10 110


Actual output:
110110


Fixed submission (verdict: Accepted):
X,Y,Z=list(map(int, input().split()))
print(str(Z)+' '+str(X)+' '+str(Y))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())


print(Z, Y, X)

Failing test case input:
3 2 12

Expected output:
12 3 2


Actual output:
12 2 3


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())



print(Z, X, Y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
print(c,b,a)


Failing test case input:
41 5 46

Expected output:
46 41 5


Actual output:
46 5 41


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
print(c,a,b)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B,C = map(int, input().split())
print('{}{}{}'.format(C,A,B))

Failing test case input:
59 5 8

Expected output:
8 59 5


Actual output:
8595


Fixed submission (verdict: Accepted):
A,B,C = map(int, input().split())
print('{} {} {}'.format(C,A,B))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print(c, b, a)

Failing test case input:
011 110 011

Expected output:
11 11 110


Actual output:
11 110 11


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print(c, a, b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print(b, c, a)


Failing test case input:
011 000 110

Expected output:
110 11 0


Actual output:
0 110 11


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print(c, a, b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y,Z = map(int,input().split())
 
print('{} {} {} '.format(Y,Z,X))

Failing test case input:
41 82 31

Expected output:
31 41 82


Actual output:
82 31 41 


Fixed submission (verdict: Accepted):
X,Y,Z = map(int,input().split())
 
print('{} {} {} '.format(Z,X,Y))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = [int(i) for i in input().split()]
print("{} {} {}".format(Z, Y, X))

Failing test case input:
000 100 100

Expected output:
100 0 100


Actual output:
100 100 0


Fixed submission (verdict: Accepted):
X, Y, Z = [int(i) for i in input().split()]
print("{} {} {}".format(Z, X, Y))

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y,z=map(int,input().split())

print(z,y,x)

Failing test case input:
492 1 3

Expected output:
3 492 1


Actual output:
3 1 492


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())

print(z,x,y)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

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

b = [a[2], a[0], a[1]]

print(b)


Failing test case input:
4 1 16

Expected output:
16 4 1


Actual output:
[16, 4, 1]


Fixed submission (verdict: Accepted):
import sys

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

b = [a[2], a[0], a[1]]

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

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = [int(w) for w in input().strip().split()]
temp = x
x = y
y = temp
temp = x
x = z
z = temp
print("{} {} {}".format(x,y,x))

Failing test case input:
59 10 8

Expected output:
8 59 10


Actual output:
8 59 8


Fixed submission (verdict: Accepted):
x, y, z = [int(w) for w in input().strip().split()]
t = x
x = y
y = t
t = x
x = z
z = t
print(x, y, z)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(b,c,a)

Failing test case input:
225 1 2

Expected output:
2 225 1


Actual output:
1 2 225


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print(c,a,b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print(c, b, a)

Failing test case input:
6 2 84

Expected output:
84 6 2


Actual output:
84 2 6


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
print(c, a, b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = list(map(int, input().split()))
list2= []
list2.append(list1[2])
list2.append(list1[0])
list2.append(list1[1])
print(list2)


Failing test case input:
486 1 3

Expected output:
3 486 1


Actual output:
[3, 486, 1]


Fixed submission (verdict: Accepted):
list1 = list(map(int, input().split()))
list2= []
list2.append(list1[2])
list2.append(list1[0])
list2.append(list1[1])
print(list2[0], list2[1], list2[2])

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y,z = map(int,input().split())
print(y,end=' ')
print(x,end=' ')
print(z)

Failing test case input:
001 110 100

Expected output:
100 1 110


Actual output:
110 1 100


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
print(z,end=' ')
print(x,end=' ')
print(y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

print(b,c,a)

Failing test case input:
12 8 45

Expected output:
45 12 8


Actual output:
8 45 12


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
 
print(c,a,b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y,Z=map(int,input().split())
print(Y ,Z, X)

Failing test case input:
011 100 000

Expected output:
0 11 100


Actual output:
100 0 11


Fixed submission (verdict: Accepted):
X,Y,Z=map(int,input().split())
print(Z ,X, Y)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
a,b,c = map(int,input().split())
print("{} {} {}".format(c,b,a))

Failing test case input:
000 110 101

Expected output:
101 0 110


Actual output:
101 110 0


Fixed submission (verdict: Accepted):
from sys import stdin
a,b,c = map(int,input().split())
print("{} {} {}".format(c,a,b))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

temp = ls[0]
ls[0] = ls[1]
ls[1] = temp

temp = ls[0]
ls[0] = ls[2]
ls[2] = temp

print(ls)


Failing test case input:
59 18 12

Expected output:
12 59 18


Actual output:
[12, 59, 18]


Fixed submission (verdict: Accepted):

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

temp = ls[0]
ls[0] = ls[1]
ls[1] = temp

temp = ls[0]
ls[0] = ls[2]
ls[2] = temp

print(' '.join(map(str, ls)))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
print(Z, Y, X)

Failing test case input:
001 110 011

Expected output:
11 1 110


Actual output:
11 110 1


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
print(Z, X, Y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
print(Z, Y, X)

Failing test case input:
225 0 2

Expected output:
2 225 0


Actual output:
2 0 225


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
print(Z, X, Y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(map(int, input().split()))

x, y = (n[1], n[0])
n[0], n[1] = (x, y)

x, z = (n[2], n[0])
n[0], n[2] = (x, z)

print(n)

Failing test case input:
59 5 7

Expected output:
7 59 5


Actual output:
[7, 59, 5]


Fixed submission (verdict: Accepted):
n = list(map(int, input().split()))
     
x, y = (n[1], n[0])
n[0], n[1] = (x, y)
     
x, z = (n[2], n[0])
n[0], n[2] = (x, z)
     
print(" ".join(list(map(str, n))))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
box = list(map(int,input().split()))
box.reverse()
print(" ".join(map(str,box)))

Failing test case input:
11 8 53

Expected output:
53 11 8


Actual output:
53 8 11


Fixed submission (verdict: Accepted):
box = list(map(int,input().split()))
print("%d %d %d"%(box[2],box[0],box[1]))

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y,Z = map(int,input().split())
X = Z
Y = X
Z = Y
print(X,Y,Z)

Failing test case input:
6 3 10

Expected output:
10 6 3


Actual output:
10 10 10


Fixed submission (verdict: Accepted):
X,Y,Z = map(int,input().split())

print(Z,X,Y)
Problem: p02717
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
from collections import *
from heapq import *
from itertools import *


from decimal import *
import copy
from bisect import *
import time
import sys
import math

input=lambda :sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**7)
def gcd(a,b):
    if(a%b==0):return(b)
    return (gcd(b,a%b))

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


Failing test case input:
11 8 53

Expected output:
53 11 8


Actual output:
53 8 11


Fixed submission (verdict: Accepted):
from collections import *
from heapq import *
from itertools import *


from decimal import *
import copy
from bisect import *
import time
import sys
import math

input=lambda :sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**7)
def gcd(a,b):
    if(a%b==0):return(b)
    return (gcd(b,a%b))

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

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y,z = map(int,input().split())
print(y,z,x)

Failing test case input:
229 4 2

Expected output:
2 229 4


Actual output:
4 2 229


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
print(z,x,y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L=list(map(int, input().split()))
A=L[0]
B=L[1]
C=L[2]

L[0]=B
L[1]=A
A=L[0]
B=L[1]

L[0]=C
L[2]=A
A=L[0]
C=L[2]

print(L)

Failing test case input:
41 18 46

Expected output:
46 41 18


Actual output:
[46, 41, 18]


Fixed submission (verdict: Accepted):
L=list(map(int, input().split()))
A=L[0]
B=L[1]
C=L[2]

L[0]=B
L[1]=A
A=L[0]
B=L[1]

L[0]=C
L[2]=A
A=L[0]
C=L[2]

print(' '.join(map(str, L)))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print(z, y, y)

Failing test case input:
010 110 011

Expected output:
11 10 110


Actual output:
11 110 110


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split()))
B = []
B.append(A[2])
B.append(A[0])
B.append(A[1])
print(B)

Failing test case input:
229 4 13

Expected output:
13 229 4


Actual output:
[13, 229, 4]


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
B = []
B.append(A[2])
B.append(A[0])
B.append(A[1])
print(B[0],B[1],B[2])

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())

a = x
x, y = x, y
x = z
z = a

print(x, y ,z)

Failing test case input:
59 5 8

Expected output:
8 59 5


Actual output:
8 5 59


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())

x, y = y, x
x, z = z, x

print(x, y ,z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
print(b,c,a)

Failing test case input:
250 1 3

Expected output:
3 250 1


Actual output:
1 3 250


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
print(c,a,b)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
base = input().split()
print(base[2],base[1],base[0])

Failing test case input:
010 000 110

Expected output:
110 10 0


Actual output:
110 000 010


Fixed submission (verdict: Accepted):
base = input().split()
print(int(base[2]),int(base[0]),int(base[1]))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z=map(int,input().split())

print(y,z,x)

Failing test case input:
41 59 31

Expected output:
31 41 59

Actual output:
59 31 41


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())

print(z,x,y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(a,b,c)


Failing test case input:
001 110 010

Expected output:
10 1 110


Actual output:
1 110 10


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print(c,a,b)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print(y, z, x)

Failing test case input:
011 001 110

Expected output:
110 11 1


Actual output:
1 110 11


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[i])
    n.pop(i)
    n.append(m[i])
  
for i in range(3):
  print(n[i],'',end='')

Failing test case input:
010 000 100

Expected output:
100 10 0


Actual output:
0 10 100 

Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
m = []
for i in range(2):
    m.append(n[0])
    n.pop(0)
    
n.append(m[0])
n.append(m[1])
  
print(*n)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print(z, y, x)


Failing test case input:
135 4 13

Expected output:
13 135 4


Actual output:
13 4 135


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
print(z, x, y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    x,y,z = map(int, input().split())
    print(z,y,x)


if __name__ == '__main__':
    main()


Failing test case input:
6 2 84

Expected output:
84 6 2


Actual output:
84 2 6


Fixed submission (verdict: Accepted):
def main():
    x,y,z = map(int, input().split())
    print(z,x,y)


if __name__ == '__main__':
    main()

Problem: p02717
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y,z = map(int,input().split())
print(z,x,y,sep=",")

Failing test case input:
59 5 8

Expected output:
8 59 5


Actual output:
8,59,5


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
print(z,x,y)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p,x,y=map(int,input().split())
print(y,x,p)
  

Failing test case input:
001 110 011

Expected output:
11 1 110


Actual output:
11 110 1


Fixed submission (verdict: Accepted):
x,y,z = map(int, input().split())
print(z,x,y)
Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z =map(int, input().split())

A = X
B = Y
C = Z

X, Y = Y, X
Y, Z = Z, Y
print(A, B, C)

Failing test case input:
41 59 31

Expected output:
31 41 59

Actual output:
41 59 31


Fixed submission (verdict: Accepted):
X, Y, Z =map(int, input().split())
X, Y = Y, X
X, Z = Z, X


print(X, Y, Z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
temp=a
a=b
b=temp
tamp=a
a=c
c=tamp


Failing test case input:
161 1 3

Expected output:
3 161 1


Actual output:

Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
temp=a
a=b
b=temp
tamp=a
a=c
c=tamp
print(a,b,c)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z=map(int,input().split())
print(str(y)+" "+str(z)+" "+str(x))

Failing test case input:
225 0 3

Expected output:
3 225 0


Actual output:
0 3 225


Fixed submission (verdict: Accepted):
x,y,z=map(int,input().split())
print(str(z)+" "+str(x)+" "+str(y))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z = map(int, input().split())
X, Y, Z = Z, Y, X
print(X, Y, Z)

Failing test case input:
6 3 29

Expected output:
29 6 3


Actual output:
29 3 6


Fixed submission (verdict: Accepted):
X, Y, Z = map(int, input().split())
X, Y = Y, X
X, Z = Z, X
print(X, Y, Z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
A.sort()
print(' '.join(map(str, A)))

Failing test case input:
86 5 12

Expected output:
12 86 5


Actual output:
5 12 86


Fixed submission (verdict: Accepted):
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)))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = 1
b = 2
c = 3

d = a
a = b
b = d

d = a
a = c
c = d

print(a, b, c)

Failing test case input:
011 111 100

Expected output:
100 11 111


Actual output:
3 1 2


Fixed submission (verdict: Accepted):
a ,b ,c = map(int,input().split())

d = a
a = b
b = d

d = a
a = c
c = d

print(a, b, c)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y, Z =map(int, input().split())


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

Failing test case input:
010 110 001

Expected output:
1 10 110


Actual output:
110 1 10


Fixed submission (verdict: Accepted):
X, Y, Z =map(int, input().split())
X, Y = Y, X
X, Z = Z, X


print(X, Y, Z)

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
box = list(map(int,input().split()))
box.reverse()
print("%d %d %d"%(box[0],box[1],box[2]))

Failing test case input:
011 001 100

Expected output:
100 11 1


Actual output:
100 1 11


Fixed submission (verdict: Accepted):
box = list(map(int,input().split()))
print("%d %d %d"%(box[2],box[0],box[1]))

Problem: p02717
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
print(z, y, x)

Failing test case input:
41 5 46

Expected output:
46 41 5


Actual output:
46 5 41


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
print(z, x, y)
Problem: p02920
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=list(map(int,input().split()))
S.sort()
p = [S.pop(0)]
r = S

for i in range(N):
    for p_ in p[::-1]:
        for k in range(len(r)):
            if r[k] < p_:
                p.append(r.pop(k))
                break
    p.sort()

print("Yes" if len(r)==0 else "No")

Failing test case input:
2
4 2 3 1

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
S=list(map(int,input().split()))
S.sort()
p = [S.pop(-1)]
r = S

for i in range(N):
    nr = []
    for p_ in p[::-1]:
        while r:
            r_ = r.pop()
            if r_ < p_:
                p.append(r_)
                break
            nr.append(r_)
    p.sort()
    r+=nr[::-1]

print("Yes" if len(r)==0 else "No")

Problem: p02920
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = [int(i) for i in input().split()]
a.sort()

big = [a[n-1]]
rest = a[:-1]

for _ in range(n):
    nr = []
    for b in big[::-1]:
        while rest:
            r = rest.pop()
            if r < b:
                big.append(r)
                break
            nr.append(r)
    big.sort()
    rest += nr[::-1]
print("Yes" if len(rest)==0 else "No")
            

Failing test case input:
2
4 2 3 1

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a = [int(i) for i in input().split()]
a.sort()

big =  [a[-1]]
rest = a[:-1]


for i in range(n):
    not_yet = []
    count = 0
    for b in big:
        if count==2**i:
            break
        while rest:
            r = rest.pop()
            if r < b:
                big.append(r)
                count += 1
                break
            not_yet.append(r)
    big.sort(reverse=True)
    rest += not_yet[::-1]
print("Yes" if len(rest)==0 else "No")

Problem: p02920
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=list(map(int,input().split()))
S.sort(reverse=True)
p = [S.pop(0)]
c = S
f = True

for i in range(N):
    np = []
    nc = []
    for p_ in p:
        for k in range(len(c)):
            if c[k] < p_:
                np.append(c.pop(k))
                break
        f = False
    p += np
    p.sort(reverse=True)

print("Yes" if f else "No")

Failing test case input:
2
4 2 3 1

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
S=list(map(int,input().split()))
S.sort()
p = [S.pop(-1)]
r = S

for i in range(N):
    nr = []
    for p_ in p[::-1]:
        while r:
            r_ = r.pop()
            if r_ < p_:
                p.append(r_)
                break
            nr.append(r_)
    p.sort()
    r+=nr[::-1]

print("Yes" if len(r)==0 else "No")
Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

N = int(input())
*A, = map(int, input().split())
cnt = Counter(A)
ans = N
duplicates = sorted([(a, d) for a, d in cnt.items() if d > 1], key=lambda x: x[0])
offset = 0
for _, d in duplicates:
    if offset: d -= offset; offset = 0;
    if d == 1: continue
    elif d % 2 == 0: ans -= d; offset = 1;
    else: ans -= d-1
ans -= offset
print(ans)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
2


Fixed submission (verdict: Accepted):
from collections import Counter

N = int(input())
*A, = map(int, input().split())
cnt = Counter(A)
ans = N
duplicates = sorted([(a, d) for a, d in cnt.items() if d > 1], key=lambda x: x[0])
offset = 0
for _, d in duplicates:
    if offset: d -= offset; offset = 0;
    if d == 1: continue
    elif d % 2 == 0: ans -= d; offset = 1;
    else: ans -= d-1
print(ans)

Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
A=list(map(int,input().split()))
A.sort()
print(A)
A_length=n-len(set(A))
if A_length%2==0:print(A_length)
else:print(A_length-1)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
[1, 1, 2, 3, 7]
0


Fixed submission (verdict: Accepted):
n=int(input())
A=list(map(int,input().split()))
A.sort()
A_l=len(set(A))
print(A_l if (n-A_l)%2==0 else A_l-1)

Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
l = len(set([int(x) for x in input().split()]))
print(l - l % 2)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
4


Fixed submission (verdict: Accepted):
n=input()
l=len(set([int(x) for x in input().split()]))
print(l-(l+1)%2)

Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def calc(n):
  ret=n
  while ret>=3:
    ret=ret%3+ret
  return ret

n=int(input())
arr=list(map(int,input().split()))
cnt=[0]*(10**5+1)
for i in range(n):
  cnt[arr[i]]+=1
cnt1=0
cnt2=0
for i in range(n):
  tmp=calc(cnt[i])
  if tmp==1:
    cnt1+=1
  elif tmp==2:
    cnt2+=1
if cnt2%2==0:
  print(cnt1+cnt2)
else:
  print(cnt1+cnt2-1)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
2


Fixed submission (verdict: Accepted):
def calc(n):
  ret=n
  while ret>=3:
    ret=ret%3+ret
  return ret

n=int(input())
arr=list(map(int,input().split()))
cnt=[0]*(10**5+1)
for i in range(n):
  cnt[arr[i]]+=1
cnt1=0
cnt2=0
for i in range(10**5+1):
  tmp=calc(cnt[i])
  if tmp==1:
    cnt1+=1
  elif tmp==2:
    cnt2+=1
if cnt2%2==0:
  print(cnt1+cnt2)
else:
  print(cnt1+cnt2-1)

Problem: p03818
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))

cnt = [[num, a.count(num)] for num in set(a)]
k = len(cnt)

if k%2 ==1:
  print(k-1)
else:
  print(k)


Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
a = set(a)

k = len(a)

if k%2 ==0:
  print(k-1)
else:
  print(k)
Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=sorted(list(map(int,input().split())))
variety=0
countodd=0
counteven=0
countnow=1
now=l[0]
for i in range(1,n):
  if l[i]==now:
    countnow+=1
  else:
    now=l[i]
    if countnow%2==0:
      countodd+=1
    else:
      counteven+=1
    countnow=1
if countnow!=0:
  if countnow%2==1:
    countodd+=1
  else:
    counteven+=1
if counteven%2==0:
  print(counteven+countodd)
else:
  print(counteven+countodd-1)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
4


Fixed submission (verdict: Accepted):
n=int(input())
l=sorted(list(map(int,input().split())))
variety=0
countodd=0
counteven=0
countnow=1
now=l[0]
for i in range(1,n):
  if l[i]==now:
    countnow+=1
  else:
    now=l[i]
    if countnow%2==1:
      countodd+=1
    else:
      counteven+=1
    countnow=1
if countnow!=0:
  if countnow%2==1:
    countodd+=1
  else:
    counteven+=1
if counteven%2==0:
  print(counteven+countodd)
else:
  print(counteven+countodd-1)

Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

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

counter = Counter(A)

counts = counter.most_common()

dup_num = 0
for i in range(len(counts)):
    if counts[i][1] != 1:
        dup_num += counts[i][1]-1

print(counts)
if dup_num%2 == 0:
    print(N-dup_num)
else:
    print(N-dup_num-1)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
[(1, 2), (2, 1), (3, 1), (7, 1)]
3


Fixed submission (verdict: Accepted):
from collections import Counter

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

counter = Counter(A)

counts = counter.most_common()

dup_num = 0
for i in range(len(counts)):
    if counts[i][1] != 1:
        dup_num += counts[i][1]-1

if dup_num%2 == 0:
    print(N-dup_num)
else:
    print(N-dup_num-1)

Problem: p03818
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
A=list(map(int,input().split()))

kaburi=len(set(A))
if kaburi%2==0:
  print(n-kaburi)
else:
  print(n-kaburi-1)

Failing test case input:
5
1 2 1 3 7

Expected output:
3

Actual output:
1


Fixed submission (verdict: Accepted):
n=int(input())
A=list(map(int,input().split()))

kaburi=len(set(A))
if kaburi%2==0:
  print(kaburi-1)
else:
  print(kaburi)