結果
問題 |
No.847 Divisors of Power
|
ユーザー |
![]() |
提出日時 | 2020-04-23 01:51:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 433 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,568 KB |
最終ジャッジ日時 | 2024-10-12 12:43:48 |
合計ジャッジ時間 | 4,052 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 4 RE * 3 TLE * 1 -- * 18 |
ソースコード
n,k,m=map(int,input().split()) #約数列挙 def make_divisors(n,m): divisors = [] for i in range(1, min(m,int(n**0.5)+1)): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) divisors.sort() return divisors tmp=make_divisors(n**k,m) l=len(tmp) ans=0 for i in range(l): if tmp[i]<=m: ans+=1 else: break print(ans)