結果

問題 No.2480 Sequence Sum
ユーザー hiro1729hiro1729
提出日時 2023-09-22 21:39:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 500 ms
コード長 217 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 87,244 KB
実行使用メモリ 76,380 KB
最終ジャッジ日時 2023-10-04 12:33:53
合計ジャッジ時間 2,168 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,840 KB
testcase_01 AC 67 ms
71,784 KB
testcase_02 AC 70 ms
75,868 KB
testcase_03 AC 73 ms
75,620 KB
testcase_04 AC 72 ms
75,836 KB
testcase_05 AC 71 ms
75,880 KB
testcase_06 AC 71 ms
75,872 KB
testcase_07 AC 73 ms
75,672 KB
testcase_08 AC 71 ms
75,836 KB
testcase_09 AC 72 ms
75,716 KB
testcase_10 AC 71 ms
75,828 KB
testcase_11 AC 72 ms
75,812 KB
testcase_12 AC 72 ms
75,828 KB
testcase_13 AC 73 ms
75,900 KB
testcase_14 AC 73 ms
76,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
def divisor(n: int) -> list:
	r = []
	for i in range(1, int(n ** 0.5) + 1):
		if n % i != 0:
			continue
		r.append(i)
		if i * i != n:
			r.append(n // i)
	return sorted(r)
print(n - len(divisor(n)))
0