For the test case [7 7 7] all of [1 7] [2 7] [3 7] should be valid responses, right? Also you don't have any test cases where the game is not winnable.
2525 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
282 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
295 Solvers
Find the next Fibonacci number
230 Solvers
2747 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!