七情六欲·
码龄6年
  • 254,132
    被访问
  • 876
    原创
  • 49,253
    排名
  • 159
    粉丝
  • 2
    铁粉
关注
提问 私信

个人简介:唔西迪西 糊不拉几

  • 毕业院校: 山东科技大学
  • 加入CSDN时间: 2016-08-03
博客简介:

苦鬼·。

博客描述:
我们的裂痕,终将变成故事的花纹
查看详细资料
  • 3
    领奖
    总分 332 当月 0
个人成就
  • 获得63次点赞
  • 内容获得31次评论
  • 获得172次收藏
创作历程
  • 1篇
    2022年
  • 29篇
    2021年
  • 177篇
    2020年
  • 9篇
    2019年
  • 1篇
    2018年
  • 662篇
    2017年
成就勋章
TA的专栏
  • 数学建模
  • 图论
    77篇
  • LeetCode
    3篇
  • 面向对象
  • Java
    1篇
  • CLion
    3篇
  • Python
  • ACM
    150篇
  • 数据结构
    95篇
  • 算法
    19篇
  • BZOJ
    55篇
  • HDU
    26篇
  • 数学
    74篇
  • 动态规划
    102篇
  • NOIP
    39篇
  • UVa
    116篇
  • 晚风急,吹皱芳华太无情
    6篇
  • 搜索
    53篇
  • 约分差束系统
    3篇
  • LCA
    12篇
  • 二分答案
    26篇
  • 贪心
    33篇
  • 模拟
    45篇
  • 网络流
    11篇
  • 随机算法
    1篇
  • 模拟考试
    51篇
  • 51Nod
    15篇
  • CodeForces
    22篇
  • 计算几何
    2篇
兴趣领域 设置
  • 服务器
    linuxcentos
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

LeetCode 475. 供暖器

冬季已经来临。 你的任务是设计一个有固定加热半径的供暖器向所有房屋供暖。在加热器的加热半径范围内的每个房屋都可以获得供暖。现在,给出位于一条水平线上的房屋 houses 和供暖器 heaters 的位置,请你找出并返回可以覆盖所有房屋的最小加热半径。说明:所有供暖器都遵循你的半径标准,加热的半径也一样。示例 1:输入: houses = [1,2,3], heaters = [2]输出: 1解释: 仅在位置2上有一个供暖器。如果我们将加热半径设为1,那么所有房屋就都能得到供暖。示例 2:输
原创
发布博客 2022.01.24 ·
23 阅读 ·
0 点赞 ·
1 评论

0-1背包问题的回溯法实现

0-1背包问题的回溯法实现,不知道为啥要做一个回溯法实现。2^n状态的搜索树,枚举#include<iostream>#include<cstdio>#include<cstring>#include<iomanip>#include<algorithm>#define Maxn 10000using namespace std;int mn[Maxn],mnn[Maxn],perw[Maxn],maxw;template&
原创
发布博客 2021.12.29 ·
331 阅读 ·
0 点赞 ·
0 评论

LeetCode 155. 最小栈

好久没刷题了,最近刷题见到这个一个题,题目本身很简单,做一个辅助栈,时间效率跑过100%的用户,但是在讨论区看到 一次面试的时候,面试官要求不开辅助栈的做法,感觉这个值得思考。做法是在栈内记录一个最小值,同时栈内存储于最小值的差值。但任然离不开栈的先进后出性质。设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素。top() —— 获取栈顶元素。getMin() —— 检索栈中的最小元素。
原创
发布博客 2021.12.02 ·
28 阅读 ·
0 点赞 ·
0 评论

编译原理 实验(词法分析)

词法分析基于文法词法分析C/C++的代码直接上代码原理很简单,就是检测C/C++的保留字,无符号常数,字母数字的组合判定为标识符直接上Java代码:import java.io.*;import java.util.ArrayList;import java.util.List;// 输入文件不应包含空行, 空行会导致程序结束,后面的程序无法分析public class Analyse { public static void main(String[] args) throw
原创
发布博客 2021.11.06 ·
231 阅读 ·
0 点赞 ·
0 评论

7-1 银行业务队列简单模拟 (25 分)

7-1 银行业务队列简单模拟 (25 分)设某银行有A、B两个业务窗口,且处理业务的速度不一样,其中A窗口处理速度是B窗口的2倍 —— 即当A窗口每处理完2个顾客时,B窗口处理完1个顾客。给定到达银行的顾客序列,请按业务完成的顺序输出顾客序列。假定不考虑顾客先后到达的时间间隔,并且当不同窗口同时处理完2个顾客时,A窗口顾客优先输出。输入格式:输入为一行正整数,其中第1个数字N(≤1000)为顾客总数,后面跟着N位顾客的编号。编号为奇数的顾客需要到A窗口办理业务,为偶数的顾客则去B窗口。数字间以空格分隔
原创
发布博客 2021.10.27 ·
72 阅读 ·
0 点赞 ·
0 评论

LeetCode 5. 最长回文子串

好久没写博客了,今天重拾。。。。最长回文子串给你一个字符串 s,找到 s 中最长的回文子串。示例 1:输入:s = “babad”输出:“bab”解释:“aba” 同样是符合题意的答案。示例 2:输入:s = “cbbd”输出:“bb”示例 3:输入:s = “a”输出:“a”示例 4:输入:s = “ac”输出:“a”提示:1 <= s.length <= 1000s 仅由数字和英文字母(大写和/或小写)组成/* * @lc app=leetcode
原创
发布博客 2021.10.12 ·
22 阅读 ·
0 点赞 ·
0 评论

6-7 在一个数组中实现两个堆栈 (20 分)

本题要求在一个数组中实现两个堆栈。函数接口定义:Stack CreateStack( int MaxSize );bool Push( Stack S, ElementType X, int Tag );ElementType Pop( Stack S, int Tag );其中Tag是堆栈编号,取1或2;MaxSize堆栈数组的规模;Stack结构定义如下:typedef int Position;struct SNode { ElementType *Data; Posi
原创
发布博客 2021.08.29 ·
37 阅读 ·
0 点赞 ·
0 评论

VSCode 搭载LeetCode 小插件 刷题的确是挺好用的,这几天电脑重新装了,重装VSCode 再装小插件的时候遇到一些问题,大半夜的也不想写博客,随便一写,LeetCode插件需要Nodejs环境,Nodejs环境还不能太新,第一次装Nodejs是个14版本的,一直没办法登入LeetCode,差了很多原因,最后好像是Nodejs版本过高,最后换了一个12版本的Nodejs,,,,,,睡觉去了

发布动态 2021.08.25

Codeforces 780 A~D

文章目录A Andryusha and SocksB The Meeting Place Cannot Be ChangedC Andryusha and Colored BalloonsD Innokenty and a Football LeagueA Andryusha and SocksB The Meeting Place Cannot Be ChangedC Andryusha and Colored BalloonsD Innokenty and a Football League
原创
发布博客 2021.04.06 ·
72 阅读 ·
0 点赞 ·
0 评论

CodeForces 866B Ordering Pizza

B. Ordering Pizzatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt’s another Start[c]up finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza (
原创
发布博客 2021.03.24 ·
58 阅读 ·
0 点赞 ·
0 评论

Codeforces Round #491 (Div. 2)

@[TOC](Codeforces Round #491 (Div. 2))A. If at first you don’t succeed…题目大意:给出A、B、C、N。表示去BugDonalds的有A个人,去BeaverKing的有B个人,两者都去的有C人,一共有N人,问,有多少人没两者都没去。 答案非法 输出-1。提示:以下是本篇文章正文内容,下面案例可供参考B. Getting an A题目大意: 至少重做几门作业能让平均分是5分,平均分的计算四舍五入。C. Candie
原创
发布博客 2021.03.17 ·
27 阅读 ·
0 点赞 ·
0 评论

CodeForces #869 Div2

CodeForces #869 Div2A. The Artful ExpedientB. The Eternal ImmortalityD. The Overdosing UbiquityA. The Artful Expedienttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRock... Paper!After Karen h
原创
发布博客 2021.03.16 ·
28 阅读 ·
0 点赞 ·
0 评论

UVA - 818 Cutting Chains 深度好文 仔细研读

What a find! Anna Locke has just bought several links of chain some of which may be connected. Theyare made from zorkium, a material that was frequently used to manufacture jewelry in the last century,but is not used for that purpose anymore. It has its
原创
发布博客 2021.03.10 ·
43 阅读 ·
0 点赞 ·
0 评论

UVA - 806 Spatial Structures

Computer graphics, image processing, and GIS (geographic information systems) all make use of a datastructure called a quadtree. Quadtrees represent regional or block data efficiently and support efficientalgorithms for operations like the union and inte
原创
发布博客 2021.03.02 ·
25 阅读 ·
0 点赞 ·
0 评论

UVa 753 A Plug for UNIX EK算法即可

You are in charge of setting up the press room for the inaugural meeting of the United Nations InterneteXecutive (UNIX), which has an international mandate to make the free flow of information and ideason the Internet as cumbersome and bureaucratic as po
原创
发布博客 2021.02.22 ·
34 阅读 ·
0 点赞 ·
0 评论

UVA 12661 Funny Car Racing

There is a funny car racing in a city with n junctions and m directed roads.The funny part is: each road is open and closed periodically. Each road is associate with twointegers (a, b), that means the road will be open for a seconds, then closed for b se
原创
发布博客 2021.02.17 ·
35 阅读 ·
0 点赞 ·
0 评论

UVA 658 It‘s not a Bug, it‘s a Feature!

It is a curious fact that consumers buying a new software product generally do not expect the softwareto be bug-free. Can you imagine buying a car whose steering wheel only turns to the right? Or aCD-player that plays only CDs with country music on them?
原创
发布博客 2021.02.17 ·
50 阅读 ·
0 点赞 ·
0 评论

UVa1151 Buy or Build

World Wide Networks (WWN) is a leading company that operates large telecommunication networks.WWN would like to setup a new network in Borduria, a nice country that recently managed to get ridof its military dictator Kurvi-Tasch and which is now seeking
原创
发布博客 2021.02.14 ·
33 阅读 ·
0 点赞 ·
0 评论

UVA - 12219 Common Subexpression Elimination

Let the set Σ consist of all words composed of 1-4 lower case letters, such as the words “a”, “b”, “f”,“aa”, “fun” and “kvqf”. Consider expressions according to the grammar with the two rulesE → fE → f(E, E)for every symbol f ∈ Σ. Any expression can ea
原创
发布博客 2021.02.14 ·
38 阅读 ·
0 点赞 ·
0 评论

Codeforces Round #694 div2

Codeforces Round #694 div2这次的div2 还算是简单。。。文章目录Codeforces Round #694 div2A. Strange PartitionB. Strange ListC. Strange Birthday PartyD. Strange DefinitionA. Strange Partition不多说 直接代码:#include<iostream>#include<cstdio>#include<cstring&g
原创
发布博客 2021.02.08 ·
29 阅读 ·
0 点赞 ·
0 评论
加载更多