上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: Milking Cows Three farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time 10... 阅读全文
posted @ 2009-01-04 13:00 jesonpeng 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 棋盘格数(chess.pas) §设有一个N*M方格的棋盘(1<=N,M<=100)。求出该棋盘中包含有多少个正方形、多少个长方形(不包括正方形)。例如:当N=2,M=3时: §正方形的个数有8个:即边长为1的正方形有6个;边长为2的正方形有2个。 §长方形的个数有10个:即2*1的长方形有4个;1*2的长方形有3个;3*1的长方形有2个;3*2的长方形有1个。 §【输入文件】chess.... 阅读全文
posted @ 2009-01-04 12:42 jesonpeng 阅读(197) 评论(0) 推荐(0) 编辑
摘要: THE DRUNK JAILER Time Limit:1000MS Memory Limit:10000K Total Submit:5173 Accepted:3416 Description A certain prison contains a long hall of n cells, each right next to each other. Each cell has a... 阅读全文
posted @ 2009-01-04 12:41 jesonpeng 阅读(159) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/raulliubo/blog/item/61a2868284bfbdbd6d811902.html 1005. Stone pile Time Limit: 2.0 second Memory Limit: 16 MB You have a number of stones with known weights W1…Wn. Write a progr... 阅读全文
posted @ 2009-01-04 12:39 jesonpeng 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/raulliubo/blog/item/45a1bb447116f680b2b7dcc6.html yo2那边上不去。。。就来这先写吧。此题为标准的bfs。但是dfs,枚举也能过。我简单的go了一下就过了。。。。就是这个效率。。。。不知我这个搜索叫什么,深度没有下限,搜... 阅读全文
posted @ 2009-01-04 12:37 jesonpeng 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页