求分数序列和 摘要:解题思路:利用for循环注意事项:分子分母每一次循环都要变化,要加一个中间变量存储!(自己在这里卡了一会儿)参考代码:#include<stdio.h>int main(){ int n; …… 题解列表 2023年07月28日 0 点赞 0 评论 599 浏览 评分:0.0
求分数序列和题解 摘要:解题思路:#include<bits/stdc++.h>#include<iomanip>using namespace std;int main(){ int n; double a=1.0…… 题解列表 2023年07月11日 0 点赞 0 评论 505 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; double p=1,q=2,s…… 题解列表 2023年07月10日 0 点赞 0 评论 540 浏览 评分:0.0
典型的递推题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n); double s…… 题解列表 2022年11月10日 0 点赞 0 评论 580 浏览 评分:2.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i; float p = 1, q = 2,sum=2.0,temp; scan…… 题解列表 2023年06月17日 0 点赞 0 评论 539 浏览 评分:6.0
2822: 求分数序列和 ```#includeusingnamespacestd;intmain(){intn;doublec=0,sum=0,a=3,b=2,c1=2,y=0;cin>>n;for(inti=1;i 题解列表 2023年11月10日 0 点赞 0 评论 378 浏览 评分:7.3
2822: 求分数序列和 摘要:``` #include using namespace std; int main(){ int n; double a=1.0,b=2.0,c=0,sum=2,s; cin>>n…… 题解列表 2023年11月20日 0 点赞 0 评论 473 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月13日 0 点赞 0 评论 418 浏览 评分:9.9
求分数序列和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double s=0,p=1,q=…… 题解列表 2023年07月10日 0 点赞 0 评论 538 浏览 评分:9.9
求分数序列和 摘要:解题思路:斐波那契数列n-2项/n-1项目注意事项:输出格式参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin…… 题解列表 2024年03月12日 1 点赞 0 评论 568 浏览 评分:9.9