Alien
CodeChefOpen on judge ↗
Problem The intelligent alien from Complrotr planet decided to have a day off and he decided to play a game with pebbles. Initially, the alien has n pebbles. He arranges them in a equal rows, each row has b pebbles (a > 1). Note that the alien must use all the pebbles he has, i. e. n = a·b. 10 pebbles are arranged in two rows, each row has 5 pebbles Once the intelligent alien has arranged the p
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