Problem
Input format
The first line contains the natural number `t`. The following lines contain `t` non-zero natural numbers, separated by spaces or newlines. - `1 <= t <= 100` - `1 <= x <= 1.000.000` for each number read - the subprogram `nrDiv` must be defined explicitly and called from `main`
Output format
The program prints `t` lines, each containing the number of divisors of the corresponding input number, in reading order.
Example
5 12 1 7 100 36
6 1 2 9 9
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
5 12 1 7 100 36
6 1 2 9 9
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.