GOT
CodeChefOpen on judge ↗
Lord Robert Stark the young wolf of Winterfell wants to reach the King’s landing to avenge his father’s death. To invade the King’s landing, he must have enough troops. In order to attain the strength Robert believes that the number of platoons $N$ should be that that each digit of $N$ must be divisible by $N$ for example if he has 128 platoons then 128%1==0,128%2==0 and 128%8==0 so Robert Stark w
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