2016年7月24日

摘要: Zipper Problem Description Given three strings, you are to determine whether the third string can be formed by combining the characters in the first... 阅读全文
posted @ 2016-07-24 15:04 Jelly_acm 阅读(80) 评论(0) 推荐(0)
 
摘要: 非常可乐 Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N ... 阅读全文
posted @ 2016-07-24 15:00 Jelly_acm 阅读(300) 评论(0) 推荐(0)
 
摘要: Sudoku Killer Problem Description 自从2006年3月10日至11日的首届数独世界锦标赛以后,数独这项游戏越来越受到人们的喜爱和重视。 据说,在2008北京奥运会上,会将数独列为一个单独的项目进行比赛,冠军将有可能获得的一份巨大的奖品———HDU免费七日游外加lc... 阅读全文
posted @ 2016-07-24 14:56 Jelly_acm 阅读(105) 评论(0) 推荐(0)
 
摘要: Knight Moves Problem Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed t... 阅读全文
posted @ 2016-07-24 14:50 Jelly_acm 阅读(114) 评论(0) 推荐(0)
 
摘要: Sum It Up Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to... 阅读全文
posted @ 2016-07-24 14:32 Jelly_acm 阅读(77) 评论(0) 推荐(0)
 
摘要: 推箱子 Problem Description 推箱子是一个很经典的游戏.今天我们来玩一个简单版本.在一个M*N的房间里有一个箱子和一个搬运工,搬运工的工作就是把箱子推到指定的位置,注意,搬运工只能推箱子而不能拉箱子,因此如果箱子被推到一个角上(如图2)那么箱子就不能再被移动了,如果箱子被推到一... 阅读全文
posted @ 2016-07-24 14:24 Jelly_acm 阅读(95) 评论(0) 推荐(0)
 
摘要: FatMouse and Cheese Problem Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: eac... 阅读全文
posted @ 2016-07-24 14:05 Jelly_acm 阅读(77) 评论(0) 推荐(0)
 
摘要: Nightmare Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exi... 阅读全文
posted @ 2016-07-24 14:02 Jelly_acm 阅读(93) 评论(0) 推荐(0)
 
摘要: I Think I Need a Houseboat Problem Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process ... 阅读全文
posted @ 2016-07-24 13:59 Jelly_acm 阅读(114) 评论(0) 推荐(0)
 
摘要: N皇后问题 Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,... 阅读全文
posted @ 2016-07-24 13:56 Jelly_acm 阅读(58) 评论(0) 推荐(0)
 
摘要: DFS Problem Description A DFS(digital factorial sum) number is found by summing the factorial of every digit of a positive integer. For example ,c... 阅读全文
posted @ 2016-07-24 13:52 Jelly_acm 阅读(97) 评论(0) 推荐(0)
 
摘要: Red and Black Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 45 Accepted Submission(s) : ... 阅读全文
posted @ 2016-07-24 13:49 Jelly_acm 阅读(85) 评论(0) 推荐(0)
 
摘要: 迷宫城堡 Problem Description 为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N#include#include#include#include#includeusing namespace std;vectorgh1[100005];vectorgh2[... 阅读全文
posted @ 2016-07-24 13:47 Jelly_acm 阅读(97) 评论(0) 推荐(0)
 
摘要: 胜利大逃亡 Problem Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,... 阅读全文
posted @ 2016-07-24 13:41 Jelly_acm 阅读(81) 评论(0) 推荐(0)
 
摘要: Oil Deposits Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works wi... 阅读全文
posted @ 2016-07-24 13:38 Jelly_acm 阅读(58) 评论(0) 推荐(0)
 
摘要: 简单计算器 Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应... 阅读全文
posted @ 2016-07-24 13:34 Jelly_acm 阅读(83) 评论(0) 推荐(0)
 
摘要: 变形课 Problem Description 呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体. ... 阅读全文
posted @ 2016-07-24 13:31 Jelly_acm 阅读(95) 评论(0) 推荐(0)
 
摘要: 连连看 Problem Description “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由... 阅读全文
posted @ 2016-07-24 13:27 Jelly_acm 阅读(122) 评论(0) 推荐(0)
 
摘要: Fire Net Problem Description Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns... 阅读全文
posted @ 2016-07-24 13:23 Jelly_acm 阅读(107) 评论(0) 推荐(0)