题目 1168: 简单计算(先数学计算,递推得结论,然后再做题) 摘要:解题思路:注意事项:参考代码:1.列出基本递推关系式子:a[1] = (a[0] + a[2]) /2- c[1]a[2] = (a[1] + a[3]) /2- c[2]a[3] = (a[2] +…… 题解列表 2024年03月13日 2 点赞 0 评论 493 浏览 评分:6.0
1164: 数组的距离(绝对值abs) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;int main(){ …… 题解列表 2024年03月13日 1 点赞 0 评论 530 浏览 评分:9.9
题目 1163: 排队买票(排列函数next_permutation(a,a+N)) 摘要:解题思路:使用next_permutation函数对数组a进行排列,即将数组a中的元素按照不同的顺序排列,直到所有可能的排列都被尝试过为止。注意事项:参考代码:#include<iostream>#i…… 题解列表 2024年03月13日 1 点赞 0 评论 380 浏览 评分:9.9
1162: 密码(记概论)https://www.dotcpp.com/run/15402142 摘要:解题思路:记解题思路注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; string nu…… 题解列表 2024年03月13日 0 点赞 0 评论 403 浏览 评分:9.9
积木画---详细解释 摘要:解题思路:先找到一个n的独立整体数目(n为整体表示无法从前面的n-1个当中去凑出2xn) 当n=1时有一个整体(I型)n=2时有一个整体(横放的上下两个I型,竖直放的两个I型是n=1的独立整体拼出来的…… 题解列表 2024年03月13日 2 点赞 0 评论 821 浏览 评分:9.9
弧匹配检验:C++ , map容器 摘要:#### 原题链接 [题目 3072: 括弧匹配检验](https://www.dotcpp.com/oj/problem3072.html?sid=15742665&lang=1#editor "…… 题解列表 2024年03月13日 0 点赞 0 评论 506 浏览 评分:9.9
表达式括号匹配:c++ 摘要:#### 原题链接 [题目 3071: 表达式括号匹配(stack)](https://www.dotcpp.com/oj/problem3071.html?sid=15741963&lang=1#…… 题解列表 2024年03月13日 0 点赞 0 评论 907 浏览 评分:9.9
后缀表达式的值:c++ 摘要:#### 原题链接 [题目 3070: 信息学奥赛一本通T1331-后缀表达式的值](https://www.dotcpp.com/oj/problem3070.html "题目 3070: 信息学…… 题解列表 2024年03月13日 0 点赞 0 评论 534 浏览 评分:0.0
2166: 信息学奥赛一本通T1243-月度开销 摘要:解题思路:二分注意事项: 测试数据有误参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int a[N],…… 题解列表 2024年03月13日 0 点赞 0 评论 889 浏览 评分:8.0
c++解修建灌木 摘要:解题思路:这道题是一道规律题,就是一颗树能长多高完全取决于什么时候被修剪。2 : 2 23 : 4 2 44 : 6 4 4 65 : 8 6 4 6 86 :10 8 6 6 8 10我们发…… 题解列表 2024年03月12日 0 点赞 0 评论 397 浏览 评分:0.0