Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = 1
- res = [0]*int(input())
- while(1):
- c = input()
- if(c == 'HELP'):
- break
- d = -1
- if (input()=='YES'):
- d = 1
- f = 0
- for i in list(map(int,c.split())):
- if(res[i-1] != -1):
- res[i-1] = d
- for i in range(len(res)):
- if(res[i] == 1 or (f and res[i] == 0)):
- print(i+1,end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement