This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub ryusuke920/AtCoder-Library
# verification-helper: PROBLEM https://yukicoder.me/problems/no/847 import sys sys.path.append("../../") from Math import Factorization def dfs(a: list, now: int): global ans if len(a) == l and now <= m: ans += 1 return for i in range(fac[len(a)][1] + 1): now *= fac[len(a)][0] ** i if now <= m: dfs(a + [i], now) now //= fac[len(a)][0] ** i else: return n, k, m = map(int, input().split()) fac = Factorization.factorization(n) l = len(fac) for i in range(l): fac[i][1] *= k ans = 0 dfs([], 1) print(ans)
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle raise NotImplementedError NotImplementedError