2016年7月24日

摘要: 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 阅读(113) 评论(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 阅读(119) 评论(0) 推荐(0)