I am getting wrong answer error in test #27 of problem — 469A

Revision en2, by dashrath1526, 2020-08-20 19:43:12

Problem link

n = int(input())
x = list(map(int,input().split()))
y = list(map(int,input().split()))
xy = set(x)
xy.update(y)

flag = False
while n > 0:
    if n in xy:
        n -= 1
        continue
    else:
        flag = True
        break

if flag:
    print('Oh, my keyboard!')
else:
    print('I become the guy.')

As per my understanding of the problem desc, I am not missing anything here. I am new here so correct me if I am wrong.

Test case description. Input 3

1 2

2 2 3

Participant's output I become the guy.

Jury's answer Oh, my keyboard!

Checker comment wrong answer 1st lines differ — expected: 'Oh, my keyboard!', found: 'I become the guy.'

Tags #469a, #greedy, #implementation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English dashrath1526 2020-08-20 19:43:12 6 Tiny change: 'Input\n3\n1 2\n2 2 3\n\' -> 'Input\n3\n\n1 2\n\n2 2 3\n\'
en1 English dashrath1526 2020-08-20 19:41:32 831 Initial revision (published)