結果

問題 No.888 約数の総和
ユーザー qib
提出日時 2023-04-03 08:08:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 59,140 KB
最終ジャッジ日時 2024-09-25 00:43:52
合計ジャッジ時間 2,576 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

ans = 0
for x in range(1, int(math.sqrt(n)) + 1):
  if n % x == 0:
    if x != n // x:
      ans += n // x
    ans += x

print(ans)
0