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
Shared Projects (0)
duahaucool hasn't shared any projects
Favorite Projects
View allStudios I'm Following
View allStudios I Curate
View allFollowing
View allFollowers
View allComments
- Comments loading...