結果

問題 No.2480 Sequence Sum
ユーザー miya145592miya145592
提出日時 2023-09-22 23:29:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 500 ms
コード長 386 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,308 KB
実行使用メモリ 75,944 KB
最終ジャッジ日時 2023-10-04 12:34:56
合計ジャッジ時間 2,231 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,544 KB
testcase_01 AC 71 ms
71,672 KB
testcase_02 AC 74 ms
75,608 KB
testcase_03 AC 74 ms
75,604 KB
testcase_04 AC 74 ms
75,592 KB
testcase_05 AC 76 ms
75,484 KB
testcase_06 AC 74 ms
75,524 KB
testcase_07 AC 75 ms
75,644 KB
testcase_08 AC 74 ms
75,792 KB
testcase_09 AC 75 ms
75,596 KB
testcase_10 AC 75 ms
75,516 KB
testcase_11 AC 75 ms
75,488 KB
testcase_12 AC 75 ms
75,524 KB
testcase_13 AC 76 ms
75,584 KB
testcase_14 AC 77 ms
75,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0