wanide
wanide
全部文章
分类
2018蓝桥杯(7)
C语言(77)
dp(3)
hdu(3)
Java(13)
KMP(1)
POJ(3)
字符串(2)
并查集(2)
数据结构(5)
最小生成树(2)
最短路(5)
未归档(100)
深度优先搜索/广度优先搜索(4)
贪心(1)
归档
标签
去牛客网
登录
/
注册
仙女的博客
面朝大海,然后春暖花开
全部文章
(共228篇)
HDU1312 - Red and Black (DFS)
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c...
2018-07-16
0
455
HDU1241 - Oil Deposits (DFS)
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of ...
2018-07-16
0
312
HDU1010-Tempter of the Bone(DFS)
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could f...
2018-07-16
0
354
广度优先搜索(宽度优先搜索)迷宫问题
使用队列,层层递进,往下扩展。 5 4 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 1 1 4 3 (5,4是迷宫的行和列,0代表空地,1代表障碍物,1,1是起始位置,4,3 是需要到达的位...
2018-07-16
0
362
深度优先搜索
#include<stdio.h> int a[10],book[10],n; void dfs(int step) { int i; if(step == n+1) { for(i = 1;i <= n;i ++) printf("%d",a[...
2018-07-15
0
337
母牛的故事 (hdu 2018)
2018 母牛的故事 Problem Description 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? Input 输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0<n...
2018-06-21
0
343
字符串统计 (hdu2017)
2017 字符串统计 Problem Description 对于给定的一个字符串,统计其中数字字符出现的次数。 Input 输入数据有多行,第一行是一个整数n,表示测试实例的个数,后面跟着n行,每行包括一个由字母和数字组成的字符串。 Output 对于每个测试实例,输...
2018-06-21
0
348
字符串统计 (hdu2017)
2017 字符串统计 Problem Description 对于给定的一个字符串,统计其中数字字符出现的次数。 Input 输入数据有多行,第一行是一个整数n,表示测试实例的个数,后面跟着n行,每行包括一个由字母和数字组成的字符串。 Output 对于每个测试实例,输...
2018-06-14
0
362
数据的交换输出 (hdu2016)
2016 数据的交换输出 Problem Description 输入n(n<100)个数,找出其中最小的数,将它与最前面的数交换后输出这些数。 Input 输入数据有多组,每组占一行,每行的开始是一个整数n,表示这个测试实例的数值的个数,跟着就是n个整数。n=0表示输入的结...
2018-06-14
0
438
偶数求和 (hdu2015)
2015 偶数求和 Problem Description 有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值。编程输出该平均值序列 Input 输入数据有多组,每组占一行...
2018-06-11
0
592
首页
上一页
14
15
16
17
18
19
20
21
22
23
下一页
末页