Type: Default 1000ms 256MiB

整数的约数和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

输入一个自然数x,求这个自然数的所有约数之和。

x 属于int 范围内

Input Format

一个整数 x,x在32位整数范围内。也就是说 x<=2^31

Output Format

x的所有约数和。 x的约数包含本身。

Sample

input

6

output

12

Hint

保证x231x \leq 2^{31}

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20200910-基础递归训练

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2020-9-13 15:29
End at
2020-10-1 15:29
Duration
432 hour(s)
Host
Partic.
18