| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68585 | 祝家懿 | x的n次方 | C++ | Wrong Answer | 1 MS | 284 KB | 227 | 2024-03-24 08:36:49 |
#include<bits/stdc++.h> using namespace std; int s(int x,int n){ if(n==0){ return 1; } if(1==n){ return x; } return x*pow(x,n-1); } int main() { int a,b; cin>>a>>b; a=s(a,b); cout<<a; return 0; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
-2147483648