結果

問題 No.2480 Sequence Sum
ユーザー ああいいああいい
提出日時 2023-10-21 20:00:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 500 ms
コード長 232 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,124 KB
実行使用メモリ 57,728 KB
最終ジャッジ日時 2024-09-21 21:26:06
合計ジャッジ時間 1,559 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

import sys
if N == 1:
	print(0)
	exit()
	
ans = N
C = 10 ** 5
t = 1
for i in range(2,C):
	if N % i == 0:
		count = 0
		while N % i == 0:
			count += 1
			N //= i
		t *= (count + 1)
if N != 1:
	t *= 2
print(ans - t)
0