C语言训练-求函数值 (C语言代码)只能死板递归? 摘要:解题思路:虽然提交错误,但我也把代码贴出来;这里我处理了重叠子问题;提高了效率; 但是就是不通过。注意事项:参考代码:#include <cstdio> #include <cstring> #…… 题解列表 2018年11月07日 0 点赞 0 评论 1374 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码)(递归) 摘要:规律就是第一个为10,往后每一个加2 完全没看懂题.....第一种递归 ```c #include int zi(int x) { if(x==1) { …… 题解列表 2021年02月08日 0 点赞 0 评论 625 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:```c #include int fac(int n) { if (n == 1) return 10; else return fac…… 题解列表 2020年10月07日 0 点赞 0 评论 696 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int x=1,n; int f1=10; scanf("%d",&n); printf("%d",f1+2…… 题解列表 2020年07月23日 0 点赞 0 评论 984 浏览 评分:0.0
递归求解太简单了 摘要:```c # include int f(int x); int main(void){ int x; scanf("%d",&x); int sum=0; …… 题解列表 2021年06月08日 0 点赞 0 评论 543 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int f(int x) { if(x==1) return 10; return f(x-1)+2; } …… 题解列表 2020年06月09日 0 点赞 0 评论 615 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:```c // // Created by sairo on 2020/5/4. // #include int f(int x) { if (x == 1) { …… 题解列表 2020年05月04日 0 点赞 0 评论 813 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int main() { int f(int x); int x; scanf("%d",&x); …… 题解列表 2020年04月06日 0 点赞 0 评论 889 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int main(int x) { scanf("%d",&x); f(x); printf("%d",f(x)); } int f(int x)…… 题解列表 2020年01月22日 0 点赞 0 评论 1546 浏览 评分:0.0
1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=10,i,x;void fun1(){ scanf("%d",&x); if(x==1) { …… 题解列表 2022年01月25日 0 点赞 0 评论 545 浏览 评分:0.0