Shop Lookup (Maps & Dictionaries)
Read n lines of item price, then one query item. Print its price, or not sold if it is missing.
Input: n, n lines of item price, then the query.
Output: The price or not sold.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Build a map from item to price, then look the query up.