結果

問題 No.2480 Sequence Sum
ユーザー 👑 H20H20
提出日時 2023-09-24 20:32:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 500 ms
コード長 339 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,344 KB
実行使用メモリ 75,940 KB
最終ジャッジ日時 2023-10-04 12:35:28
合計ジャッジ時間 2,217 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,544 KB
testcase_01 AC 71 ms
71,404 KB
testcase_02 AC 73 ms
75,300 KB
testcase_03 AC 74 ms
75,644 KB
testcase_04 AC 74 ms
75,692 KB
testcase_05 AC 74 ms
75,452 KB
testcase_06 AC 74 ms
75,608 KB
testcase_07 AC 75 ms
75,640 KB
testcase_08 AC 74 ms
75,496 KB
testcase_09 AC 75 ms
75,460 KB
testcase_10 AC 75 ms
75,488 KB
testcase_11 AC 74 ms
75,488 KB
testcase_12 AC 75 ms
75,484 KB
testcase_13 AC 75 ms
75,940 KB
testcase_14 AC 75 ms
75,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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())
print(N-len(make_divisors(N)) )
0