[编程入门]有规律的数列求和题解 摘要:解题思路:由观察可知分子为斐波那契数列,用数组表示斐波那契数列的公式为a[n+1]=a[n]+a[n-1],基于此可以计算出斐波那契额数列的每一项注意事项:注意n的取值所对应的是斐波那契数列的第几项参…… 题解列表 2023年01月04日 0 点赞 0 评论 536 浏览 评分:0.0
JAVA——二分算法求零点 摘要:参考代码:import static java.lang.Math.pow;public class dotcpp { public static double f(double x) { …… 题解列表 2023年01月04日 0 点赞 0 评论 346 浏览 评分:0.0
2152: 信息学奥赛一本通T1324-整数区间 摘要:解题思路:爱要不要,满星好评注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; struct hd{ int ks,j…… 题解列表 2023年01月04日 0 点赞 0 评论 495 浏览 评分:8.0
c++定义宏简单求余 摘要:解题思路:通过定义宏:#define quiYu(a,b) c=a%b //我英语不好,求余(quiYu)注意事项: 求余数:% 求除数:/参考代码:#include<i…… 题解列表 2023年01月04日 0 点赞 0 评论 368 浏览 评分:0.0
2833: 金币(先5星再复制) 摘要:解题思路:一天一天for注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int i,n,a,sum,d…… 题解列表 2023年01月04日 0 点赞 0 评论 405 浏览 评分:9.9
自定义函数之字符串拷贝 摘要:解题思路:用切片很简单注意事项:参考代码:n = int(input())L = str(input())m = int(input())print(L[m-1:n])…… 题解列表 2023年01月04日 0 点赞 0 评论 419 浏览 评分:9.9
通过坐标转换计算两点之间的距离 摘要:解题思路:通过坐标转换进行求解注意事项:参考代码:import math ver = list(map(int,input().split())) def x_y_transform(ver):#…… 题解列表 2023年01月04日 0 点赞 4 评论 1026 浏览 评分:9.0
1765: 循环入门练习2 摘要:解题思路:直接算注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int s=0; for(int i=…… 题解列表 2023年01月04日 0 点赞 0 评论 396 浏览 评分:9.9
阶乘公式求职 摘要:解题思路:注意事项:参考代码:def fact(n): s = 1 for i in range(1,n+1): s*=i return(s)n = int(input…… 题解列表 2023年01月04日 0 点赞 0 评论 350 浏览 评分:0.0
A+B Problem(python) 摘要:解题思路:怎么同时输入多个数字 用map注意事项:参考代码: a,b=map(int,input().split())print(a+b)…… 题解列表 2023年01月04日 0 点赞 1 评论 1049 浏览 评分:8.4