ZhenlongDai/ACPR huggingface dataset:
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b=map(int, input().split())
c = a*b

if c % 2 == 0:
    print("even")
else:
    print("odd")

Failing test case input:
54 0

Expected output:
Even


Actual output:
even


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

if c % 2 == 1:
    print("Odd")
else:
    print("Even")

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

if (a*b) % 2 :
  print('Even')
else:
  print('Odd')

Failing test case input:
8 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
if (a*b) % 2 :
  print('Odd')
else:
  print('Even')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input(). split())
if a*b / 2 == 0:
  print('Even')
else:
  print('Odd')

Failing test case input:
1 32

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b = map(int, input(). split())
if (a*b) % 2 == 0 :
  print("Even")
else:
  print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = [int(item) for item in input().split()]
if a % 2 == 1 and b % 2 == 1:
    print("Even")
else:
    print("Odd")

Failing test case input:
14 2

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = [int(item) for item in input().split()]
if a % 2 == 1 and b % 2 == 1:
    print("Odd")
else:
    print("Even")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a*b) % 2:
    print("Even")
else:
    print("odd")

Failing test case input:
2 32

Expected output:
Even


Actual output:
odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a*b) % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ab = list(map(int,input("a b =").split())) 
a = ab[0]
b = ab[1]
if a*b %2 == 0:
    output = "Even"
elif a*b %2 == 1:
    output = "Odd"
print(output)


Failing test case input:
8 -1

Expected output:
Even


Actual output:
a b =Even


Fixed submission (verdict: Accepted):
ab = list(map(int,input().split())) 
a = ab[0]
b = ab[1]
if a*b %2 == 0:
    output = "Even"
elif a*b %2 == 1:
    output = "Odd"
print(output)

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c=a*b
d=c%2
if   d==1:
   print('Even')
elif d==0:
   print('Odd')

Failing test case input:
13 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c=a*b
d=c%2
if   d==1:
   print('Odd')
elif d==0:
   print('Even')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a*b) % 2 != 0:
    print("odd")
else:
    print("even")

Failing test case input:
-6 0

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a*b) % 2 != 0:
    print("Odd")
else:
    print("Even")
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int,input().split())
result = a * b
if result % 2 == 0:
    print("Odd")
else:
    print("Even")


Failing test case input:
21 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
result = a * b
if result % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = str(input()).split()
if (int(a[0]) * int(a[1])) % 2 == 1:
    print('0dd')
else:
    print('Even')
    

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


Fixed submission (verdict: Accepted):
a = str(input()).split()
if ( int(a[0]) * int(a[1]) ) % 2 == 1:
    print('Odd')
else:
    print('Even')

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

a, b = map(int, input().split())
product = a * b
print('even' if product % 2 == 0 else 'odd')


Failing test case input:
8 -4

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
product = a * b
print('Even' if product % 2 == 0 else 'Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
c = a*b
if c/2 ==0:
  print("Even")
else :
  print("Odd")

Failing test case input:
11 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c = a*b
if c%2 ==1:
  print("Odd")
else :
  print("Even")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split()

print(a[0])

A = []
  
for i in range(len(a)):
    A.append(int(a[i]))

if not (A[0]*A[1]) % 2:
    print('Even')
    
else:
    print('Odd')

Failing test case input:
11 -4

Expected output:
Even


Actual output:
11
Even


Fixed submission (verdict: Accepted):
a = input().split()

A = []
  
for i in range(len(a)):
    A.append(int(a[i]))

if not (A[0]*A[1]) % 2:
    print('Even')
    
else:
    print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a/2==0 or b/2==0:
  print('Even')
else:
  print('Odd')


Failing test case input:
4 -2

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%2==0 or b%2==0:
  print('Even')
else:
  print('Odd')

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

if bin(a)[0] == '1' or bin(b)[0] == '1':
    print('Odd')
else:
    print('Even')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
Even


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

if bin(a)[-1] == '0' or bin(b)[-1] == '0':
    print('Even')
else:
    print('Odd')
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

answer = 'Even' if a * b % 2 == 0 else 'Odd'

Failing test case input:
-6 0

Expected output:
Even


Actual output:

Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
answer = 'Even' if a * b % 2 == 0 else 'Odd'

print(answer)

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

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

if (a * b) % 2:
  print("Even")
else:
  print("Odd")

Failing test case input:
11 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):

a, b = map(int, input().split(" "))
 
if (a * b) % 2:
  print("Odd")
else:
  print("Even")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=list(map(int, input().split()))
print(A)
if A[0]*A[1]==0:
  print('Even')
else:
  print('Odd')

Failing test case input:
8 -4

Expected output:
Even


Actual output:
[8, -4]
Odd


Fixed submission (verdict: Accepted):
A=list(map(int, input().split()))
if A[0]*A[1]%2==0:
  print('Even')
else:
  print('Odd')

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






numList = [int(num) for num in input().split()]


productNumList = numList[0] * numList[1]


if ((productNumList % 2) == 0 ):
    print("even")
else:
    print("odd")


Failing test case input:
0 17

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):






numList = [int(num) for num in input().split()]


productNumList = numList[0] * numList[1]


if ((productNumList % 2) == 0 ):
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [int(i) for i in input().split()]
if a[0]*a[1]%2 == 0:
    print("Odd")
else:
    print("Even")

Failing test case input:
2 32

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a = [int(i) for i in input().split()]
if a[0]*a[1]%2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a * b) % 2 == 0: 
    print("even")
else:
    print("odd")


Failing test case input:
-6 0

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a * b) % 2 == 0: 
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
aa = 5
bb = 4

seki = aa*bb

if seki % 2 == 0:
    print("Even")

else:
    print("Odd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
Even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a*b % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a*b) % 2: 
    print('Even')
else:
    print('Odd')

Failing test case input:
54 0

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a*b % 2: 
    print('Odd')
else:
    print('Even')
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a, b = map(int, input().split())
print("{}".format('Even' if ((a*b)/2 == 0) else 'Odd'))

Failing test case input:
4 -2

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):

a, b = map(int, input().split())
print("{}".format('Even' if ((a*b)%2 == 0) else 'Odd'))

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a*b % 2 == 1:
    print('odd')
else:
    print('even')

Failing test case input:
11 -4

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a*b % 2 == 1:
    print('Odd')
else:
    print('Even')

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



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

if c / 2 ==0:
    print('Even')

else:
    print('Odd')

Failing test case input:
14 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):



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

if c % 2 ==0:
    print('Even')

else:
    print('Odd')

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




i = list(map(int, input().split()))
a=i[0]
b=i[1]

if a % 2 == 0 or b % 2 == 0:
    print ("even")
    exit (0)

print ("odd")

Failing test case input:
1 32

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):


i = list(map(int, input().split()))
a=i[0]
b=i[1]

if a % 2 == 0 or b % 2 == 0:
    print ("Even")
    exit (0)

print ("Odd")

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

if (a % 2 == 0) and (b % 2 == 0):
    print("Even")
else:
    print("Odd")

Failing test case input:
1 32

Expected output:
Even


Actual output:
Odd


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

if a*b % 2 == 0:
    print("Even")
else:
    print("Odd")

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

if (a % 2 == 1) and (b % 2 == 1):
    print('odd')
else:
    print('even')


Failing test case input:
-6 0

Expected output:
Even


Actual output:
even


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

if (a % 2 == 1) and (b % 2 == 1):
    print('Odd')
else:
    print('Even')

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

int_list = list(map(int, input().split()))
if (((int_list[0] + int_list[1]) % 2) == 0):
	print('Even')
else: 
	print('Odd')

Failing test case input:
27 0

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):

int_list = list(map(int, input().split()))
if (((int_list[0]*int_list[1]) % 2) == 0):
	print('Even')
else: 
	print('Odd')

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if a * b % 2== 0:
    print("Even")
else:
    print("odd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a * b % 2== 0:
    print("Even")
else:
    print("Odd")
Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


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

if (a * b ) % 2 == 0:
    print('Even')

elif ( a * b ) % 2 != 0:
    print('0dd')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


Fixed submission (verdict: Accepted):


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

if (a * b ) % 2 == 0:
    print('Even')

if (a * b) % 2 != 0:
    print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if (a * b) % 2 == 0:
  print("Evern")
else:
  print("Odd")


Failing test case input:
1 32

Expected output:
Even


Actual output:
Evern


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if (a * b) % 2 == 0:
  print("Even")
else:
  print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if (a*b)%2 :
    print("odd")
else:
    print("even")
    

Failing test case input:
1 32

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if (a*b)%2 :
    print("Odd")
else:
    print("Even")

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

if a%2 !=0 or b%2!=0:
  print('Odd')
else:
  print('Even')

Failing test case input:
0 17

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
 
if a%2 !=0 and b%2!=0 :
  print('Odd')
else:
  print('Even')

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

if a*b%2 == 0:
  print('Even')
else:
  print('0dd')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


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

if a*b%2 == 0:
  print('Even')
else:
  print('Odd')

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if a*b % 2==0:
  print('Even')
else:
  print('0dd')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a*b%2==0:
  print('Even')
else:
  print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a,b = list(map(lambda x: int(x), s.split(" ")))
print(a)
print(b)
if a % 2 == 0 or b % 2 == 0:
    print("Even")
else:
    print("Odd")



Failing test case input:
15 0

Expected output:
Even


Actual output:
15
0
Even


Fixed submission (verdict: Accepted):
s = input()
a,b = list(map(lambda x: int(x), s.split(" ")))
if a % 2 == 0 or b % 2 == 0:
    print("Even")
else:
    print("Odd")

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

if (i[0] * i[1]) % 2:
  print("Even")
else:
  print("Odd")

Failing test case input:
25 0

Expected output:
Even


Actual output:
Odd


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

if (i[0] * i[1]) % 2 == 0:
  print("Even")
else:
  print("Odd")
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
result = int(a)*int(b)
if result%2 == 0:
    print("even")
else:
    print("odd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


Fixed submission (verdict: Accepted):
a,b = input().split()
result = int(a)*int(b)
if result%2 == 0:
    print("Even")
else:
    print("Odd")

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

if (a*b) % 2 == 0:
  print("Odd")
else:
  print("Even")

Failing test case input:
-6 -1

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print("Even" if a*b % 2 == 0 else "Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if (a+b)%2==0:
    print("Even")
else:
    print("Odd")

Failing test case input:
15 0

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c=a*b
if c%2==0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
c=a*b
if c%2==0:
  print("Odd")
else:
  print("Even")


Failing test case input:
13 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
c=a*b
if c%2==0:
  print("Even")
else:
  print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a * b % 2 == 0:
  print('Odd')
else:
  print('Even')

Failing test case input:
15 0

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a * b % 2 == 0:
  print('Even')
else:
  print('Odd')

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

c = (a*b)%2

if c == 0:
  print("even")
  
else:
  print("odd")

Failing test case input:
11 -4

Expected output:
Even


Actual output:
even


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

c = (a*b)%2

if c == 0:
  print("Even")
  
else:
  print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if (a*b)%2 == 1:
  print('odd')
else:
  print('even')

Failing test case input:
-6 0

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if (a*b)%2 == 1:
  print('Odd')
else:
  print('Even')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a*b%2==0:
    print('EVEN')
else:
    print('ODD')

Failing test case input:
11 -4

Expected output:
Even


Actual output:
EVEN


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a*b%2==0:
    print('Even')
else:
    print('Odd')
Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):





a, b = map(int, input('整数を入力してね > ').split())

c = a * b

d=c%2
if d==0:
    print('Even')
if d==1:
    print('Odd')

Failing test case input:
8 -4

Expected output:
Even


Actual output:
整数を入力してね > Even


Fixed submission (verdict: Accepted):





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

c = a * b

d=c%2
if d==0:
    print('Even')
if d==1:
    print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(map(int, input().split()))
c = (a * b) % 2
if c == 0:
    print("Even")
else:
    print("odd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))
c = a * b
d = c % 2
if d == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a*b % 2 :
  print("Even")
else:
  print("Odd")

Failing test case input:
11 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print("Odd" if a * b % 2 else "Even")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a*b%2 == 0:
  print("Even")
else:
  print("0dd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if (a*b%2 == 0):
  print("Even")
else:
  print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split(" "))
if (a * b) % 2 == 0:
	print("even")
else:
	print("odd")

Failing test case input:
4 -2

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a,b = map(int, input().split(" "))
if (a * b) % 2 == 0:
	print("Even")
else:
	print("Odd")

Problem: p03455
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b=map(int,input().split())
if a%2==0 or b%2==0:
    print("odd")
else:
    print("Even")

Failing test case input:
15 0

Expected output:
Even


Actual output:
odd


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a%2==0 or b%2==0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a*b % 2 == 0:
    print("Evev")
    
else:
    print("Odd")

Failing test case input:
8 -2

Expected output:
Even


Actual output:
Evev


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
num = a * b
if num % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a*b)%2==0:
  print('Odd')
else:
  print('Even')

Failing test case input:
2 32

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a*b)%2==0:
  print('Even')
else:
  print('Odd')
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
if (x+y)%2 == 0:
  print("Even")
else:
  print("Odd")

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
Even


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
if (x*y)%2 == 0:
  print("Even")
else:
  print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print(a)
print(b)
print(a+b)
sum = a + b
if (sum % 2 == 0 ):
	print('Even')
else:
	print('Odd')

Failing test case input:
21 -4

Expected output:
Even


Actual output:
21
-4
17
Odd


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

if ((a*b) % 2 == 0 ):
	print('Even')
else:
	print('Odd')

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if(a*b/2==0):
  print('Even')
else:
  print('Odd')

Failing test case input:
14 3

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if((a*b)%2 == 0):
  print('Even')
else:
  print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int,input().split())
c = a * b
if c % 2 == 0:
	print('Even')
else:
	print('odd')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
c = a * b
if c % 2 == 0:
	print('Even')
else:
	print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def is_even(int_num):
    if int_num % 2 == 0:
        return True
    else:
        return False


def main():
    inputs = input("input two integers for this problem: ")
    temp = inputs.split()
    if len(temp) != 2:
        print("input is invalid. input two integers.")
        exit(1)

    
    a, b = int(temp[0]), int(temp[1])
    if is_even(a * b):
        print("Even")
    else:
        print("Odd")

    

main()


Failing test case input:
2 32

Expected output:
Even


Actual output:
input two integers for this problem: Even


Fixed submission (verdict: Accepted):
def is_even(int_num):
    if int_num % 2 == 0:
        return True
    else:
        return False


def main():
    
    inputs = input().split()
    a, b = int(inputs[0]), int(inputs[1])
    if is_even(a * b):
        print("Even")
    else:
        print("Odd")

    

if __name__ == "__main__":
    main()

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


multi = a * b
division = multi % 2

if division == 0:
        print('Even')
else:
        print('0dd')


Failing test case input:
13 -1

Expected output:
Odd


Actual output:
0dd


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

answer = a * b

if answer % 2 == 0:
    print('Even')
else:
    print('Odd')
Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = [int(x) for x in input().split()]
if a * b % 2 == 0:
    print("even")
else:
    print("odd")

Failing test case input:
27 0

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = [int(x) for x in input().split()]
if a * b % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a , b = map(int,input().split())
 
x =  a * b 
 
if x % 2 == 0:
    print("Even")
else:
    print("odd")
 

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
answer = a * b
if answer % 2 == 0:
    print('Even')
else:
    print('Odd')

Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a*b%2):
	print("Even")
else:
	print("Odd")

Failing test case input:
8 -4

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a*b%2):
	print("Odd")
else:
	print("Even")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a * b % 2 == 0:
    print('even')
else:
    print('odd')

Failing test case input:
-6 -1

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a * b % 2 == 0:
    print('Even')
else:
    print('Odd')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, '10 20'.split())
ab = a * b
if ab % 2:
    print('Odd')
else:
    print('Even')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
Even


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
ab = a * b
if ab % 2:
    print('Odd')
else:
    print('Even')

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
int1,int2 = map(int, input().split())

mp = int1*int2

if mp%2 == 0:
    print("even")
elif mp%2 == 1:
    print("odd")


Failing test case input:
-6 -1

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
int1,int2 = map(int, input().split())

mp = int1*int2

if mp%2 == 0:
    print("Even")
elif mp%2 == 1:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if (a+b) % 2 == 0:
    print("Odd")
else:
    print("Even")


Failing test case input:
14 2

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a*b) % 2 == 0:
    print("Even")
else:
    print("Odd")

Problem: p03455
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
c = (a * b) % 2
if c == 1 :
  print("odd")
else :
  print("even")

Failing test case input:
8 -4

Expected output:
Even


Actual output:
even


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c = (a * b) % 2
if c == 1 :
  print("Odd")
else :
  print("Even")
Problem: p03455
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())

if (a*b)%2==1:
  print('Even')
else:
  print('Odd')

Failing test case input:
0 17

Expected output:
Even


Actual output:
Odd


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

if (a*b)%2==1:
  print('Odd')
else:
  print('Even')

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

if (a*b) % 2 == 0:
	print('Odd')
else:
	print('Even')


Failing test case input:
13 -4

Expected output:
Even


Actual output:
Odd


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

if (a*b) % 2 == 0:
	print('Even')
else:
	print('Odd')

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

c=a*b
if c%2 == 0:
	print('Even')
else:
	print('odd')

Failing test case input:
13 -1

Expected output:
Odd


Actual output:
odd


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

c=a*b
if c%2 == 0:
	print('Even')
else:
	print('Odd')

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

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

if a*b/2 == 1:
    print("Odd")
else:
    print("Even")


Failing test case input:
13 -1

Expected output:
Odd


Actual output:
Even


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

if a*b%2 == 1:
    print("Odd")
else:
	print("Even")

Problem: p03455
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int,input().split())
if (a*b)%2 == 0:
    print("Odd")
else:
    print("Even")

Failing test case input:
54 0

Expected output:
Even


Actual output:
Odd


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
if (a*b)%2 == 0:
    print("Even")
else:
    print("Odd")
Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=list(input())

T=[]
c=0
for i in range(10):
  T=S
  i=str(i)
  if i in T[:N-2]:
    indx_i=T.index(i) 
    for j in range(10):
      j=str(j)
      if j in T[indx_i+1:N-1]:
        indx_j=indx_i+T[indx_i+1:].index(j)+1
        for k in range(10):
          k=str(k)
          if k in T[indx_j+1:]:
            c+=1
            print(i,j,k)

print(c)

Failing test case input:
19
7178713276560118339

Expected output:
296


Actual output:
0 1 1
0 1 3
0 1 8
0 1 9
0 3 3
0 3 9
0 8 3
0 8 9
1 0 1
1 0 3
1 0 8
1 0 9
1 1 0
1 1 1
1 1 2
1 1 3
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 2 0
1 2 1
1 2 3
1 2 5
1 2 6
1 2 7
1 2 8
1 2 9
1 3 0
1 3 1
1 3 2
1 3 3
1 3 5
1 3 6
1 3 7
1 3 8
1 3 9
1 5 0
1 5 1
1 5 3
1 5 6
1 5 8
1 5 9
1 6 0
1 6 1
1 6 3
1 6 5
1 6 6
1 6 8
1 6 9
1 7 0
1 7 1
1 7 2
1 7 3
1 7 5
1 7 6
1 7 7
1 7 8
1 7 9
1 8 0
1 8 1
1 8 2
1 8 3
1 8 5
1 8 6
1 8 7
1 8 8
1 8 9
2 0 1
2 0 3
2 0 8
2 0 9
2 1 1
2 1 3
2 1 8
2 1 9
2 3 3
2 3 9
2 5 0
2 5 1
2 5 3
2 5 6
2 5 8
2 5 9
2 6 0
2 6 1
2 6 3
2 6 5
2 6 6
2 6 8
2 6 9
2 7 0
2 7 1
2 7 3
2 7 5
2 7 6
2 7 8
2 7 9
2 8 3
2 8 9
3 0 1
3 0 3
3 0 8
3 0 9
3 1 1
3 1 3
3 1 8
3 1 9
3 2 0
3 2 1
3 2 3
3 2 5
3 2 6
3 2 7
3 2 8
3 2 9
3 3 3
3 3 9
3 5 0
3 5 1
3 5 3
3 5 6
3 5 8
3 5 9
3 6 0
3 6 1
3 6 3
3 6 5
3 6 6
3 6 8
3 6 9
3 7 0
3 7 1
3 7 3
3 7 5
3 7 6
3 7 8
3 7 9
3 8 3
3 8 9
5 0 1
5 0 3
5 0 8
5 0 9
5 1 1
5 1 3
5 1 8
5 1 9
5 3 3
5 3 9
5 6 0
5 6 1
5 6 3
5 6 8
5 6 9
5 8 3
5 8 9
6 0 1
6 0 3
6 0 8
6 0 9
6 1 1
6 1 3
6 1 8
6 1 9
6 3 3
6 3 9
6 5 0
6 5 1
6 5 3
6 5 6
6 5 8
6 5 9
6 6 0
6 6 1
6 6 3
6 6 8
6 6 9
6 8 3
6 8 9
7 0 1
7 0 3
7 0 8
7 0 9
7 1 0
7 1 1
7 1 2
7 1 3
7 1 5
7 1 6
7 1 7
7 1 8
7 1 9
7 2 0
7 2 1
7 2 3
7 2 5
7 2 6
7 2 7
7 2 8
7 2 9
7 3 0
7 3 1
7 3 2
7 3 3
7 3 5
7 3 6
7 3 7
7 3 8
7 3 9
7 5 0
7 5 1
7 5 3
7 5 6
7 5 8
7 5 9
7 6 0
7 6 1
7 6 3
7 6 5
7 6 6
7 6 8
7 6 9
7 7 0
7 7 1
7 7 2
7 7 3
7 7 5
7 7 6
7 7 7
7 7 8
7 7 9
7 8 0
7 8 1
7 8 2
7 8 3
7 8 5
7 8 6
7 8 7
7 8 8
7 8 9
8 0 1
8 0 3
8 0 8
8 0 9
8 1 0
8 1 1
8 1 2
8 1 3
8 1 5
8 1 6
8 1 7
8 1 8
8 1 9
8 2 0
8 2 1
8 2 3
8 2 5
8 2 6
8 2 7
8 2 8
8 2 9
8 3 0
8 3 1
8 3 2
8 3 3
8 3 5
8 3 6
8 3 7
8 3 8
8 3 9
8 5 0
8 5 1
8 5 3
8 5 6
8 5 8
8 5 9
8 6 0
8 6 1
8 6 3
8 6 5
8 6 6
8 6 8
8 6 9
8 7 0
8 7 1
8 7 2
8 7 3
8 7 5
8 7 6
8 7 7
8 7 8
8 7 9
8 8 3
8 8 9
296


Fixed submission (verdict: Accepted):
N=int(input())
S=list(input())

T=[]
c=0
for i in range(10):
  T=S
  i=str(i)
  if i in T[:N-2]:
    indx_i=T.index(i) 
    for j in range(10):
      j=str(j)
      if j in T[indx_i+1:N-1]:
        indx_j=indx_i+T[indx_i+1:].index(j)+1
        for k in range(10):
          k=str(k)
          if k in T[indx_j+1:]:
            c+=1

print(c)
Problem: p02844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
S = list(str(input()))

used = [0]*1000

for i in range(1000):
  stri = str(i)
  if len(stri) == 2:
    stri = "0"+stri
  elif len(stri) == 1:
    stri = "00"+stri
  count = 0
  for j in range(N):
    if S[j] == stri[count]:
      count += 1
    if count == 3:
      print(i)
      used[i] = 1
      break

print(sum(used))

Failing test case input:
19
4383955020590756283

Expected output:
328


Actual output:
0
2
3
5
6
7
8
9
20
22
23
25
26
27
28
29
50
52
53
55
56
57
58
59
62
63
68
72
73
75
76
78
83
90
92
93
95
96
97
98
200
202
203
205
206
207
208
209
223
228
250
252
253
255
256
257
258
259
262
263
268
272
273
275
276
278
283
290
292
293
295
296
297
298
300
302
303
305
306
307
308
309
320
322
323
325
326
327
328
329
330
332
333
335
336
337
338
339
350
352
353
355
356
357
358
359
362
363
368
372
373
375
376
378
380
382
383
385
386
387
388
389
390
392
393
395
396
397
398
399
400
402
403
405
406
407
408
409
420
422
423
425
426
427
428
429
430
432
433
435
436
437
438
439
450
452
453
455
456
457
458
459
462
463
468
472
473
475
476
478
480
482
483
485
486
487
488
489
490
492
493
495
496
497
498
499
500
502
503
505
506
507
508
509
520
522
523
525
526
527
528
529
550
552
553
555
556
557
558
559
562
563
568
572
573
575
576
578
583
590
592
593
595
596
597
598
623
628
683
723
728
752
753
756
758
762
763
768
783
800
802
803
805
806
807
808
809
820
822
823
825
826
827
828
829
830
832
833
835
836
837
838
839
850
852
853
855
856
857
858
859
862
863
868
872
873
875
876
878
883
890
892
893
895
896
897
898
899
900
902
903
905
906
907
908
909
920
922
923
925
926
927
928
929
950
952
953
955
956
957
958
959
962
963
968
972
973
975
976
978
983
990
992
993
995
996
997
998
328


Fixed submission (verdict: Accepted):
N = int(input())
S = list(str(input()))

used = [0]*1000

for i in range(1000):
  stri = str(i)
  if len(stri) == 2:
    stri = "0"+stri
  elif len(stri) == 1:
    stri = "00"+stri
  count = 0
  for j in range(N):
    if S[j] == stri[count]:
      count += 1
    if count == 3:
      used[i] = 1
      break

print(sum(used))

Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
ans = 0

for i in range(10):
    for j in range(10):
        for k in range(10):
            hit = 0
            for c in S:
                c_ = int(c)
                if hit == 0 and c == i:
                    hit += 1
                elif hit == 1 and c == j:
                    hit += 1
                elif hit == 2 and c == k:
                    ans += 1
                    break
print(ans)


Failing test case input:
19
5470473987877585595

Expected output:
163


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
ans = 0

for i in range(10):
    ind_i = S.find(str(i))
    if ind_i != -1:
        S2 = S[ind_i + 1:]
        for j in range(10):
            ind_j = S2.find(str(j))
            if ind_j != -1:
                S3 = S2[ind_j + 1:]
                for k in range(10):
                    cnt_k = S3.count(str(k))
                    if cnt_k > 0:
                        ans += 1


print(ans)
Problem: p02844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
s = list(map(int, list(input())))

def aruka(a,b,c):
    i = 0
    while i <= n:
        if i == n:
            return False
        if s[i] == a:
            i += 1
            break
        i += 1
    while i <= n:
        if i == n:
            return False
        if s[i] == b:
            i += 1
            break
        i += 1
    while i <= n:
        if i == n:
            return False
        if s[i] == c:
            return True
        i += 1


ans = 0

for i in range(10):
    for j in range(10):
        for k in range(10):
            if aruka(i,j,k):
                ans += 1

Failing test case input:
19
1813970141345681788

Expected output:
333


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
s = list(map(int, list(input())))

def aruka(a,b,c):
    i = 0
    while i <= n:
        if i == n:
            return False
        if s[i] == a:
            i += 1
            break
        i += 1
    while i <= n:
        if i == n:
            return False
        if s[i] == b:
            i += 1
            break
        i += 1
    while i <= n:
        if i == n:
            return False
        if s[i] == c:
            return True
        i += 1


ans = 0

for i in range(10):
    for j in range(10):
        for k in range(10):
            if aruka(i,j,k):
                ans += 1

print(ans)

Problem: p02844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
S = list(str(input()))
used = [0]*1000
for i in range(1,1000):
  stri = str(i)
  if len(stri) == 2:
    stri = "0"+stri
  elif len(stri) == 1:
    stri = "00"+stri
  count = 0
  for j in range(N):
    if S[j] == stri[count]:
      count += 1
    if count == 3:
      used[i] = 1
      break

print(sum(used))

Failing test case input:
19
1679018276230720497

Expected output:
370


Actual output:
369


Fixed submission (verdict: Accepted):
N = int(input())
S = list(str(input()))

used = [0]*1000

for i in range(1000):
  stri = str(i)
  if len(stri) == 2:
    stri = "0"+stri
  elif len(stri) == 1:
    stri = "00"+stri
  count = 0
  for j in range(N):
    if S[j] == stri[count]:
      count += 1
    if count == 3:
      used[i] = 1
      break

print(sum(used))

Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
S=input()
l=[]
for i in range(26):
    num=str(i).zfill(3)
    s=S
    if s.find(num[0])==-1:
        continue
    s=s[s.index(num[0])+1:]
    if s.find(num[1])==-1:
        continue
    s=s[s.index(num[1])+1:]
    if s.find(num[2])==-1:
        continue
    l.append(num)
print(len(set(l)))


Failing test case input:
19
9039528710159876563

Expected output:
412


Actual output:
19


Fixed submission (verdict: Accepted):
n=int(input())
S=input()
l=[]
for i in range(10**3):
    num=str(i).zfill(3)
    s=S
    if s.find(num[0])==-1: continue
    s=s[s.index(num[0])+1:]
    if s.find(num[1])==-1: continue
    s=s[s.index(num[1])+1:]
    if s.find(num[2])==-1: continue
    l.append(num)
print(len(set(l)))
Problem: p02844
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
s=[int(x) for x in list(input())]
m=[[] for i in range(10)]
for i in range(n):
  m[s[i]].append(i)
ans=0
for a in range(10):
  if len(m[a]) == 0:
    continue
  for b in range(10):
    if len(m[b])==0:
      continue
    for c in range(10):
      if len(m[c])==0:
        continue
      if any([x>m[a][0] for x in m[b]]) and any([x>m[b][a==b] for x in m[c]]):
        ans+=1
print(ans)

Failing test case input:
19
3595384138107614237

Expected output:
383


Actual output:
477


Fixed submission (verdict: Accepted):
n=int(input())
s=[int(x) for x in list(input())]
ans=0
for a in range(10):
  for i in range(n):
    if s[i]==a:
      a_dx=i
      break
  else:
    continue
  for b in range(10):
    for i in range(a_dx+1,n):
      if s[i]==b:
        b_dx=i
        break
    else:
      continue
    for c in range(10):
      for i in range(b_dx+1,n):
        if s[i]==c:
          ans+=1
          break
      else:
        continue

print(ans)

Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

def main():
    N = int(input())
    S = input().strip()
    ans = 0
    for i in range(1000+1):
        s = "{:03}".format(i)
        a = S.find(s[0])
        b = S.find(s[1], a+1)
        c = S.find(s[2], b+1)
        if a >= 0 and b >= 0 and c >= 0 and (a < b < c):
            ans += 1
    print(ans)


if __name__ == '__main__':
    main()


Failing test case input:
19
2096139141108403462

Expected output:
310


Actual output:
311


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline


def main():
    N = int(input())
    S = input().strip()
    ans = 0
    for i in range(1000):
        s = "{:03}".format(i)
        a = S.find(s[0])
        b = S.find(s[1], a+1)
        c = S.find(s[2], b+1)
        if a >= 0 and b >= 0 and c >= 0 and (a < b < c):
            ans += 1
    print(ans)


if __name__ == '__main__':
    main()

Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

s = set()
for i in range(0, N - 2):
    s1 = S[i]
    if s1 in s:
        continue
    s.add(s1)
    for j in range(i + 1, N - 1):
        s2 = s1 + S[j]
        if s2 in s:
            continue
        s.add(s2)
        for k in range(j + 1, N):
            s3 = s2+S[k]
            s.add(s3)

print(len(s))

Failing test case input:
4
0224

Expected output:
3

Actual output:
7


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

s = set()
sub = set()
for i in range(0, N - 2):
    s1 = S[i]
    if s1 in sub:
        continue
    sub.add(s1)
    for j in range(i + 1, N - 1):
        s2 = s1 + S[j]
        if s2 in sub:
            continue
        sub.add(s2)
        for k in range(j + 1, N):
            s3 = s2+S[k]
            s.add(s3)

print(len(s))
Problem: p02844
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
s=input()
ans=0
for i in range(10):
  a=s.find(str(i))
  if a == -1:
    continue
  for j in range(10):
    b=s.find(str(j),a)
    if b == -1:
      continue
    for k in range(10):
      if s.find(str(k),b) != -1:
        ans+=1
print(ans)

Failing test case input:
19
1479148711451354682

Expected output:
277


Actual output:
343


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
ans=0
for i in range(10):
  a=s.find(str(i))
  if a == -1:
    continue
  for j in range(10):
    b=s.find(str(j),a+1)
    if b == -1:
      continue
    for k in range(10):
      if s.find(str(k),b+1) != -1:
        ans+=1
print(ans)

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

N=int(input())
S=list(input())
numlist=range(1000)
ans=0

for i in numlist:
    num=str(i)
    if len(num)==1:
        num="00"+num
    if len(num)==2:
        num="0"+num
    if num[0] in S[:N-1]:
        num1=S.index(num[0])
        if num[1] in S[num1+1:N-1]:
            S2=S[num1+1:N-1]
            num2=S2.index(num[1])+num1+1
            if num[2] in S[num2+1:]:
                ans+=1
                print(i)
print(ans)

Failing test case input:
19
5190480453114530655

Expected output:
260


Actual output:
0
1
3
4
5
6
10
11
13
14
15
16
30
31
33
34
35
36
40
41
43
44
45
46
48
50
51
53
54
55
56
65
80
81
83
84
85
86
100
101
103
104
105
106
108
110
111
113
114
115
116
130
131
133
134
135
136
140
141
143
144
145
146
148
150
151
153
154
155
156
165
180
181
183
184
185
186
190
191
193
194
195
196
198
305
306
310
311
313
314
315
316
330
335
336
340
343
345
346
350
353
355
356
365
400
401
403
404
405
406
410
411
413
414
415
416
430
431
433
434
435
436
440
441
443
444
445
446
450
451
453
454
455
456
465
480
481
483
484
485
486
500
501
503
504
505
506
508
510
511
513
514
515
516
518
519
530
531
533
534
535
536
540
541
543
544
545
546
548
550
551
553
554
555
556
565
580
581
583
584
585
586
590
591
593
594
595
596
598
655
800
801
803
804
805
806
810
811
813
814
815
816
830
831
833
834
835
836
840
841
843
844
845
846
850
851
853
854
855
856
865
900
901
903
904
905
906
908
910
911
913
914
915
916
930
931
933
934
935
936
940
941
943
944
945
946
948
950
951
953
954
955
956
965
980
981
983
984
985
986
260


Fixed submission (verdict: Accepted):

N=int(input())
S=list(input())
numlist=range(1000)
ans=0

for i in numlist:
    num=str(i)
    if len(num)==1:
        num="00"+num
    if len(num)==2:
        num="0"+num
    if num[0] in S[:N-1]:
        num1=S.index(num[0])
        if num[1] in S[num1+1:N-1]:
            S2=S[num1+1:N-1]
            num2=S2.index(num[1])+num1+1
            if num[2] in S[num2+1:]:
                ans+=1
print(ans)
Problem: p02844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
n = int(input())
l = [d for d in input()]

k = set(l[:-2])
c = 0

for kk in list(k):
    
    
    i = l[:-2].index(kk)
    
    o = set(l[i + 1:-1])
    
    for oo in list(o):
        
        
        ii = l[i + 1:-1].index(oo) + (i + 1)
        
        p = set(l[ii + 1:])
        
        
        c += len(p)

print(c)


Failing test case input:
19
3141592653589793238

Expected output:
329

Actual output:
391


Fixed submission (verdict: Accepted):


n = int(input())
l = [d for d in input()]
k = set(l[:-2])
c = 0
for kk in list(k):
    i = l[:-2].index(kk)
    o = set(l[i + 1:-1])
    for oo in list(o):
        ii = l[i + 1:-1].index(oo) + (i + 1)
        p = set(l[ii + 1:])
        c += len(p)
print(c)

Problem: p02844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()

ans=0

for i in range(10):
  if str(i) in S:
    a = S.find(str(i))
    for j in range(10):
      if str(j) in S[a+1:]:
      	b = S[a+1:].find(str(j))
      	for k in range(10):
          if str(k) in S[a+b+2:]:
            ans+=1
            print(i,j,k)

print(ans)

Failing test case input:
19
1681184426411292497

Expected output:
161


Actual output:
1 1 1
1 1 2
1 1 4
1 1 6
1 1 7
1 1 8
1 1 9
1 2 1
1 2 2
1 2 4
1 2 6
1 2 7
1 2 9
1 4 1
1 4 2
1 4 4
1 4 6
1 4 7
1 4 9
1 6 1
1 6 2
1 6 4
1 6 6
1 6 7
1 6 8
1 6 9
1 8 1
1 8 2
1 8 4
1 8 6
1 8 7
1 8 8
1 8 9
1 9 2
1 9 4
1 9 7
1 9 9
2 1 1
2 1 2
2 1 4
2 1 7
2 1 9
2 2 2
2 2 4
2 2 7
2 2 9
2 4 1
2 4 2
2 4 4
2 4 7
2 4 9
2 6 1
2 6 2
2 6 4
2 6 7
2 6 9
2 9 2
2 9 4
2 9 7
2 9 9
4 1 1
4 1 2
4 1 4
4 1 7
4 1 9
4 2 1
4 2 2
4 2 4
4 2 6
4 2 7
4 2 9
4 4 1
4 4 2
4 4 4
4 4 6
4 4 7
4 4 9
4 6 1
4 6 2
4 6 4
4 6 7
4 6 9
4 9 2
4 9 4
4 9 7
4 9 9
6 1 1
6 1 2
6 1 4
6 1 6
6 1 7
6 1 8
6 1 9
6 2 1
6 2 2
6 2 4
6 2 6
6 2 7
6 2 9
6 4 1
6 4 2
6 4 4
6 4 6
6 4 7
6 4 9
6 6 1
6 6 2
6 6 4
6 6 7
6 6 9
6 8 1
6 8 2
6 8 4
6 8 6
6 8 7
6 8 8
6 8 9
6 9 2
6 9 4
6 9 7
6 9 9
8 1 1
8 1 2
8 1 4
8 1 6
8 1 7
8 1 8
8 1 9
8 2 1
8 2 2
8 2 4
8 2 6
8 2 7
8 2 9
8 4 1
8 4 2
8 4 4
8 4 6
8 4 7
8 4 9
8 6 1
8 6 2
8 6 4
8 6 7
8 6 9
8 8 1
8 8 2
8 8 4
8 8 6
8 8 7
8 8 9
8 9 2
8 9 4
8 9 7
8 9 9
9 2 4
9 2 7
9 2 9
9 4 7
9 4 9
9 9 7
161


Fixed submission (verdict: Accepted):
N=int(input())
S=input()

ans=0

for i in range(10):
  if str(i) in S:
    a = S.find(str(i))
    for j in range(10):
      if str(j) in S[a+1:]:
      	b = S[a+1:].find(str(j))
      	for k in range(10):
          if str(k) in S[a+b+2:]:
            ans+=1

print(ans)