Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Условие задачи см в Питошке. Тема: Множества и словари ;)
- d = dict()
- N = int(input())
- for i in range(N):
- name, operations = input().split(maxsplit = 1)
- d[name] = set(operations.split())
- m = int(input())
- for i in range(m):
- access, name = input().split()
- if access in d[name]:
- print('Ок')
- else:
- print('Access denied')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement