Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
212 | 邓小龙 | x的n次方 | C++ | Wrong Answer | 0 MS | 264 KB | 306 | 2022-07-22 10:04:02 |
#include<iostream> #include<cstdio> #include<string> #include<iomanip> #include<cmath> using namespace std; int cifang(int x,int n) { if(n==0) return 1; else return cifang(x,n-1)*x; } int main(){ int p,y; cin>>p>>y; cout<<cifang(p,y); return 0; }
------Input------
50 10
------Answer-----
97656250000000000
------Your output-----
-1957116928