家人们谁懂啊!
first:1#测试点WA,但输出没问题。
(input 12345678 1,output 12345678)
second:帮忙seesee有什么问题。
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long a,b;
cin >> a >> b;
if(a == 1||b==0)
{
cout << 1;
return 0;
}
double c = 1;
while(b)
{
c*=a;
b--;
if(c>2147483647)
{
cout << -1;
return 0;
}
}
cout << c;
return 0;
}