问题标题: 酷町堂:1966求思路


0
已采纳
项依凡
项依凡
初级光能
初级光能

直接使用pow函数

头文件为#include<cmath>

0
0
0
张舒斌
张舒斌
中级光能
中级光能

记住求幂运算的c++公式就行了

主要代码:

sum=pow(n,m-1);

头文件:

#include<iostream>
#include<cmath>

望采纳

我要回答