Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class Solution {
  2. public int solution(int N) {
  3. int count = 0;
  4. int i;
  5. for (i = 1; 0 < N - i * i; ++i) {
  6. if (N % i == 0) {
  7. count += 2;
  8. }
  9. }
  10. if (i * i == N) {
  11. ++count;
  12. }
  13. return count;
  14. }
  15. }
Add Comment
Please, Sign In to add comment