結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 23:29:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 500 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 59,236 KB |
| 最終ジャッジ日時 | 2024-07-26 14:41:16 |
| 合計ジャッジ時間 | 1,509 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
import sys
input = sys.stdin.readline
def make_divisors(n):
lower_divisors , upper_divisors = [], []
i = 1
while i*i <= n:
if n % i == 0:
lower_divisors.append(i)
if i != n // i:
upper_divisors.append(n//i)
i += 1
return lower_divisors + upper_divisors[::-1]
N = int(input())
Y = make_divisors(N)
print(N-len(Y))