結果
問題 | No.2480 Sequence Sum |
ユーザー | mymelochan |
提出日時 | 2023-09-22 21:37:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 97 ms / 500 ms |
コード長 | 822 bytes |
コンパイル時間 | 273 ms |
コンパイル使用メモリ | 87,232 KB |
実行使用メモリ | 76,848 KB |
最終ジャッジ日時 | 2023-10-04 12:33:46 |
合計ジャッジ時間 | 2,534 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 93 ms
71,764 KB |
testcase_01 | AC | 91 ms
71,560 KB |
testcase_02 | AC | 94 ms
76,632 KB |
testcase_03 | AC | 92 ms
76,536 KB |
testcase_04 | AC | 95 ms
76,848 KB |
testcase_05 | AC | 93 ms
76,524 KB |
testcase_06 | AC | 96 ms
76,708 KB |
testcase_07 | AC | 97 ms
76,612 KB |
testcase_08 | AC | 95 ms
76,580 KB |
testcase_09 | AC | 96 ms
76,668 KB |
testcase_10 | AC | 97 ms
76,676 KB |
testcase_11 | AC | 94 ms
76,568 KB |
testcase_12 | AC | 95 ms
76,532 KB |
testcase_13 | AC | 95 ms
76,536 KB |
testcase_14 | AC | 96 ms
76,828 KB |
ソースコード
############################################################# import sys sys.setrecursionlimit(10**7) from heapq import heappop,heappush from collections import deque,defaultdict,Counter from bisect import bisect_left, bisect_right from itertools import product,combinations,permutations ipt = sys.stdin.readline def iin(): return int(ipt()) def lmin(): return list(map(int,ipt().split())) def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] MOD = 998244353 ############################################################# N = iin() d = make_divisors(N) print(N-len(d))