duahaucool

Scratcher Joined 1 year, 9 months ago Vietnam

About me

n=int(input())
dem=0
tong=0
for i in range(1, int(n**0.5) +1):
if n%i==0:
if i<n//i:
dem+=2
tong+= i+n//i
else:
dem+=1
tong+= i
print(dem,tong, end=" ")

What I'm working on

What I've been doing

Comments

You have 500 characters left.
  • Comments loading...