HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > IMPC - 2013-2014 > problem:


2013-05-10. 50552 - Casual shoes

IMPC - 2013-2014

Start: Mar.16.2013 at 12:00:00 PM
Finish: Mar.16.2013 at 05:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 2013-04-10. 50335 - Five Math Ope...
• 2013-04-100. 50323 - Filtering Cont...
• 2013-04-30. 50337 - Exam Averages
• 2013-04-40. 50338 - Convert Into ...
• 2013-04-50. 50774 - Hot Potato
• 2013-04-70. 50296 - Total Discount...
• 2013-04-80. 50343 - The number of...
• 2013-04-90. 50332 - Variance of a ...
• 2013-05-10. 50552 - Casual shoes
• 2013-05-30. 50580 - Days passed
• 2013-05-40. 50553 - Divisible by m
• 2013-05-50. 50593 - Transporter
• 2013-12-10. 50352 - Selling Cows
• 2013-12-40. 50342 - 100 Factorial
• 2013-12-50. 50674 - Collecting Eggs
• 2013-Nov-01. 50328 - How far away
• 2013-Nov-02. 50347 - Selling Oranges

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan.

How many casual shoes are there?

Shqip

Ms. Jona has a shoe store. She wants to store all his shoe stock information in a computerized system. Whenever a customer comes the salesclerk will ask for the prefrences of the customer, and then the computer will list the positions of the shoes with the customer's prefrences.

Question:
Write a program that is going to get the preferences of the customer and then the program is going to list the locations of all shoes that fit the customer preferences.

Input specification
In the first line, you will be given the preferences of the customer:

  1. The shoe type: one word which is at most 16 chars
  2. The start size: an integer (where 10 ≤ size < 60)
  3. The end size: an integer (where 10 ≤ size < 60)
where start size ≤ end size. Then, you will be given a number n (where 1 ≤ n < 1000), and the following n lines contain n-shoes information.
  1. The shoe type: one word which is at most 16 chars
  2. The color: one word which is at most 12 chars
  3. The size: an integer (where 10 ≤ size < 60)
  4. The price: an integer (where 1 ≤ size < 30000)
  5. The location: Two chars one letter followed by a digit
Note: The shoe type and color informations contain only uppercase or lowercase English letters and no other special chars.

Output specification
Show the locations of the shoes which fit the customer preferences. Show the items in order of appareances. (First is shown first).

Sample Input I
  Casual 33 35
  7
  Dance Pink 41 1900 A4
  Casual Grey 33 1800 G2
  Mountaineering Red 22 2400 B9
  Sandals Red 44 1300 C6
  Casual Grey 28 1700 B2
  Casual Brown 35 2200 A4
  Derby Black 42 1600 F1

Sample Output I
  G2
  A4


Для отправки решений необходимо выполнить вход.

www.contester.ru