河婆虚
河婆虚
全部文章
分类
noown(2)
题解(13)
归档
标签
去牛客网
登录
/
注册
河婆虚的博客
recyclebin
全部文章
(共3篇)
题解 | #切糕#
#include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typedef pai...
C++
栈
2022-04-25
0
371
题解 | #E : 好串#
**思路: 碰到'a'或者此时空栈 -》》字符入栈 碰到'b'并且此时非空栈-》》不符合题意,终止判断 检测完毕 -》》排除是否此时为空栈(符合题意的字符串此时栈一定为空)** #include<bits/stdc++.h> #define io ios::sync_with_stdio...
栈
2022-04-25
0
411
栈和排序(模拟 贪心)
来自专栏
题目描述 给你一个1->n的排列和一个栈,入栈顺序给定 你要在不打乱入栈顺序的情况下,对数组进行从大到小排序 当无法完全排序时,请输出字典序最大的出栈序列 输入描述: 第一行一个数n 第...
栈
2020-08-21
9
1157