Easy10 pts
Apple and Orange
House [s,t]. Apple tree at a, orange at b. n apples fall at distances d (from a), m oranges from b. Count how many land on the house.
Input
s t\na b\nm n\napples...\noranges...
Output
Two lines: count apples, count oranges.
Sample
7 11 5 15 3 2 -2 2 1 5 -6
Expected
1 1
Loading editor…
Output
No output yet. Run your code to see results.