← All problemsSign in

Find the THREE Numbers

A triplet of integers $(A,B,C)$ is considered to be special if it satisfies the following properties for a given integer $N$ : $A mod B=C$ $B mod C=0$ $1 \leq A,B,C \leq N$ Example: There are three special triplets for $N=3$. (1,3,1) is a special triplet, since $ (1 mod 3)=1$ and $(3 mod 1)=0$. (1,2,1) is a special triplet, since $(1 mod 2)=1$ and $(2 mod 1)=0$. (3,2,1) is a special triplet

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