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