Count the K-tuples
CodeChefOpen on judge ↗
You have been given two numbers N and K.Your task is to find the number of $K-tuples$ $($ $Tuples$ $of$ $size$ $K$ $)$ ($a$$1$ $,$ $a$$2$ $....$ $a$$k$) such that:- 1. For any pair $(i,j)$ such that $i \neq j$ , $div$($a$$i$)$*$$div$($a$$j$)$=$$div$($a$$i$$*$$a$$j$) where $div(X)$ represents the $number$ $of$ $divisors$ $of$ $X.$ 2. $a$$1$ * $a$ $2$ *$.....$ $a$ $k$= $Factorial$ $of$ $N$ $.$ 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.
Sign in to chat with the tutor and save your progress.
Sign in to start