← All problemsSign in

Number and Factors

Preet is best friend of Monto. She also likes playing with numbers. She has a number $N$ and trying to find first half factors of $N$ starting from $1$ in increasing order. Let's help her. **Note:** If total factors count of $N$ is $M$ and if $M$ is odd then print upto $M/2 + 1$ number of factors, otherwise upto $M/2$ number of factors. ###Input: - The first line contains an integer $T$

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