文件名称:Power
- 所属分类:
- Windows编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2017-09-21
- 文件大小:
- 28kb
- 下载次数:
- 0次
- 提 供 者:
- tangu******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
解题方法主要是利用递归和二分,具体就是把x的n次方划分成两个x的n/2次方相乘,然后递归求解子问题,结束条件是n为0返回1。因为是对n进行二分,所以算法复杂度是O(logn)。(Problem solving method is mainly the use of recursive and two points, specifically the x n side is divided into two X n/2 times multiplication, and then recursively solve sub problems, the end of the condition is N 0, return 1. Because it is two points for N, the algorithm complexity is O (logn).)相关搜索: C++
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Power\bin\Debug\Power.exe
Power\main.c
Power\obj\Debug\main.o
Power\Power.cbp
Power\Power.depend
Power\Power.layout
Power\bin\Debug
Power\obj\Debug
Power\bin
Power\obj
Power
Power\main.c
Power\obj\Debug\main.o
Power\Power.cbp
Power\Power.depend
Power\Power.layout
Power\bin\Debug
Power\obj\Debug
Power\bin
Power\obj
Power