Dex & Dos
CodeChefOpen on judge ↗
Dex and Dos play the game of multiplication by multiplying an integer X by one of the numbers 2 to 9. Dex always starts with X= 1, does his multiplication, then Dos multiplies the number, then Dex and so on. Before a game starts, they fix an integer 1 = n. Input and Output Description Each line of input contains one integer number n. For each line of input output one line either Dex wins. or
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