自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 HDU5706 -GirlCat

GirlCat Problem Description As a cute girl, Kotori likes playing “Hide and Seek” with cats particularly. Under the influence of Kotori, many girls and cats are playing “Hide and Seek” together. Koroti shots a photo. The size of this photo is n×m, each pi

2020-12-22 12:53:57 166

原创 【DFS】胜利大逃亡

胜利大逃亡 本题用bfs更简单,但是我用的dfs :) 题意理解 从(0,0,0)出发,在规定时间t内,走到(a-1,b-1,c-1)到达出口,逃亡成功;若未到达出口则逃亡失败,逃亡成功输出逃亡所走的步数,逃亡失败则输出-1。 ※输入地图中0为通路1为墙(一定要认真!!我把1当成通路调了一个小时QWQ) 代码如下 #include <iostream> #include <cstdio> using namespace std; const int maxn = .

2020-10-06 14:59:29 214

原创 【C++】next_permutation的用法

【C++】next_permutation的用法 对于next_permutation函数,其函数原型为: #include <algorithm> bool next_permutation(iterator start,iterator end) 当前序列不存在下一个排列时,函数返回false. 迭代器(Iterator)是指针(pointer)的泛化,它允许程序员以相同的方式处理不同的数据结构(容器)。STL中有五种类型的迭代器,它们分别满足一定的要求。不同的迭代器要求定义的

2020-09-30 22:24:44 854

原创 Oil Deposits [DFS]

Oil Deposits The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides the land into numerous square plots. It then

2020-09-28 22:17:22 132

原创 Firetruck

Firetruck input The city has a separate map for each fire district. Streetcorners of each map are identified by positive integers less than 21, with the firestation always on corner #1. The input file contains several test cases representing different fire

2020-09-26 21:31:04 238

原创 使用JAVA实现栈

JAVA实现栈 前言 在学习安卓的时候要用到JAVA实现后缀表达式,知识短板太难受了,于是重新来一遍。 JAVA实现一个栈和C其实是一样的,因为使用JAVA或是学习的不够灵活,JAVA建栈建了很久。 代码 代码如下(示例): public class stack { private int count; private String[] stackStr; private int ptr = -1; public stack(){ //初始化栈 ptr = -1; this.cou

2020-09-19 21:41:12 128

空空如也

空空如也

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

TA关注的人

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