Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67636 李琥博 年龄问题 C++ Accepted 0 MS 264 KB 181 2024-03-17 11:39:10

Tests(1/1):


Code:

#include<iostream> using namespace std; int a(int n){ if(n==1){ return 10; }else{ return 2+a(n-1); } } int main(){ int x=a(5); cout<<x; return 0; }