結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2019-10-30 20:55:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-09-14 21:57:45 |
| 合計ジャッジ時間 | 5,180 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 1 TLE * 1 -- * 14 |
ソースコード
n = int(input())
sb = []
for i in range(2,n):
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