1137: C语言训练-求函数值-题解(python) 摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: …… 题解列表 2021年10月23日 0 点赞 0 评论 415 浏览 评分:6.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 评论 217 浏览 评分: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 评论 215 浏览 评分: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 评论 144 浏览 评分:0.0
C语言训练-求函数值 摘要:import sys sys.setrecursionlimit(1000000) def f(n): if n==1: return 10 elif n>1…… 题解列表 2022年02月09日 0 点赞 0 评论 319 浏览 评分:9.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>#include<math.h>using namespace …… 题解列表 2022年03月21日 0 点赞 0 评论 165 浏览 评分:0.0
题解 1137: C语言训练-求函数值(C) 摘要:参考代码:#include<stdio.h> int main(void){ int x,y=10; int i; scanf("%d",&x); if(x>1){ …… 题解列表 2022年08月27日 0 点赞 0 评论 170 浏览 评分:0.0
1137: C语言训练-求函数值 摘要:```cpp #include using namespace std; int f(int x); int main() { int x; cin>>x; c…… 题解列表 2022年09月25日 0 点赞 0 评论 349 浏览 评分:9.9
1137-求函数值(代码短,思路容易理解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int fun(int n){ if(n==1) return 10; …… 题解列表 2022年10月08日 0 点赞 0 评论 117 浏览 评分:0.0
C语言训练-求函数值(超简C++) 摘要:解题思路:函数调用自己即可实现递归注意事项:参考代码:#include<iostream> using namespace std; int f(int x) { if(x==1) …… 题解列表 2022年10月27日 0 点赞 0 评论 224 浏览 评分:9.9