結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2019-10-30 20:56:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,564 KB |
| 最終ジャッジ日時 | 2024-09-14 21:58:00 |
| 合計ジャッジ時間 | 5,274 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 TLE * 1 -- * 14 |
ソースコード
n = int(input())
sb = []
for i in range(2,n+1):
t = 0
while n % i == 0:
t += 1
n //= i
if t != 0:
sb.append([i,t])
def souwa(x):
r, n = x
return (r**(n+1) - 1) / (r - 1)
s = 1
for i in sb:
s *= souwa(i)
print(int(s))
Schnee