MeetCode
Home
Doubts
Why is my C function not returning the …
Solved
1
49
Ask Doubt
View All Doubts
Solvers Leaderboard
Tutorials
Quiz
All Tests
Leaderboard
My Tasks
User Login
Dark
Enable Notifications
Toggle navigation
Count Divisors Naive
Computer Mathematics
Medium
2 views
Back to Questions
View Answer
0
Previous
Reduce Ratio
Medium
P
Next
Sum Of Divisors Naive
Hard
N
Problem Description
Given n
Input Format
One integer n.
Output Format
Divisor count.
Sample Test Case
Input:
12
Output:
6
Constraints
1
Official Solution
Loop i from 1..sqrt(n). If i divides n add 2, but if i*i==n add 1.
Please
login
to submit solutions and comments.
Solutions (0)
No solutions submitted yet. Be the first!
Discussion (0)
No comments yet. Start the discussion!
Prev
Next
Fullscreen Editor
0 lines • 0 chars
Esc close • Tab indent
No comments yet. Start the discussion!