問題一覧 > 通常問題

No.888 Sum of Divisors

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 384
作問者 : trineutron / テスター : 37zigen
お気に入りにしたユーザー ProblemId : 3149 / 自分の提出
問題文最終更新日: 2022-04-26 01:53:41
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 224 (順位表) の他の問題:

Problem Statement

Given a positive integer $N$, find the sum of the positive divisors of $N$.

Input

$N$

$N$ is a positive integer.
$1 \le N \le 10^{12}$

Output

Output the sum of the positive divisors of $N$. Print a newline at the end.

Sample

Sample 1
Input
6
Output
12

The positive divisors of 6 are 1, 2, 3, 6, so their sum, 12, is the answer.

Sample 2
Input
37
Output
38

Sample 3
Input
100000
Output
246078

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。