結果

問題 No.888 約数の総和
ユーザー na-sh
提出日時 2019-10-17 17:23:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 104 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-06-24 20:11:52
合計ジャッジ時間 5,125 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 8 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = sum(x + N // x for x in range(N, int(N ** 0.5), -1) if N % x == 0)

print(ans)

0