自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 Codeforces Round #634 (Div. 3)

题目

2020-04-26 22:01:40 182

原创

堆题

2020-04-24 13:46:10 159

原创 代数辈分问题

7-40 愿天下有情人都是失散多年的兄妹 (25分)pta冰岛人

2020-04-24 13:42:22 224

原创 AVL树

AVL树

2020-04-24 13:39:58 187

原创 插入排序 堆排序

pta

2020-04-24 11:50:01 169

原创 DFS BFS

拯救007

2020-04-23 13:52:58 205

原创 破坏连通性(找连通点)

7-55 分而治之 (25分)7-37 红色警报 (25分)

2020-04-23 11:25:53 275

原创 二叉搜索树

中序先序求反转层序#include<iostream>#include<cstdio>#include<queue>#include<vector>using namespace std;int n;int m[35],f[35];struct node{ int l,r;}aa[35];//中序和先序遍历建树 int bui...

2020-04-22 16:59:56 148

原创 Vector妙用

添加链接描述

2020-04-22 14:35:02 170

原创 初尝并查集

这个题比较鬼畜,我做这个题时,想着用并查集,就一直错,不用并查集

2020-04-21 13:11:47 160

原创 接触set

set 题接触set#include<bits/stdc++.h>using namespace std;set<int>st;int main(){ int n; scanf("%d",&n); st.insert(0); // 不用这一步是错的 for(int i=1;i<=n;i++){ int k; scanf("%d",&...

2020-04-21 10:07:02 127

原创 天梯赛 Dijkstra算法

Dijkstra算法题类型1Dijkstra算法题类型2

2020-04-20 23:52:18 272

原创 结构体排序及qsort用法

结构体排序的题pta平台结构体排序

2020-04-19 09:40:21 907

原创 天梯赛map题

map!!!在这里插入代码片#include<bits/stdc++.h>using namespace std;map<string,string>mp;int main() { int n; scanf("%d",&n); char a[2],h[20],p[20]; while(n--){ scanf("%s%s%s",a,h,p);...

2020-04-17 19:18:21 165

原创 7-6 Tree Traversals Again (25分)

7-6 Tree Traversals Again (25分)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered fro...

2020-03-26 14:35:39 222

原创 PTA栈

PTA7-3 Pop Sequence (25分)Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a p...

2020-03-26 10:09:03 376

原创 PTA List Leaves

PTA List Leaves基本建树加队列的广度优先搜索在这里插入代码片```#include<stdio.h>#include<stdlib.h>#include<string.h>//using namespace std;#define MAXSIZE 1000010int queue[20];//建队列int first=0;//队...

2020-03-26 08:33:55 210

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除