Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
211 | ZRH | x的n次方 | C++ | Wrong Answer | 0 MS | 260 KB | 422 | 2022-07-22 10:03:55 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int t(int x,int n){ if(n==0){ return 1; } else{ n--; return t(x,n)*x; } } int main(){ int x,n; cin>>x>>n; cout<<t(x,n); return 0; }
------Input------
50 10
------Answer-----
97656250000000000
------Your output-----
-1957116928