最长不下降子序列的长度(DP) 摘要:解题思路:DP注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nbs…… 题解列表 2025年07月27日 0 点赞 0 评论 83 浏览 评分:0.0
模拟->陶陶摘苹果题解 摘要:$$NOIP$$ $$2008$$年第一题的模拟水题!##### 思路遍历数组,当陶陶的身高$$+30$$后大于当前苹果,就将结果$$+1$$,最后输出这个答案即可(为什么$$NOIP$$普及…… 题解列表 2025年07月26日 0 点赞 0 评论 129 浏览 评分:0.0
层次递进,绝对好懂,不懂你抽我 摘要:解题思路:先拿2,3举例,2*2*2=8=3+5 3*3*3=27=7+9+11观察第一个数和最后一个数,范围在什么区间呢?13*13*13=2197=157+1…… 题解列表 2025年07月26日 1 点赞 0 评论 127 浏览 评分:10.0
输入输出->[竞赛入门]简单的a+b题解 摘要:审题没审清楚,差点翻车。#### 思路其实这道题本质上是挺简单的,但是题目要求是需要一直输入$$a$$和$$b$$,所以!我们需要用$$while$$循环输入$$a$$和$$b$$,然后再输出…… 题解列表 2025年07月25日 7 点赞 0 评论 628 浏览 评分:6.0
你就说过没过吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<&quo…… 题解列表 2025年07月25日 2 点赞 1 评论 164 浏览 评分:10.0
Lucky Word - 模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>#include<cstring>usingnamespacestd;…… 题解列表 2025年07月25日 0 点赞 0 评论 73 浏览 评分:0.0
求小数的某一位 分数a/b化为小数后,小数点后第n位的数字是多少? 摘要:解题思路:由于double是浮点型,如果强制转化成int会造成精度缺失,这可能是大部分人会错一个答案的原因。在这里采用的方法是类似于手算小学除法题。比如1➗3。我们都知道,1比3小,所以要对1进位取1…… 题解列表 2025年07月24日 1 点赞 0 评论 192 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 1 评论 126 浏览 评分:0.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 1 点赞 1 评论 148 浏览 评分:10.0
2936:简单算数表达式求值;;;;;;题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs…… 题解列表 2025年07月24日 1 点赞 0 评论 89 浏览 评分:10.0