Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
215 | Benson | x的n次方 | C++ | Wrong Answer | 0 MS | 256 KB | 295 | 2022-07-22 10:06:05 |
#include<iostream> #include<cstring> #include<cmath> using namespace std; int quhe(int x,int n) { if(n==0) { return 1; } else { return quhe(x,n-1)*x; } } int main() { long long n,m; cin>>n>>m; cout<<quhe(n,m); return 0; }
------Input------
50 10
------Answer-----
97656250000000000
------Your output-----
-1957116928