暴力枚举 #3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月25日 4 点赞 0 评论 661 浏览 评分:9.0
表达式括号匹配(stack),来看看吧,不用栈写法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符串变量ch,用于存储输入的字符串 string ch; …… 题解列表 2024年11月24日 0 点赞 0 评论 298 浏览 评分:0.0
后缀表达式的值!? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个栈,用于存储操作数 stack<long long> st;…… 题解列表 2024年11月24日 0 点赞 0 评论 202 浏览 评分:0.0
A+B for Input-Output Practice (V) 摘要: #include using namespace std; int main() { int i=0,j=0; int N,n;…… 题解列表 2024年11月24日 0 点赞 0 评论 184 浏览 评分:0.0
区间dp+前缀和 #1898: 蓝桥杯算法提高VIP-合并石子(C++) 摘要:n堆石子,挑选任意一端区间 [L,R] 我们用F[L,R]表示从L到R合并为一堆所需要的**最小代价** 枚举一个切分点,把区间分割为[L,K] - [K+1,R], 那么问题就转为…… 题解列表 2024年11月24日 0 点赞 0 评论 128 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要: #include using namespace std; int main() { int i=0,n; int …… 题解列表 2024年11月24日 0 点赞 0 评论 238 浏览 评分:0.0
安之 用STL模拟栈的方法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ //3 123 321 //3 123 312 ve…… 题解列表 2024年11月24日 0 点赞 0 评论 132 浏览 评分:0.0
自定义函数之整数处理 摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[10]; for(int i=0;i<10;i++)c…… 题解列表 2024年11月24日 0 点赞 0 评论 283 浏览 评分:9.9
循环单链表 #1770: [编程入门]链表之报数问题&约瑟夫环(C++) 摘要:这道题如果用不带头结点的循环单链表会少去两个特判 奈何作者带头结点的写习惯了,不带头结点的一时不会写了 ``` #include #define MAX 0x3f3f3f3f #defi…… 题解列表 2024年11月24日 0 点赞 0 评论 217 浏览 评分:0.0
安之 第二小整数 STL解法 摘要:解题思路:用multiset 中对重复元素保留的方法进行编写!使用迭代器输出第二小的元素!注意事项:参考代码: #include <bits/stdc++.h>using nam…… 题解列表 2024年11月24日 0 点赞 0 评论 178 浏览 评分:0.0