結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-10-30 15:11:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 315 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,436 KB |
| 最終ジャッジ日時 | 2024-09-14 21:52:34 |
| 合計ジャッジ時間 | 5,524 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 TLE * 1 -- * 14 |
ソースコード
# No.888 約数の総和
n = int(input())
divisors = []
if n == 1:
divisors = [1]
elif n < 4:
divisors = [1, n]
else:
divisors = [1, n]
for i in range(2, n):
if n % i == 0:
divisors.append(i)
print(sum(divisors))
fV9TwBhUoa9S3eV