ans正解

austin2010 2023-01-11 15:58:52 8 返回题目

直接使用pow函数,计算次方

幂=pow(底数,指数);

#include <bits/stdc++.h>

using namespace std;

int main()

{

int a, n;

cin >> a >> n;

cout << pow(a, n);

return 0;

}

{{ vote && vote.total.up }}