← All problemsSign in

Lockdown Game - II

Alice gets tired of losing in 'Lockdown Game - I' and decides to change the game. Alice comes up with the following game. - It starts with an initial array of $N$ integers, $[a_1, a_2,...,a_n]$ - GCD of initial array is 1 i.e. $GCD(a_1, a_2,...,a_n)=1$ - In each turn, a player chooses a single element(greater than 1) and reduces it by 1. Then the player divides the whole array by the GCD of

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start