搜索资源列表
zju1037
- zju 1037 Gridland http://acm.zju.edu.cn/show_problem.php?pid=1037-zju 1037 Gridland http :// acm.zju.edu.cn/show_problem.php pid = 103 7
SolvedHZIEE
- ACM 威士忌部分答案,可能有误,请谅解。-ACM whiskey part of the answer may be incorrect, please understanding.
SolvedHZIEE
- 威士忌的HDU题解.大概有260多题的源码。对于学习非常有好处。-HDU title whiskey solution. More than 260 questions about the source. Very beneficial for learning.
zhan
- N soldiers of the land Gridland are randomly scattered around the country. A position in Gridland is given by a pair (x,y) of integer coordinates. Soldiers can move - in one move, one soldier can go one unit up, down,
Soldiers
- 【问题描述】 在一个划分成网格的操场上,n个士兵散乱地站在网格点上。网格点由整数坐标(x,y)表示。士兵们可以沿网格边上、下、左、右移动一步,但在同一时刻任一网格点上只能有一名士兵。按照军官的命令,士兵们要整齐地列成一个水平队列,即排列成(x,y),(x+1,y),…,(x+n-1,y)。如何选择x 和y的值才能使士兵们以最少的总移动步数排成一列。 【算法设计】 计算使所有士兵排成一行需要的最少移动步数。 【数据输