Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product_count = int(input())
- home_products = set()
- products = set()
- for i in range(product_count):
- home_products.add(input())
- recipes_count = int(input())
- for j in range(recipes_count):
- recipe_name = input()
- ingredients_count = int(input())
- for l in range(ingredients_count):
- products.add(input())
- if products <= home_products:
- print(recipe_name)
- products.clear()
Advertisement
Add Comment
Please, Sign In to add comment