Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103789 | 刘慕莀 | x的n次方 | C++ | Wrong Answer | 1 MS | 272 KB | 227 | 2024-12-29 15:17:24 |
#include<bits/stdc++.h> using namespace std; long long l(int n,int s) { if(s==0) { return 1; } if(n==0){ return 1; } return l(n,s-1)*n; } int main(){ int a,b; cin>>a>>b; cout<<l(a,b); return 0; }
------Input------
0 10
------Answer-----
0
------Your output-----
1