50. Pow(x, n) 372. Super Pow https://www.cnblogs.com/grandyang/p/5651982.html https://www.jianshu.com/p/b256bd531df0 做这个题之间先了解两个公式: 公式一:a^b mod c = (a mod c)^b mod c公式二:(ab) mod c = (a mod c)(b mod c) mod c 这道题题让我们求一个数的很大的次方对1337取余的值,即a^b mod 1337.输入…
Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Output: 9.26100 Example 3: Input: 2.00000, -2 Output: 0.25000 Explanation: 2-2 = 1/22 = 1/4 = 0.25 题意: 求…