Advertisement
anhkind

Untitled

May 20th, 2025
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def count(v):
  2.   res = 0
  3.   for a in range(1, v + 1):
  4.     if v % a: continue
  5.     vv = v // a
  6.     for b in range(1, vv + 1):
  7.       if vv % b: continue
  8.       print(','.join(map(str, [a, b, v//a//b])))
  9.       res += 1
  10.   return res
  11. print(count(36))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement