| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133340 | 李朋秦 | 阿克曼函数 | C++ | Wrong Answer | 1 MS | 272 KB | 320 | 2025-10-18 15:04:50 |
#include<bits/stdc++.h> using namespace std; long long sum(int x,int y){ if((x<=3)&&(y<=10)){ if(x==0){ return y+1; }else if((x>0)&&(y==0)){ return sum(x-1,1); }else if((x>0)&&(y>0)){ return sum(x-1,sum(x,y-1)); } } } int main(){ long long a,c; cin>>a>>c; cout<<sum(a,c); return 0; }
------Input------
3 5
------Answer-----
253
------Your output-----
11