ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2033. Devices

HINT If you get WA22
Posted by Maxim Afripov 21 Nov 2021 01:44
If you get WA22, problem in saving minimal price of devices. If there are several popular devices, you need to display the one with the cheapest price
Try test:
a
htc
10000
b
nexus
10000
c
htc
99999
d
nexus
10000
e
htc
5000
f
nexus
10000

answer is htc (the most minimal price is 5000)