菜出声
菜出声
全部文章
分类
dfs(3)
kmp(1)
STL(3)
二分(1)
同余逆元(1)
图论(1)
字符串(2)
数据结构(6)
模拟(3)
签到题(2)
训练赛(4)
贪心(1)
归档
标签
去牛客网
登录
/
注册
欢迎大佬
全部文章
(共28篇)
单链表
#include<stdio.h> #include<iostream> #include<string.h> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 struct...
2019-10-22
0
481
线性表
#include<stdio.h> #include<string.h> #include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 struct...
2019-10-22
0
474
hdu-6225 Little Boxes
题目传送门 Problem Description Little boxes on the hillside. Little boxes made of ticky-tacky. Little boxes. Little boxes. Little boxes all the same. There...
2019-10-17
0
486
富豪凯匹配串
问题传送门 有n个长度为m的文本串,每个串只含有’0’和’1’。接下来有Q次询问,每次给出一个长度为m的字符串,且只含有’0’,‘1’和’_’。如10_1_1。下划线可以匹配’0’或’1’。即10_1_1可以匹配101111,101101,100111,100101四种串。每次询问求出n个文本串中有...
2019-10-16
0
383
Gym - 101775A
It is said that a dormitory with 6 persons has 7 chat groups _. But the number can be even larger: since every 3 or more persons could make a chat gro...
2019-10-04
0
508
Summer Vacation
Problem Statement There are N one-off jobs available. If you take the i-th job and complete it, you will earn the reward of B_i after A_i days from th...
2019-09-26
0
414
二分
二分查找 二分查找 二分查找十分的高效,因为每次查找都会淘汰当前的一半数据,但是查找的元素必须是有序的; 基本代码模板 quick_search(int a[],int n,int m)//a[]为需要查询的数组,n为数组长度,m为待查元素 { int start = 0; int en...
2019-09-14
0
386
优先队列
优先队列 优先队列可以对队列中数据元素排序 #include<queue>//头文件 priority_queue<int>q;//默认为从大到小进行排序 priority_queue<int,vector<int>,less<int>...
优先队列
2019-09-06
0
410
首页
上一页
1
2
3
下一页
末页