题目大意:给你一个矩阵,'x'是你的起始位置, 'g'是宝藏的位置,问最少多少步可以把所有的宝藏取完,并且最后返回起始位置。注意:没有宝藏的时候输出 0==========================================================================...
分类:
其他好文 时间:
2015-10-29 10:50:54
阅读次数:
148
Exercise 35 代码 from?sys?import?exit?
def?gold_room():
????print?"This?room?is?full?of?gold.?How?much?do?you?take?"
????
????choice?=?raw_input(">?")
????if?"...
分类:
编程语言 时间:
2015-10-28 19:42:46
阅读次数:
250
我的方法还是很笨的吧,虽然想到是树形dp但是一直推不出来,原因应该是没有认真分析出他要怎么转移过来。下次要清醒的模拟一下应该不难。3728 联合权值时间限制: 1 s空间限制: 128000 KB题目等级 : 黄金 Gold题解题目描述Description输入描述Input Description...
分类:
其他好文 时间:
2015-10-27 21:55:55
阅读次数:
160
1025 选菜时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold题目描述Description 在小松宿舍楼下的不远处,有PK大学最不错的一个食堂——The Farmer’s Canteen(NM食堂)。由于该食堂的菜都很不错,价格也公道,所以很多人都喜欢来这边吃饭。....
分类:
其他好文 时间:
2015-10-27 16:41:50
阅读次数:
221
1295 N皇后问题时间限制: 2 s空间限制: 128000 KB题目等级 : 黄金 Gold题目描述Description在n×n格的棋盘上放置彼此不受攻击的n个皇后。按照国际象棋的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子。n后问题等价于再n×n的棋盘上放置n个皇后,任何2个皇...
分类:
其他好文 时间:
2015-10-18 21:12:35
阅读次数:
267
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define INF (1LL que; 32 que.push(vt); 33 while(!que.empty()){ 34 ...
分类:
其他好文 时间:
2015-10-03 18:10:53
阅读次数:
272
原文 Dreams of finding lost treasure almost came true recently. A new machine called "The Revealer" has been invented and it has been used to detect gold which has been buried in the ground. The ma...
分类:
其他好文 时间:
2015-09-28 19:31:47
阅读次数:
176
1017 乘积最大 2000年NOIP全国联赛普及组NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题目描述 Description今年是国际数学联盟确定的“2000——世界数学年”,又恰逢我国著名数学家华罗庚先生诞辰90周年。在华罗庚先.....
分类:
其他好文 时间:
2015-09-17 23:10:07
阅读次数:
276
Problem DescriptionXiao Ming is a citizen who's good at playing,he has lot's of gold cones which have square undersides,let's call them pyramids.Anyon...
分类:
其他好文 时间:
2015-09-12 22:22:49
阅读次数:
370
Baskets of Gold CoinsTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1862Accepted Submission(s): 1...
分类:
其他好文 时间:
2015-09-12 17:37:11
阅读次数:
130