Pseudo ordering
CodeChefOpen on judge ↗
We define b is a Divisor of a number a if a is divisible by b. So, the divisors of 12 are 1, 2, 3, 4, 6, 12. So, 12 has 6 divisors. Now you have to order all the integers from 1 to 1000. x will come before y if 1) number of divisors of x is less than number of divisors of y 2) number of divisors of x is equal to number of divisors of y and x > y. Input Input starts with an integer T (Each cas
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