IT2
I and Ti 2: The Return of I and Ti
Congratulations, you have proven yourselves to be good programmers when you were helping I and Ti to find out whether they would have enough fuel for their intergalactic trip, during the first round of these qualifications. However, as all of the stubborn aliens, they were not listening to you, and as a consequence of that, they, as expected, ran out of fuel. They are in a really unenviable situation now. Without fuel, they levitate in airless space, while an asteroid shower is falling on them! This time they are begging you to help them find out how many asteroids will hit their ship (that is, whether it will be capable of withstanding the concussions), and promising that they will listen to you this time, swearing on their daily bread.
0.0 0.0 3.0 3.0
5
1.0 -1.0 -1.0 1.0
1.0 1.0 2.0 2.0
1.0 1.0 5.0 5.0
3.0 3.0 11.7 6.3
-1.0 0.0 2.0 3.0Output:
4Explanation:
All the asteroids but the last one will hit the ship.
Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.