Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103762 | 刘慕莀 | x的n次方 | C++ | Runtime Error | 40 MS | 65792 KB | 209 | 2024-12-29 15:11:02 |
#include<iostream> using namespace std; long long l(int n,int s){ if(n==1&&s==1){ return 1; }else{ return l(n,s-1)*n; } } int main(){ long long a,b; cin>>a,b; cout << l(a,b); return 0; }
Runtime Error:Segmentation fault