ZhenlongDai/ACPR huggingface dataset:
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c in "a" or "e" or "i" or "o" or "u":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c in "aeiou":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def actual(c):
    if c in list('aeiou'):
        return 'vowel'

    return 'constant'

c = input()
print(actual(c))

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
def actual(c):
    if c in list('aeiou'):
        return 'vowel'

    return 'consonant'

c = input()
print(actual(c))

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
val = input()
print("vowel" if val == "a" or "i" or "u" or "e" or "o" else "consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
val = input()
array = ["a", "i", "u", "e", "o"]
print("vowel" if val in array else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == 'a' or 'e' or 'i' or 'o' or 'u':
    print('vowel')
else:
    print('consonant')


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input() == 'a' or 'i' or 'u' or 'e' or 'o':
    print('vowel')
else:
    print('consonant')


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
if input() in ['a', 'i', 'u', 'e', 'o']:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
c = str(input())
if c == "a" or "e" or "i" or "o" or "u":
    print("vowel")
else:
    print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = str(input())
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
print('vowel') if c in ['a','i','u','e','o'] else print('consonan')


Failing test case input:


Expected output:
consonant


Actual output:
consonan


Fixed submission (verdict: Accepted):
print('vowel') if input() in ['a','i','u','e','o'] else print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input()

if A == "a"  or "e" or "i"or "o" or "u" : print("vowel")
else: print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
A = input()

if A == "a"  or A =="e" or A =="i" or A =="o" or A =="u" : print("vowel")
else: print("consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input() in ['a','e','i','o','u']:
    print('vowel')
else:
    print('constant')


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
if input() in ['a','e','i','o','u']:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c=='a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
if c=='a' or c=='i' or c=='u' or c=='e' or c=='o':
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
for c in ['a', 'i', 'u', 'e', 'o']:
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel
vowel
vowel
vowel
vowel
consonant


Fixed submission (verdict: Accepted):
c = input()
if c in ['a', 'i', 'u', 'e', 'o']:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == "a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c in ["a", "i", "u", "e", "o"]:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
p = "aeiou"
c = "i"
if c in p:
    print("vowel")
else:
    print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
p = "aeiou"
if c in p:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == "a" or "e" or "i" or "o" or "u":
  print("vowel")
else:
  print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()

if c=="a" or c=="e" or c=="i" or c=="o" or c=="u":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
vowel = ['a','b','c','d','e']
if s in vowel:
  print('vowel')
else:
  print('constant')
  

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
vowel = ['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()

if a=="a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


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

if a=="a" or a=="i" or a=="u" or a=="e" or a=="o":
  print("vowel")
else:
  print("consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()

for i in ["a","i","u","e","o"]:
  if i in n:
    print("vowel")
  else:
    print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
consonant
consonant
consonant
consonant
consonant


Fixed submission (verdict: Accepted):
n=input()

if n in ["a","i","u","e","o"]:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(['onsonant','vowelc'][input() in ['a','i','u','e','o']])

Failing test case input:


Expected output:
consonant


Actual output:
onsonant


Fixed submission (verdict: Accepted):
print(['consonant','vowel'][input() in ['a','i','u','e','o']])

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
V = ['a','i','u','e','o']
ans = 'constant'
if input() in V:
    ans = 'vowel'
print(ans)

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
V = ['a','i','u','e','o']
ans = 'consonant'
if input() in V:
    ans = 'vowel'
print(ans)

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c == 'a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
  
else:
  print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
list=['a','i','u','e','o']
if c in list:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
v = ['a', 'i', 'u', 'e', 'o']
print('vowel' if input() in v else 'consonat')

Failing test case input:


Expected output:
consonant


Actual output:
consonat


Fixed submission (verdict: Accepted):
v = ['a', 'e', 'i', 'o', 'u']
print('vowel' if input() in v else 'consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if 'a' in 'aeiuo':
    print('vowel')
else:
    print('constant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c in 'aeiuo':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = str(input())
if "a" or "e" or "i" or "o" or "u" in c:
    print("vowel")
else:
    print("consonant")

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = str(input())
if c in "aiueo":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p = ["a", "e", "i", "o", "u"]
c = input()
if c in p:
    print("vowel")
else:
    print("consolant")

Failing test case input:


Expected output:
consonant


Actual output:
consolant


Fixed submission (verdict: Accepted):
c = input()
p = "aeiou"
if c in p:
    print("vowel")
else:
    print("consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if 'a' in 'aeiuo':
    print('vowel')
else:
    print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c in 'aeiuo':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
vowel=['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  print('constant')

Failing test case input:
Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c=input()
vowel=['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input()

if x == 'a' or 'i' or 'u' or 'e' or 'o':
    print("vowel")

else:
    print("consonant")



Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
x = input()

if x == 'a' or x == 'i' or x == 'u' or x == 'e' or x == 'o':
    print("vowel")

else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
print(["vowel","consonant"][s=="a" or s=="i" or s=="u" or s=="e" or s=="o"])

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s=input()
print(["consonant","vowel"][s=="a" or s=="i" or s=="u" or s=="e" or s=="o"])

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
print("vowel" if c=="a"or c=="i"or c=="u"or c=="e"or c=="o" else "cosonant")

Failing test case input:


Expected output:
consonant


Actual output:
cosonant


Fixed submission (verdict: Accepted):
c=input()
print("vowel" if c=="a"or c=="i"or c=="u"or c=="e"or c=="o" else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
boin = ["a","i","u", "e","o"]

c = input()

if c in boin:
    print("vowel")
    
else:
    print("consnant")

Failing test case input:


Expected output:
consonant


Actual output:
consnant


Fixed submission (verdict: Accepted):
boin = ["a","i","u", "e","o"]

c = input()

if c in boin:
    print("vowel")
    
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
list=['a','i','u','e','o']
if c in list:
  print('vowel')
else:
  ('consonant')


Failing test case input:


Expected output:
consonant


Actual output:

Fixed submission (verdict: Accepted):
c=input()
list=['a','i','u','e','o']
if c in list:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input()in "aeiou":
    print('Yes')
else:
    print('No')

Failing test case input:


Expected output:
consonant


Actual output:
No


Fixed submission (verdict: Accepted):
if input()in "aeiou":
    print('vowel')
else:
    print('consonant')
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c[0] == 'a' or 'i' or 'u' or 'e' or 'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
a = input()
if a == 'a' or a == 'e' or a == 'i' or a == 'u' or a == 'o':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'constant')

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'consonant')

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
word = input()
vowel_list = ['a', 'i', 'u', 'e', 'o']

if word in vowel_list:
    print('Vowel')
else:
    print('Consonant')

Failing test case input:


Expected output:
consonant


Actual output:
Consonant


Fixed submission (verdict: Accepted):
word = input()
vowel_list = ['a', 'i', 'u', 'e', 'o']

if word in vowel_list:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c=="a" or "i" or "u" or "e" or "o":
	print("vowel")
else:
	print("consonant")

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
if c=="a" or c=="i" or c=="u" or c=="e" or c=="o":
	print("vowel")
else:
	print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
word = input()

if word == "a" or "e" or "i" or "o" or "u":
    print("vowel")
else:
    print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
word = input()

if word == "a" or word == "e" or word=="i" or word=="o" or word=="u":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
listc = ['a', 'e', 'i', 'o', 'u']
count = 0

for i in range(len(listc)):
    if c == listc[i]:
        count += 1

if count > 0:
    print('vowel')
else:
    print('constant')


Failing test case input:
Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
listc = ['a', 'e', 'i', 'o', 'u']
count = 0

for i in range(len(listc)):
    if c == listc[i]:
        count += 1
        break

if count > 0:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=["a","e","i","o","u"]
print("vowel" if input() in a else "constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
a=["a","e","i","o","u"]
print("vowel" if input() in a else "consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c == 'a' or 'e' or 'u' or 'i' or 'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
if c == 'a' or c == 'e' or c == 'u' or c == 'i' or c == 'o':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(['vowel','consonant'][not input('c') in ['a','e','i','o','u']])

Failing test case input:
Expected output:
consonant


Actual output:
cconsonant


Fixed submission (verdict: Accepted):
print(['vowel','consonant'][not input() in ['a','e','i','o','u']])

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
c = input()

list = ['a','i','u','e','o']

if c in list:
  print('vowel')
else:
  print('conconant')

Failing test case input:


Expected output:
consonant


Actual output:
conconant


Fixed submission (verdict: Accepted):
c = input()

list = ['a','i','u','e','o']

if c in list:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if(s== 'a' or  'e' or 'i' or'o' or 'u'):
    print('vowel')
else:
    print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s=input()
if(s== "a") or (s== "i")  or (s== "e")  or (s== "u")  or (s== "o"):
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=['a','i','u','e','o']
print('vowel' if input() in a else 'constant')


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
a=['a','i','u','e','o']
print('vowel' if input() in a else 'consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
li = ['a','e','i','o','u']
print('vowel' if li.count(c) != 0 else 'consonat')    

Failing test case input:


Expected output:
consonant


Actual output:
consonat


Fixed submission (verdict: Accepted):
c = input()
li = ['a','e','i','o','u']
print('vowel' if li.count(c) != 0 else 'consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c=='a'or'i'or'u'or'e'or'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
if c in ('a','i','u','e','o'):
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()

print("vowel" if c in ('aiueo') else "consoneant")

Failing test case input:


Expected output:
consonant


Actual output:
consoneant


Fixed submission (verdict: Accepted):
c=input()
print("vowel" if c in 'aiueo' else "consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s = input()
arr = ['a', 'e', 'i', 'o', 'u']
for i in arr:
    if s == i:
        print("vowel")
    else:
        print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
consonant
consonant
consonant
consonant
consonant


Fixed submission (verdict: Accepted):

s = input()
arr = ['a', 'e', 'i', 'o', 'u']
for i in arr:
    if s == i:
        print("vowel")
        exit(0)
print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c == "a" or "e" or "i" or "o" or "u":
  print("vowel")
else:
  print("consonant")

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=str(input())
if c=="a" or c=="e" or c=="i" or c=="o" or c=="u":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
vowel=["a","i","u","e","o"]

if input() in vowel:
  print("vowel")
else:
  print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
vowel=["a","i","u","e","o"]

if input() in vowel:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if "a" or "e" or "i" or "o" or "u" in c:
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if "a" == c or "e" == c  or "i" == c or "o" == c or "u" == c:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if (s == 'a' or 'i' or 'u' or 'e' or 'o' ):
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s = input()
if (s == 'a' or s == 'i' or s == 'u' or s == 'e' or s == 'o' ):
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
vowel = "aeiou"
c = input()

if c in vowel:
  print("vowel")
else:
  print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
vowel = "aeiou"
c = input()

if c in vowel:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
vowel = ['a', 'e', 'i', 'o', 'u']

print('vowel') if c in vowel else print('constant')


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
vowel = ['a', 'e', 'i', 'o', 'u']

print('vowel') if c in vowel else print('consonant')
Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c=input()
if c=='a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
vowel=['a','e','i','o','u']

if c in vowel:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c = input()

if c == "a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()

if c == "a" or c == "i" or c == "u" or c == "e" or c == "o":
    print("vowel")
else:
    print("consonant")

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

c=str(input())

if c=='a' or 'e' or 'i' or 'o' or 'u':
    print('vowel')

else:print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):

c=str(input())

if c=='a' or c=='e' or c=='i' or c=='o' or c=='u':
    print('vowel')

else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s in "aiueo":
    print("Vowel")
else:
    print("Consonant")

Failing test case input:


Expected output:
consonant


Actual output:
Consonant


Fixed submission (verdict: Accepted):
s = input()
if s in "aiueo":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == 'a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c == 'a' or c == 'i' or c == 'u' or c == 'e' or c == 'o':
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a="abcde"
c = input()
print("Yes" if c in a else "No")

Failing test case input:


Expected output:
consonant


Actual output:
No


Fixed submission (verdict: Accepted):
a="aeiou"
c = input()
print("vowel" if c in a else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c=='a' or 'i' or 'u' or 'e' or 'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
v=['a','i','u','e','o']
if c in v:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('vowel' if input() in ['a', 'e', 'i', 'o', 'u'] else 'constant')

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
print('vowel' if input() in ['a', 'e', 'i', 'o', 'u'] else 'consonant')
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


c = input()
flg = True
for v in ["a","e","i","o","u"]:
    if c == v:
        print("vowel")
        flg = False

if flg:
    print("consnant")


Failing test case input:


Expected output:
consonant


Actual output:
consnant


Fixed submission (verdict: Accepted):


c = input()
flg = True
for v in ["a","e","i","o","u"]:
    if c == v:
        print("vowel")
        flg = False

if flg:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c=input()
li=["a","e","i","u","o"]
if c in li:
    print("vowel")
else:
    print("counstant")

Failing test case input:
Expected output:
consonant


Actual output:
counstant


Fixed submission (verdict: Accepted):
c=input()
li=["a","e","i","u","o"]
if c in li:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s == 'a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s = input()
if s == 'a' or s == 'i' or s == 'u' or s == 'e' or s == 'o':
  print('vowel')
else:
  print('consonant')

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

c=str(input())
if c=="a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=str(input())
if c == 'a' or c == 'i' or c ==  "u"or c =="e" or c == "o":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = str(input())
if n == "a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
n = str(input())
if n == "a" or n =="i" or n =="u" or n =="e" or n =="o":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

if s == "a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s = input()

if s == "a" or s == "i" or s == "u" or s == "e" or s == "o":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c in ['a','e','i','o','u']:
  print('vowel')
else:
  print('constant')

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c=input()
if c in ['a','e','i','o','u']:
  print('vowel')
else:
  print('consonant')
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c in "aeiou":
    print("vowel")
else:
    print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
if c in "aeiou":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
en=input()
print(en)
if en=="a"or en=="e" or en=="i"or en=="o"or en=="u":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:

consonant


Fixed submission (verdict: Accepted):
en=input()
if en=="a"or en=="e" or en=="i"or en=="o"or en=="u":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
c = str(input())
l = ["a", "e", "i", "o", "u"]
if c in l:
    print("vowel")

else:
    print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = str(input())
l = ["a", "e", "i", "o", "u"]
if c in l:
    print("vowel")

else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if(input() in ['a','i','u','e','o']):
  print('vowel')
else:('consonant')

Failing test case input:


Expected output:
consonant


Actual output:

Fixed submission (verdict: Accepted):
if(input() in ['a','i','u','e','o']):
  print('vowel')
else:print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == 'a' or 'i' or 'u' or 'e' or 'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c == 'a' or c == 'i' or c == 'u' or c == 'e' or c == 'o':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
vowellist = ["a","i","u","e","o"]
for w in vowellist:
    if c == w:
        print("vowel")
        break
    else:
        print("constant")
        break


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
vowellist = ["a","i","u","e","o"]
judge = "a"
for w in vowellist:
    if c == w:
        judge = "vowel"
        break
    else:
        judge = "consonant"
print(judge)

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s == 'a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s = input()
if s=='a' or s=='i' or s=='u' or s=='e' or s =='o':
    print('vowel')
else:
    print('consonant')
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p = "aeiou"
c = input()
if c in p:
    print("vowel")
else:
    print("consolant")

Failing test case input:
Expected output:
consonant


Actual output:
consolant


Fixed submission (verdict: Accepted):
c = input()
p = "aeiou"
if c in p:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
print("vowel" if ["a","e","i","u","o",c].index(c)==5 else "consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
print("vowel" if ["a","e","i","u","o",c].index(c)!=5 else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=['a','i','u','e','o']
print("vowel"if input() in x else "constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
x=['a','i','u','e','o']
print("vowel"if input() in x else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == 'a'or c =='i'or c =='u' or c == 'e'or c == 'o':
    print('vowel')
else:
    print('constant')


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
if c == 'a'or c =='i'or c =='u' or c == 'e'or c == 'o':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c = str(input())

if c == 'a' or 'e' or 'i' or 'o' or 'u':
    print('vowel')
else:
    print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = str(input())

if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input()== 'a' or 'i' or 'u' or 'e' or 'o':
    print('vowel')
else:
    print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = {input()}
vowels = {'a', 'i', 'u', 'e', 'o'}
if c < vowels:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
vowel=['a','e','i','o','u']
if c in vowel:
    print('vowel')
else:
    print('consonent')


Failing test case input:


Expected output:
consonant


Actual output:
consonent


Fixed submission (verdict: Accepted):
c = input()
vowel=['a','e','i','o','u']
if c in vowel:
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
c=input()
print("vowel"if c in "aiueo" else "constant")

Failing test case input:
Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c=input()
print("vowel"if c in "aiueo" else "consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = str(input())

if a == "a"or"i"or"u"or"e"or"o":
  print("vowel")
else:
  print("consonant")

Failing test case input:
Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
a = str(input())
boin = ['a','i','u','e','o']

if a in boin:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
a=["a","i","u","e","o"]
if c in a:
  print("vowel")
else:
  print("cosonant")

Failing test case input:


Expected output:
consonant


Actual output:
cosonant


Fixed submission (verdict: Accepted):
c=input()
a=["a","i","u","e","o"]
if c in a:
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c = input()
print("vowel" if c in "aiueo" else "constant")

Failing test case input:
Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
print("vowel" if c in "aiueo" else "consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c  = input()

if c == 'a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c  = str(input())

if c=='a' or c=='i' or c=='u' or c=='e' or c=='o':
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if (c == 'a' or 'i' or 'u' or 'e' or 'o' ):
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s = input()
if (s == 'a' or s == 'i' or s == 'u' or s == 'e' or s == 'o' ):
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c=input()
li="aeiou"
if c in li:
    print("vowel")
else:
    print("counstant")

Failing test case input:


Expected output:
consonant


Actual output:
counstant


Fixed submission (verdict: Accepted):
c=input()
li=["a","e","i","u","o"]
if c in li:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()

if c == "a" or "i" or "u" or " e" or "o":
    print("vowel")
else:
    print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()

list = ["a", "i", "u", "e", "o"]

if c in list:
    print("vowel")
else:
    print("consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
v=["a","i","u","e","o"]

vowel=False
for i in range(len(v)):
	if(v[i==s]):
		vowel=True
		break

if vowel==True:
	print("vowel")
else:
	print("consonant")



Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
s=input()
v=["a","i","u","e","o"]

vowel=False
for i in range(len(v)):
	if(v[i]==s):
		vowel=True
		break

if vowel==True:
	print("vowel")
else:
	print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

p = stdin.readline().rstrip()
if p == 'a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
from sys import stdin

p = stdin.readline().rstrip()
if p in {'a', 'e', 'i', 'o', 'u'}:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
['vowel','consonant'][not input() in ['a','e','i','o','u']]

Failing test case input:


Expected output:
consonant


Actual output:

Fixed submission (verdict: Accepted):
print(['vowel','consonant'][not input() in ['a','e','i','o','u']])

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=str(input())
if c in "aiueo":
  print("YES")
else:
  print("NO")

Failing test case input:


Expected output:
consonant


Actual output:
NO


Fixed submission (verdict: Accepted):
c=str(input())
if c in "aiueo":
  print("vowel")
else:
  print("consonant")

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

if word == "a" or "e" or "i" or "o" or "u":
    print("vowel")
else:
    print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
word = input()

if word == "a" or word == "e" or word=="i" or word=="o" or word=="u":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=input()
if c == "a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=input()
if c in 'aeiou':
     print("vowel")
else:
     print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
en=input()
print(en)
if en=="a"or"e"or"i"or"o"or"u":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
聙
vowel


Fixed submission (verdict: Accepted):
en=input()
if en=="a"or en=="e" or en=="i"or en=="o"or en=="u":
  print("vowel")
else:
  print("consonant")
Problem: p02451
Buggy submission (Python3, verdict: Wrong Answer):
input()

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

def nibu(low,high,i):
	middle = (low+high)
	if b[middle] <= i:
		low = middle
	else:
		high = middle

	if low == high:
		if i == b[low]:
			return 1 
		else:
			return 0
a = int(input())
for i in range(a):
	k = int(input())
	print(nibu(0,len(b)-1,k))


Failing test case input:
4
1 2 2 4
3
1
3
6

Expected output:
1
0
0


Actual output:
None
None
0


Fixed submission (verdict: Accepted):
input()

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

def nibu(low,high,i):
	middle = int((low+high)/2)
	if low == high:
		if i == b[low]:
			return 1 
		else:
			return 0

	if b[middle] < i:
		low = middle + 1
		return nibu(low,high,i)
	elif b[middle] >= i:
		high = middle
		return nibu(low,high,i)

a = int(input())
for i in range(a):
	k = int(input())
	print(nibu(0,len(b)-1,k))
Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
s = [[] for _ in range(n+1)]
for i in range(m):
    p,y = map(int,input().split())
    s[p].append([y,i])
s[p].sort()
ans = ['']*m
for p in range(1,n+1):
    cnt = 1
    for (y,i) in s[p]:
        ans[i] = '{:06}{:06}'.format(p,cnt)
        cnt += 1
for i in range(len(ans)):
    print(ans[i])

Failing test case input:
2 3
2 75
2 46
1 12

Expected output:
000002000002
000002000001
000001000001


Actual output:
000002000001
000002000002
000001000001


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
s = [[] for _ in range(n+1)]
for i in range(m):
    p,y = map(int,input().split())
    s[p].append([y,i])
ans = [0]*m
for p in range(1,n+1):
    cnt = 1
    for (y,i) in sorted(s[p]):
        ans[i] = '{:06}{:06}'.format(p,cnt)
        cnt += 1
for j in range(len(ans)):
    print(ans[j])

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=list(map(int,input().split()))
city=[]
for i in range(m):
    city.append(list(map(int,input().split())))
city.sort()
ans=[]
count=0
precity=city[0][0]
for i in city:
    if i[0]==precity:
        count+=1
    else:
        count=1
    ans.append(str(i[0]).zfill(6)+str(count).zfill(6))
ans.sort()
for i in ans:
    print(i)

Failing test case input:
2 3
2 26
2 59
1 642

Expected output:
000002000001
000002000002
000001000001


Actual output:
000001000001
000002000001
000002000001


Fixed submission (verdict: Accepted):
n,m=list(map(int,input().split()))
city=[]
for i in range(m):
    city.append(list(map(int,input().split()))+[i])
city.sort()
ans=[]
count=0
precity=city[0][0]
for i in city:
    if i[0]==precity:
        count+=1
    else:
        precity=i[0]
        count=1
    ans.append([i[2],str(i[0]).zfill(6)+str(count).zfill(6)])
ans.sort()
for i in ans:
    print(i[1])

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
s = [[] for _ in range(n+1)]
for i in range(m):
    p,y = map(int,input().split())
    s[p].append([y,i])
s[p].sort()
ans = ['']*m
for p in range(1,n+1):
    cnt = 1
    for (y,i) in s[p]:
        ans[i] = '{:06}{:06}'.format(p,cnt)
        cnt += 1
print(' '.join(ans))

Failing test case input:
3 3
2 26
2 77
1 131

Expected output:
000002000001
000002000002
000001000001


Actual output:
000002000001 000002000002 000001000001


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
s = [[] for _ in range(n+1)]
for i in range(m):
    p,y = map(int,input().split())
    s[p].append([y,i])
ans = [0]*m
for p in range(1,n+1):
    cnt = 1
    for (y,i) in sorted(s[p]):
        ans[i] = '{:06}{:06}'.format(p,cnt)
        cnt += 1
for j in range(len(ans)):
    print(ans[j])
Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split()) 
city_info = [] 
Pref_info = [[] for _ in range(N)] 
for i in range(M):
    P,Y = map(int,input().split())
    city_info.append([P-1, Y])
    Pref_info[P - 1].append(Y)
    


for p,y in city_info:
    x = Pref_info[p].index(y) + 1 
    print("{0:0>6}".format(p+1) + "{0:0>6}".format(x))

Failing test case input:
2 3
2 75
2 46
1 12

Expected output:
000002000002
000002000001
000001000001


Actual output:
000002000001
000002000002
000001000001


Fixed submission (verdict: Accepted):
N,M = map(int,input().split()) 
Pref_info = [[] for _ in range(N)] 
for i in range(M):
    P,Y = map(int,input().split())
    Pref_info[P - 1].append([Y,i])
ans = [""]* M 
for i in range(N): 
    Pref_info[i].sort()
    for index, p in enumerate(Pref_info[i]):
        ans[p[1]] = "{0}{1}".format(str(i+1).zfill(6),str(index+1).zfill(6))
for i in ans:
    print(i)

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = list(map(int, input().split()))
PYs = {}
for _ in range(M):
    p, y = list(map(int, input().split()))
    if p not in PYs:
        PYs[p] = []
    PYs[p].append(y)

for p in sorted(PYs.keys()):
    str_p = '{}'.format(p).zfill(6)
    for idx, c in enumerate(sorted(PYs[p])):
        print(str_p + '{}'.format(idx + 1).zfill(6))





Failing test case input:
2 3
2 26
2 59
1 642

Expected output:
000002000001
000002000002
000001000001


Actual output:
000001000001
000002000001
000002000002


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

PYs = {}

py2nummap = {}
py2 = []
for _ in range(M):
    p, y = list(map(int, input().split()))
    if p not in PYs:
        PYs[p] = []
    PYs[p].append(y)
    py2nummap[(p,y)] = ''
    py2.append((p,y))

for p in sorted(PYs.keys()):
    str_p = '{}'.format(p).zfill(6)
    for idx, c in enumerate(sorted(PYs[p])):
        py2nummap[(p,c)] = (str_p + '{}'.format(idx + 1).zfill(6))


for y in py2:
    
    print(py2nummap[y])

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=[int(i) for i in input().split()]
id=[[int(i) for i in input().split()]+[j] for j in range(m)]

print(id)

pre_num=[0]*(n+1)
ans=[""]*m

id.sort(key=lambda x:x[1])

for p,y,i in id:
    pre_num[p]+=1
    ans[i]=str(p).zfill(6)+str(pre_num[p]).zfill(6)
    
print("\n".join(ans))


Failing test case input:
2 3
2 26
2 32
1 239

Expected output:
000002000001
000002000002
000001000001


Actual output:
[[2, 26, 0], [2, 32, 1], [1, 239, 2]]
000002000001
000002000002
000001000001


Fixed submission (verdict: Accepted):
n,m=[int(i) for i in input().split()]
id=[[int(i) for i in input().split()]+[j] for j in range(m)]

pre_num=[0]*(n+1)
ans=[""]*m

id.sort(key=lambda x:x[1])

for p,y,i in id:
    pre_num[p]+=1
    ans[i]=str(p).zfill(6)+str(pre_num[p]).zfill(6)

print("\n".join(ans))
Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())
from bisect import bisect_right
dic = [[] for i in range(N)]

shi = {}
for i in range(M):
    p, y = map(int, input().split())
    dic[p-1].append(y)
    shi[i] = (p, y)

for j in range(M):
    p, y = shi[j]
    print('{:06}{:06}'.format(p, bisect_right(dic[p-1], y)))



Failing test case input:
3 2
1 90
1 0
1 178

Expected output:
000001000002
000001000001


Actual output:
000001000002
000001000002


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
from bisect import bisect_right
dic = [[] for i in range(N)]

shi = {}
for i in range(M):
    p, y = map(int, input().split())
    dic[p-1].append(y)
    shi[i] = (p, y)

for i in range(N):
    dic[i].sort()

for j in range(M):
    p, y = shi[j]
    print('{:06}{:06}'.format(p, bisect_right(dic[p-1], y)))

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
city = [[] for i in range(n)]
def f(s):
    s = str(s)
    t  = 6 - len(s)
    s = "0"*t + s
    return s
for i in range(m):
    ken,year = map(int,input().split())
    city[ken-1].append(year)
for i in range(n):
    city[i].sort()
    for j in range(len(city[i])):
        ans = f(i+1) + f(j+1)
        print(ans)

Failing test case input:
2 3
1 32
2 63
1 9

Expected output:
000001000002
000002000001
000001000001


Actual output:
000001000001
000001000002
000002000001


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
city = [[] for i in range(n)]
def f(s):
    s = str(s)
    t  = 6 - len(s)
    s = "0"*t + s
    return s
for i in range(m):
    ken,year = map(int,input().split())
    city[ken-1].append([year,i])
newcity = []
for i in range(n):
    city[i].sort()
    for j in range(len(city[i])):
        newcity.append([city[i][j][1],f(i+1) + f(j+1)])
newcity.sort()
for i in range(m):
    print(newcity[i][1])

Problem: p03221
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Data = list(map(int, input().split()))
N = Data[0]
M = Data[1]
del(Data)
Data = []
for i in range(M):
  Data.append(list(map(int, input().split())))
Data.sort()
Cnt = 0
Num = 0
Str = ""
for i in range(M):
  if Num == Data[i][0]:
    Cnt += 1
  else:
    Cnt = 1
    Num = Data[i][0]
  Str = format(Num, '06x') + format(Cnt, '06x')
  print(Str)

Failing test case input:
2 3
2 26
2 58
1 239

Expected output:
000002000001
000002000002
000001000001


Actual output:
000001000001
000002000001
000002000002


Fixed submission (verdict: Accepted):
Data = list(map(int, input().split()))
N = Data[0]
M = Data[1]
del(Data)
Data = []
for i in range(M):
  Data.append(list(map(int, input().split())))
  Data[i].append(i)
Data.sort()
Cnt = 0
Num = 0
for i in range(M):
  if Num == Data[i][0]:
    Cnt += 1
  else:
    Cnt = 1
    Num = Data[i][0]
  Data[i].append(Cnt)
Data.sort(key=lambda x:x[2])

for i in range(M):
  print(str(Data[i][0]).zfill(6) + str(Data[i][3]).zfill(6))