信息学奥赛一本通T1642-Fibonacci 第 n 项-题解(各语言代码) 摘要:计算斐波那契数列的方法有很多 这里仅介绍一种高效的算法 根据斐波那契数列定义: $$Fib(n)=Fib(n-1)+Fib(n-2)$$ 易得: $$\begin{cases}Fib(2n+…… 题解列表 2022年05月25日 0 点赞 0 评论 222 浏览 评分:7.3
题解 1681: 数据结构-行编辑程序 stack 摘要:#include<iostream> #include<stack> #include<string> using namespace std; int main() { stri…… 题解列表 2022年05月25日 0 点赞 0 评论 344 浏览 评分:2.0
有大佬帮我看看咋个就运行超时了呢,答案是对的 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef struct Node{ int data; str…… 题解列表 2022年05月24日 0 点赞 1 评论 268 浏览 评分:0.0
C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a,b=100,c=100;int main() { cin>>…… 题解列表 2022年05月24日 0 点赞 0 评论 361 浏览 评分:0.0
[编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[5][5],x,y;//定义一个二维数组int main(){ for(…… 题解列表 2022年05月24日 0 点赞 0 评论 317 浏览 评分:0.0
[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[105];int main(){ for(int i…… 题解列表 2022年05月24日 0 点赞 0 评论 268 浏览 评分:0.0
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];//用数组可以少很多变量int main(){ for(int …… 题解列表 2022年05月24日 0 点赞 0 评论 300 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,m;int main(){ cin>>n>>m; f…… 题解列表 2022年05月24日 0 点赞 0 评论 242 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string n;int main(){ cin>>n; cout<<n.size…… 题解列表 2022年05月24日 0 点赞 0 评论 240 浏览 评分:0.0
[编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n;int main(){ cin>>n; if(n>=…… 题解列表 2022年05月24日 0 点赞 0 评论 378 浏览 评分:6.0