题目 1400: 教学楼的楼梯题解 摘要:1.解题思路第n层楼可以从第n-1层楼迈一步或从第n-2层楼迈两步,所以有f(n)=f(n-1)+f(n-2)种走法,用数组f表示,也可以用递推,但是时间超限了。2.参考代码2.1.数组法#inclu…… 题解列表 2023年06月23日 0 点赞 0 评论 607 浏览 评分:0.0
STL& set[STL训练]{A} + {B} 摘要:# 使用STL库的`set`容器 > 自带去重和排序的功能,就不需要调用排序函数了 ```c++ #include #include #include #include usi…… 题解列表 2023年06月23日 0 点赞 0 评论 365 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, category[3] = { 0 }; scanf("%d", &n); wh…… 题解列表 2023年06月23日 0 点赞 0 评论 389 浏览 评分:0.0
1013-Sn的公式求和 摘要:解题思路:采用高精度加法解决本题。注意事项:参考代码:int arr[1000]={0}; int main(){ int n; int i,len,j; len=0; scanf(…… 题解列表 2023年06月23日 0 点赞 0 评论 263 浏览 评分:0.0
小白的想法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,n=0; scanf("%d",&a); int g=a,d=a; …… 题解列表 2023年06月24日 0 点赞 0 评论 356 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>struct pointer{ double x; double y;};int main(…… 题解列表 2023年06月24日 0 点赞 0 评论 375 浏览 评分:0.0
谢谢各位的哥 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int sum=0; for(int i=1;i<=1000…… 题解列表 2023年06月24日 0 点赞 0 评论 398 浏览 评分:0.0
循环入门练习1 摘要:解题思路:注意事项:参考代码: #include<bits/stdc++.h>using namespace std;int main(){ int sum=0; for(int i=1;…… 题解列表 2023年06月24日 0 点赞 0 评论 333 浏览 评分:0.0
165849684941584 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<…… 题解列表 2023年06月24日 0 点赞 0 评论 535 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(in…… 题解列表 2023年06月24日 0 点赞 0 评论 361 浏览 评分:0.0