結果

問題 No.2480 Sequence Sum
ユーザー rlangevinrlangevin
提出日時 2023-09-22 21:26:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 500 ms
コード長 235 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 75,828 KB
最終ジャッジ日時 2023-10-04 12:33:04
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,576 KB
testcase_01 AC 73 ms
71,300 KB
testcase_02 AC 75 ms
75,444 KB
testcase_03 AC 77 ms
75,616 KB
testcase_04 AC 77 ms
75,784 KB
testcase_05 AC 79 ms
75,324 KB
testcase_06 AC 77 ms
75,444 KB
testcase_07 AC 78 ms
75,488 KB
testcase_08 AC 77 ms
75,320 KB
testcase_09 AC 78 ms
75,480 KB
testcase_10 AC 79 ms
75,596 KB
testcase_11 AC 79 ms
75,612 KB
testcase_12 AC 80 ms
75,324 KB
testcase_13 AC 78 ms
75,508 KB
testcase_14 AC 79 ms
75,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def div(n):
    if n <= 0:
        return []
    S = set()
    i = 1
    while i * i <= n:
        if n % i == 0:
            S.add(i)
            S.add(n // i)
        i += 1
    return list(S)

N = int(input())
print(N - len(div(N)))
0