Guest User

Untitled

a guest
Nov 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. product_count = int(input())
  2. home_products = set()
  3. products = set()
  4. for i in range(product_count):
  5. home_products.add(input())
  6. recipes_count = int(input())
  7. for j in range(recipes_count):
  8. recipe_name = input()
  9. ingredients_count = int(input())
  10. for l in range(ingredients_count):
  11. products.add(input())
  12. if products <= home_products:
  13. print(recipe_name)
  14. products.clear()
Advertisement
Add Comment
Please, Sign In to add comment