随笔分类 -  STL---stack

摘要:题目链接:https://www.acwing.com/problem/content/830/ 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=1e5+5; 4 int a[N]; 5 int main() 6 { 7 阅读全文
posted @ 2022-01-12 09:07 wydxry 阅读(43) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/practice/54275ddae22f475981afa2244dd448c6?tpId=13&tqId=11158&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcodin 阅读全文
posted @ 2020-04-12 16:21 wydxry 阅读(354) 评论(0) 推荐(0) 编辑
摘要:以栈的顺序存储结构为例: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define MaxSize 50 4 typedef int ElemType; 5 typedef struct{ 6 ElemType data[MaxSize];//数组 7 阅读全文
posted @ 2020-03-21 14:56 wydxry 阅读(344) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/practice/103dd589fed14457a673c613d8de3841?tpId=40&tqId=21519&tPage=2&rp=2&ru=/ta/kaoyan&qru=/ta/kaoyan/question-ranking 阅读全文
posted @ 2019-04-10 15:11 wydxry 阅读(266) 评论(0) 推荐(0) 编辑
摘要:1 #include <cstdio> 2 #include <stack> 3 using namespace std; 4 int main() 5 { 6 stack<int> s; 7 s.push(1);//1 8 s.push(2);//1,2 9 s.push(3);//1,2,3 1 阅读全文
posted @ 2018-12-30 17:59 wydxry 阅读(255) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/practice/eda051c1effc4dffa630bc8507f0c5f7?tpId=40&tqId=21562&tPage=1&rp=1&ru=/ta/kaoyan&qru=/ta/kaoyan/question-ranking 阅读全文
posted @ 2017-12-20 09:00 wydxry 阅读(616) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://abc066.contest.atcoder.jp/tasks/abc066_b Time limit : 2sec / Memory limit : 256MB Score : 200 points Problem Statement We will call a stri 阅读全文
posted @ 2017-08-05 15:12 wydxry 阅读(411) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://abc043.contest.atcoder.jp/tasks/abc043_b Time limit : 2sec / Memory limit : 256MB Score : 200 points Problem Statement Sig has built his o 阅读全文
posted @ 2017-08-04 21:34 wydxry 阅读(1864) 评论(0) 推荐(0) 编辑

Live2D