自定义博客皮肤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)
  • 资源 (1)
  • 收藏
  • 关注

原创 2015蓝桥杯初赛

因为今年四月份要打蓝桥,提前练练手奖券数目前几题非常简单,直接遍历判断就好#include <iostream>#include <string>#include <algorithm>#include <vector> using namespace std; int main() { int ans=0; ...

2020-02-20 17:08:36 270

原创 三行代码情书(1)

int day;for(day=0;day<=Mylife;day++) printf("Love you"); 你我相遇的那一刻起我愿用一辈子每天爱你

2019-11-21 10:57:31 4161

原创 hdu4950——Monster

MonsterTeacher Mai has a kingdom. A monster has invaded this kingdom, and Teacher Mai wants to kill it.Monster initially has h HP. And it will die if HP is less than 1.Teacher Mai and monster take ...

2019-11-01 12:55:14 161

原创 数据结构——基于顺序存储结构的图书信息表的创建和输出

1.基于顺序存储结构的图书信息表的创建和输出问题描述定义一个包含图书信息(书号、书名、价格)的顺序表,读入相应的图书数据来完成图书信息表的创建。然后,统计图书表中的图书个数,同时逐行输出每本图书的信息输入要求输入n+1行,其中前n行是n本图书的信息(书号、书名、价格),每本图书信息占一行,书号、书名、价格用空格分隔,价格之后没有空格。最后第n+1行是输入结束标志:000(...

2019-10-29 20:51:02 19312 6

原创 数据结构——链栈实现括号匹配

最近在学数据结构,所以发的大多数都是关于数据结构的题括号匹配原来用动态规划做的一道题,现在老师要用栈来实现,用就用吧,还不让用函数,只能用链栈,不开森很简单的思路,如果是’(’ ‘{’ ‘[’ 就入栈,如果是’)’ ‘}’ ‘]’,就看栈顶元素是否匹配,匹配就往下操作,如果表达式完了,栈不为空,不匹配;如果栈空了,表示匹配下面是代码的实现#include <stdio.h&...

2019-10-29 15:05:19 1983 2

原创 数据结构之多项式相加——链表实现

<stdio.h>#include <stdlib.h>#include<string.h>typedef struct polynomial{ int coefficent; int exponent; struct polynomial *next;}polynomial,*polynomiallist;int flag;int...

2019-10-26 13:05:53 450

原创 Codeforces 574 B. Bear and Three Musketeers(暴力枚举)详解新手进

Codeforces 574 B. Bear and Three MusketeersDo you know a story about the three musketeers? Anyway, you will learn about its origins now.Richelimakieu is a cardinal in the city of Bearis. He is tired...

2019-10-26 12:34:41 171

原创 Bear and Elections CodeForces - 574A(优先队列)详解

Bear and Elections CodeForces - 574ALimak is a grizzly bear who desires power and adoration. He wants to win in upcoming elections and rule over the Bearland.There are n candidates, including Limak....

2019-10-26 10:02:42 194

原创 ccf csp 201812-1 小明上学(新手进)

因为过两天要参加ccf的认证,提前做几道题热热身,看看自己有几斤几两这是第一题,一般都是个会一点编程的人做的,所以新手进看着题很长,其实很简单小明上学问题描述试题编号:201812-1试题名称:小明上学时间限制:1.0s内存限制:512.0MB问题描述:题目背景  小明是汉东省政法大学附属中学的一名学生,他每天都要骑自行车往返于家和学校。为了能尽可能充足地睡眠,他希望能够预计自己...

2019-09-08 20:21:14 417

原创 brackets----poj2295(线形dp)

brackets----poj2295(线形dp)We give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,if s is a regular brackets sequence, then (s) ...

2019-09-04 14:17:21 115

原创 滑雪 poj 1088 (动态规划)

滑雪 poj 1088 (动态规划)Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子1 2 3 4 516 17 18 19 615 24 25 20 714 23 ...

2019-09-04 13:43:18 471

原创 HDU 1069 Monkey and Banana 动态规划

monkey and banana------hdu1069(dp)A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the m...

2019-09-03 20:05:34 154

原创 ## poj 3667 Hotel (线段树区间合并)

poj 3667 Hotel (线段树区间合并)The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessie, ever the competent travel...

2019-09-02 16:27:38 110

原创 poj 1463 Strategic game 树形dp

Strategic gameBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the following problem. He must d...

2019-08-14 15:04:13 110

原创 poj1163数字三角形之动态规划

poj1163数字三角形之动态规划(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top and ends somewhere on the base. Each s...

2019-08-14 14:21:32 120

原创 HDU1166-敌兵布阵 线状树

敌兵布阵C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情报局要研究敌人究竟演习什么...

2019-08-11 17:27:01 168

原创 B. Zero Array ——Codeforces-1201B

B. Zero ArrayYou are given an array a1,a2,…,an.In one operation you can choose two elements ai and aj (i≠j) and decrease each of them by one.You need to check whether it is possible to make all the...

2019-08-10 18:17:46 418

黑客帝国源代码适合新手

html的文件,适合新手,包含html css js的一些基本操作,童叟无欺,适合新手查看,通俗易懂,非常简单

2020-07-21

空空如也

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

TA关注的人

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