結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-17 17:36:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,572 KB |
| 最終ジャッジ日時 | 2024-06-24 20:21:14 |
| 合計ジャッジ時間 | 5,279 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 TLE * 1 -- * 14 |
ソースコード
N = int(input())
ans = 0
for x in range(N, int(N ** 0.5), -1):
if N % x == 0:
ans += sum([x, N // x])
if int(N ** 0.5) == N ** 0.5:
ans += int(N ** 0.5)
print(ans)