Who Let The Dogs Out
Statement
Goal
Peter, Paul, and Mary each walk with their dogs in the forest. They come from three separate directions, and are heading to the same play pen (the target). Each person has a retractable dog leash which curls the full length of the leash inside a box (similar to retractable measuring tape).The leashes have their own size and parameters. Each leash has a diameter d and a number n representing the number of times it wraps around in the box. Distance of the target (the play pen) from the dog is t.
Peter, Paul, and Mary don't move from their original position, and the dogs can only reach areas where the distance to their owner is not more than the full length of the leash.
Would it end in a opportunity to play together in the play pen, or are the dog leash too short?
Input
Output
The string Big game if all three dogs can reach the play pen, Little game when only two dogs can reach the play pen, and Frustration otherwise.
Constraints
5 <= d [cm] <= 10
10 <= n <= 50
2 <= t [m] <= 30
10 <= n <= 50
2 <= t [m] <= 30
Example
Input
5 15 19 8 22 16 6 26 9
Output
Frustration
Game modes
Fastest, Shortest
Test cases
Test 1 Test
Input
5 15 19
8 22 16
6 26 9
Output
Frustration
Validator 1 Validator
Input
7 21 21
8 17 10
5 39 11
Output
Frustration
Test 2 Test
Input
6 49 9
8 44 11
10 35 10
Output
Big game
Validator 2 Validator
Input
8 40 10
7 37 8
9 41 11
Output
Big game
Test 3 Test
Input
7 50 11
7 31 6
8 22 5
Output
Little game
Validator 3 Validator
Input
6 29 5
6 42 8
8 26 6
Output
Little game
Test 4 Test
Input
8 29 7
6 42 10
8 35 11
Output
Frustration
Validator 4 Validator
Input
8 14 3
10 10 4
7 21 5
Output
Frustration
Solution language
Solution
Stub generator input