正整數的冪次
想必大家都知道
等正整數的冪次之間相等的關係。你有沒有想過底數和指數在某個範圍以內的正整數冪次到底有幾種呢? 給定正整數
,定義集合 。 問題很簡單,請計算
。
Input
輸入只有一行,這行輸入兩個正整數
Output
輸出一個整數,代表
Constraints
第
第
第
第
第
Sample Input 1
Copy
4 4
Sample Output 1
Copy
11
Sample Input 2
Copy
48763 45510
Sample Output 2
Copy
216698900
评论