70wa了!求助
查看原帖
70wa了!求助
1044425
158qyw楼主2023/8/29 22:10

一直改不对

#include<iostream>
#include<cmath>
int main()
{
    long long a,b,ans;
    std::cin>>a>>b;
    ans=pow(a,b);
    if(ans<=1e+9)
        std::cout<<ans;
    else
        std::cout<<-1;
    return 0;
}
2023/8/29 22:10
加载中...