1137: C语言训练-求函数值-题解(python) 摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: …… 题解列表 2021年10月23日 0 点赞 0 评论 970 浏览 评分:6.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 评论 1835 浏览 评分:2.0
python训练-求函数值——递归函数 摘要:解题思路:仔细列出前几个数就会发现,后一个数总等于前一个数加2在列表里最后一个数用L[-1]注意事项:参考代码:n = int(input())L = [10]for i in range(n-1):…… 题解列表 2023年03月18日 0 点赞 0 评论 494 浏览 评分:0.0
1137: C语言训练-求函数值 摘要:解题思路:注意事项:使用sys改变递归深度,避免报错参考代码:import syssys.setrecursionlimit(1000000)def f(x): if x == 1: …… 题解列表 2024年01月09日 0 点赞 0 评论 439 浏览 评分:0.0
Hifipsysta-1137题-C语言训练-求函数值(C++代码)普通递归法 摘要:```cpp #include using namespace std; int func(int x){ int y=0; if(x==1){ y=1…… 题解列表 2022年01月30日 0 点赞 0 评论 414 浏览 评分:0.0
简单的递归进行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int x){ if(x==1) return 10; if(x>1) return f(x-1)+2;}int main(…… 题解列表 2024年11月27日 0 点赞 0 评论 406 浏览 评分: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 评论 532 浏览 评分:0.0
C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) { return 10; } …… 题解列表 2023年01月05日 0 点赞 0 评论 545 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:n =int(input())ls = [10]for i in range(n): ls.append(ls[-1]+2)print(ls[-2])…… 题解列表 2021年12月15日 0 点赞 0 评论 531 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>#include<math.h>using namespace …… 题解列表 2022年03月21日 0 点赞 0 评论 422 浏览 评分:0.0