Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3239 | 邓小龙 | x的n次方 | C++ | Accepted | 0 MS | 264 KB | 212 | 2024-04-24 00:16:42 |
#include<iostream> using namespace std; long long jntm(int x,int n){ if(n==0) return 1; else return jntm(x,n-1)*x; } int main(){ int a,b; cin>>a>>b; cout<<jntm(a,b); return 0; }