Say No To Drugs Problem Code: NODRUGS
Say No To Drugs Problem Code: NODRUGS There are N N people participating in a race. The N t h N t h participant is your friend, so you want him to win. You are not a man of ethics, so you decided to inject some units of a Performance Enhancement Drug (don't ask where that came from) in your friend's body. From the charts, you came to know the speed of every player. Formally, for a player i i , his speed is denoted by S i S i . The change in speed with one unit of the drug is K K units. Note that K K can be negative, which means the drug has more side effects than benefits. Of course, there will be a drug test before the race, so your friend will be caught if the number of units of the drug in his blood is greater than or equal to L L . You need to determine whether you can help your friend to win the race (with or without drugs), without getting caught. Note: A player wins the race if he has the m...