C语言训练-求函数值 (C语言代码)(递归) 摘要:解题思路:注意事项:参考代码:/*按如下递归公式求函数值。 x=1时 f(x)=10;x>1时 f(x)=f(x-1)+2*/#include <stdio.h>int f(int x);int ma…… 题解列表 2018年03月08日 1 点赞 0 评论 2105 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>int main(){ i…… 题解列表 2018年04月22日 0 点赞 0 评论 1409 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)只能死板递归? 摘要:解题思路:虽然提交错误,但我也把代码贴出来;这里我处理了重叠子问题;提高了效率; 但是就是不通过。注意事项:参考代码:#include <cstdio> #include <cstring> #…… 题解列表 2018年11月07日 0 点赞 0 评论 1523 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>int f(int x){ if…… 题解列表 2018年04月22日 0 点赞 0 评论 1222 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int f(int n){ if(n==1) return 10; else if(n>1) return f(…… 题解列表 2018年07月30日 0 点赞 0 评论 1307 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:#include<stdio.h> int recursion(int x){ if(x==1){ return 10; } else … 题解列表 2018年09月30日 1 点赞 0 评论 1630 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)一行 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cstring> #include <string> #include <cmath> #include …… 题解列表 2018年11月07日 0 点赞 0 评论 1461 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num[10000]={0},i,n; num[1]=10; for(i=2;i<10…… 题解列表 2017年08月30日 0 点赞 0 评论 1993 浏览 评分:2.0
1137: C语言训练-求函数值-题解(python) 摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: …… 题解列表 2021年10月23日 0 点赞 0 评论 1023 浏览 评分:6.0
C语言训练-求函数值-题解(C++代码) ```cpp#includeusingnamespacestd;intf(intn){if(n==1){return10;}else{returnf(n-1)+2;}}intmain(){intn;cin>>n;intp=f(n);cout 题解列表 2020年04月02日 0 点赞 0 评论 990 浏览 评分:6.6