trka
There are N racers with their current speeds known. Besides their speeds, you are also given the exact time of their start in hours, minutes and seconds. The race is being watched until a certain moment, also given in hours, minutes and seconds. At that moment all of the racers are on the track. Every racer starts alone at the start line and runs along a straight line with constant speed. The whole race (until that certain moment) is held in a single day.
You need to write a program that, considering the given data, finds the total number of racers that has no other racers in front of them at least one time during the race.
3 16 0 0
5 15 0 0
10 15 1 0
12 15 1 15 Output:
3Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.