资源说明: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, left or right (hence, he can change either his x or his y coordinate by 1 or -1).
The soldiers want to get into a horizontal line next to each other (so that their final positions are (x,y), (x+1,y), ..., (x+N-1,y), for some x and y). Integers x and y, as well as the final order of soldiers along the horizontal line is arbitrary.
The goal is to minimise the total number of moves of all the soldiers that takes them into such configuration.
Two or more soldiers must never occupy the same position at the same time.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
-
- realtek_8139_673auto_xp.ziprealtek_8139_673auto_xp.zip
- wince_ep9315_logowince logo ep9315 驱动
- geforce_win7_32bit驱动part5181.71_geforce_win7_32bit_international_beta.part5 win7 32位系统驱动
- geforce_win7_32bit驱动part4181.71_geforce_win7_32bit_international_beta.part4 win7 32位系统驱动
- geforce_win7_32bit驱动part3181.71_geforce_win7_32bit_international_beta.part3 win7 32位系统驱动
- geforce_win7_32bit驱动part2181.71_geforce_win7_32bit_international_beta.part2 win7 32位系统驱动
- geforce_win7_32bit驱动part1181.71_geforce_win7_32bit_international_beta.part1 win7 32位系统驱动
- DAEMON虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱虚拟光驱 ...
- windows清除系统垃圾 batwindows清除系统垃圾 bat文件 windows清除系统垃圾
- Win7美女桌面下载美女桌面 Win7美女桌面下载 Win7美女桌面下载
-
- xqwy.rar一套用于小区物业管理系统,包含停车管理,水电费催缴系统等. ...
- AssistX10.6.1822.rarVisual Assist X 10.6.1822.0完美破解版(含最新附加Visual Studio 2010 插件) ...
- ccc.rarc++面试必看书籍。绝对经典的好书
- C++programseji2.rar作为全球使用最广泛的C++经典程序设计教材,本书详细介绍了过程式与面向对象程序设计 ...
- VC++6.rarVC++6编程方法非常不错的资料了哦,对初学者特别有帮助哦!
- C++100.rarVC++编程100例。包含了很多的实例,包括了很多方面,如界面编辑,文件操作等等。 十分 ...
- CandPiont.rarC和指针,强烈推鉴学C的人看一看,保证不会让你失望.
- 车牌识别.rar车牌识别的源代码,原来是在这里下的,我进行了改进,可以识别率提高了不少 ...
- timer.rar秒表计时器,具有记时、暂停记时和归零功能。 特别适合作为Flash对象插入到幻灯片中, ...
- FIXMBR.rarFIXMBR 全盘搜索硬盘的引导记录、分区表等信息,需要直接对硬盘进行读操作,不破坏硬 ...