← All problemsSign in

Unlock The Lock

You have a lock that has value N. You have infinite number of keys, each having value $1,2,3,4,\dots $ You can unlock lock with key such that lock's value is divisible by key's value. Find total no of keys that can be used to unlock the lock. ###Input: - First line of input is number of testcases $t$ $(1 \le t \le 10)$ - Each testcase contain only integer $n$ $(1 \le n \le 10^9)$.

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