搜索
文章平均质量分 79
小雪花122333
学生
展开
-
搜索--HDU 1312 Red and Black
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22320 Accepted Submission(s): 13577Problem DescriptionThere is a rectangular roo...原创 2017-11-26 17:24:47 · 153 阅读 · 0 评论 -
搜索--poj 2386 Lake Counting
Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains ei...原创 2018-01-19 14:36:41 · 132 阅读 · 0 评论 -
搜索--poj3984 迷宫问题(广搜C+深搜C++)+HDU 1372 Knight Moves
定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。 Input 一个5 × 5的二维数组,...原创 2017-10-23 21:36:36 · 2672 阅读 · 0 评论 -
*搜索(剪剪剪枝)POJ - 1011 Sticks
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many stick...原创 2018-03-14 21:46:15 · 269 阅读 · 0 评论 -
第八届蓝桥杯B组(Java) 第二题 纸牌三角形
A,2,3,4,5,6,7,8,9 共9张纸牌排成一个正三角形(A按1计算)。要求每个边的和相等。下图就是一种排法(如有对齐问题,参看p1.png)。 这样的排法可能会有很多。如果考虑旋转、镜像后相同的算同一种,一共有多少种不同的排法呢?请你计算并提交该数字。注意:需要提交的是一个整数,不要提交任何多余内容。144代码:public class Main{ static int[] a=ne...原创 2018-03-15 13:07:06 · 383 阅读 · 0 评论 -
搜索--A Knight's Journey
Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is two s...原创 2018-03-19 07:11:01 · 193 阅读 · 0 评论