結果

問題 No.2480 Sequence Sum
ユーザー detteiuu
提出日時 2024-12-07 18:02:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 500 ms
コード長 240 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2024-12-07 18:02:49
合計ジャッジ時間 1,771 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

def divisor(n):
    ans = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            ans.append(i)
            if i*i != n:
                ans.append(n//i)
    return sorted(ans)

print(N-len(divisor(N)))
0