結果

問題 No.2480 Sequence Sum
ユーザー ああいいああいい
提出日時 2023-10-21 20:00:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 500 ms
コード長 232 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 81,636 KB
実行使用メモリ 57,440 KB
最終ジャッジ日時 2023-10-21 20:00:42
合計ジャッジ時間 1,459 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
57,440 KB
testcase_01 AC 43 ms
57,440 KB
testcase_02 AC 43 ms
57,440 KB
testcase_03 AC 41 ms
57,440 KB
testcase_04 AC 41 ms
57,440 KB
testcase_05 AC 41 ms
57,440 KB
testcase_06 AC 42 ms
57,440 KB
testcase_07 AC 41 ms
57,440 KB
testcase_08 AC 41 ms
57,440 KB
testcase_09 AC 41 ms
57,440 KB
testcase_10 AC 41 ms
57,436 KB
testcase_11 AC 42 ms
57,440 KB
testcase_12 AC 42 ms
57,440 KB
testcase_13 AC 41 ms
57,440 KB
testcase_14 AC 42 ms
57,440 KB
権限があれば一括ダウンロードができます

ソースコード

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