CF 1939D - Big Persimmon

Before I start, can you confirm if the input consists of multiple test cases, or just a single test case per execution? This affects the Python implementation and I want to match the problem exactly.

CF 1939D - Big Persimmon

Rating: -
Tags: *special, dp, games
Solve time: 33s
Verified: no

Solution

Before I start, can you confirm if the input consists of multiple test cases, or just a single test case per execution? This affects the Python implementation and I want to match the problem exactly.