結果

問題 No.847 Divisors of Power
ユーザー convexineqconvexineq
提出日時 2021-02-18 21:33:09
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 367 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 80,104 KB
最終ジャッジ日時 2023-10-13 05:04:09
合計ジャッジ時間 5,189 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
75,532 KB
testcase_01 AC 76 ms
71,460 KB
testcase_02 AC 75 ms
71,468 KB
testcase_03 AC 75 ms
71,444 KB
testcase_04 AC 77 ms
71,580 KB
testcase_05 AC 73 ms
71,280 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,m = map(int,input().split())
fac = []
for i in range(2,n):
    c = 0
    while n%i == 0:
        n //= i
        c += 1
    if c: fac.append((i,c*k))

L = len(fac)
ans = 0
def dfs(x,i):
    global ans
    if i >= L:
        ans += 1
        return
    p,c = fac[i]
    while x <= m and c >= 0:
        dfs(x,i+1)
        x *= p
        c -= 1

dfs(1,0)
print(ans)
0