結果
| 問題 | No.888 約数の総和 |
| コンテスト | |
| ユーザー |
Ohnuma
|
| 提出日時 | 2020-04-10 15:32:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 151 ms / 2,000 ms |
| コード長 | 205 bytes |
| 記録 | |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,452 KB |
| 最終ジャッジ日時 | 2026-04-04 16:53:54 |
| 合計ジャッジ時間 | 5,076 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
def f(x):
ret = []
for i in range(1, int(x**0.5)+1):
if x%i==0:
ret.append(i)
if i!=x//i:
ret.append(x//i)
return sum(ret)
print(f(int(input())))
Ohnuma