Game Dilemma
CodeChefOpen on judge ↗
Charlie is a Professional gamer. One day he decides to visit the game store to purchase a new game. The game store he visits labels all their new games with random serial numbers , and all the new games are placed in a separate shelf. Here, any game’s rating is considered to be great if $HCF(A, B) > K$ where $A$ is the serial number, $B$ is index of that particular game in the shelf (indexed from
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.
Sign in to chat with the tutor and save your progress.
Sign in to start