SUMNUM - Tổng ước số

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C#, C++, Go, Java, Pascal, Perl, PHP, Python, Ruby, Rust, Scratch, Swift

Cho số nguyên dương ~n~. Tính tổng các ước nguyên dương của ~n~.

Input

Một dòng duy nhất chứa số nguyên dương ~n~.

Output

  • Một dòng duy nhất chứa đáp số bài toán.

Sample

Input #1
10
Output #1
18

Hint

Giới hạn:

  • Subtask ~\#1: 1≤n≤10^6~;

  • Subtask ~\#2: 10^6<n≤10^9~.</p>


Comments

Please read the guidelines before commenting.



  • 0
    minhtriet2013  commented on March 7, 2025, 1:34 p.m.

    co tle dau ban


  • 0
    minhtriet2013  commented on March 7, 2025, 1:34 p.m. edited

    ko cho chep dau


  • -4
    nguyenhai  commented on Nov. 8, 2024, 1:15 p.m.

    ai cần thì dùng nha


  • -3
    Khoa23dz  commented on Aug. 16, 2024, 9:01 a.m.

    while kieu j v