E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
PUZZLE
Modeless Dialogs with MFC
IntroductionModelessdialogboxeshaveoften
puzzle
dnewbieprogrammers.Basicallyamodelessdialogboxisonethatallowsustointeractwithotherwindowsevenwhenthemodelessdialogisstillonscreen.Ifyoukeepinmindafewnifty
a379039233
·
2014-09-12 21:00
mfc
非模式对话框
非模式对话框
销毁非模式对话框
Valid Sudoku
DetermineifaSudokuisvalid,accordingto:Sudoku
Puzzle
s-TheRules.TheSudokuboardcouldbepartiallyfilled,whereemptycellsarefilledwiththecharacter
china_wanglong
·
2014-09-12 19:41
LeetCode
Valid Sudoku
DetermineifaSudokuisvalid,accordingto: Sudoku
Puzzle
s-TheRules.TheSudokuboardcouldbepartiallyfilled,whereemptycellsarefilledwiththecharacter
china_wanglong
·
2014-09-12 19:00
N-Queens
The n-queens
puzzle
istheproblemofplacing n queensonan n×n chessboardsuchthatnotwoqueensattackeachother.Givenaninteger
huangynn
·
2014-09-12 10:00
LeetCode
HDU 1116 Play on Words (歐拉迴路 + 并查集)
pid=1116ProblemDescriptionSomeofthesecretdoorscontainaveryinterestingword
puzzle
.Theteamofarchaeologistshastosolveittoopenthatdoors.Becausethereisnootherwaytoo
u012823258
·
2014-09-11 16:00
并查集
強聯通性
歐拉路徑
歐拉迴路
2014牡丹江网络预选赛F题(隐式图BFS暴搜)zoj3814
Sawtooth
Puzzle
TimeLimit: 10Seconds MemoryLimit: 65536KBRecently,youfoundaninterestinggamecalled Sawtooth
Puzzle
.Thisisasingle-playergameplayedonagridwith3x3cells.Eachcellcontainsapartofanimage.Besi
cq_phqg
·
2014-09-11 00:00
ACM
ZOJ
ZOJ 3814 Sawtooth
Puzzle
(牡丹江网络赛F题)
ZOJ3814Sawtooth
Puzzle
题目链接记录状态广搜,把9个拼图都压缩成一个状态,然后去搜索,就是模拟的过程比较麻烦代码:#include #include #include #include
u011217342
·
2014-09-10 16:00
Leetcode dfs N-Queens
N-Queens TotalAccepted: 14054 TotalSubmissions: 54127MySubmissionsThe n-queens
puzzle
istheproblemofplacing
zhsenl
·
2014-09-10 09:00
ZOJ 3814 Sawtooth
Puzzle
状态压缩搜索
由于一个框框只有4种状态,总状态数只有4^9,bfs可解。麻烦的地方就在于模拟。我的状态的存法是,将初始状态看做000000000,若顺时针旋转一次就+1,3+1=0。bfs的过程中,需要套一个dfs计算旋转当前框框会影响到哪些框。有个地方要注意,就是目标状态其实不止一种,因为有些框框旋转之后不变,我们必须把所有可能的目标状态都计算出来,样例的中间那个框框就是这种情况。#include #incl
t1019256391
·
2014-09-07 18:00
Leetcode dfs Sudoku Solver
SudokuSolver TotalAccepted: 11799 TotalSubmissions: 56732MySubmissionsWriteaprogramtosolveaSudoku
puzzle
byfillingtheemptycells.Emptycellsareindicatedbythecharacter
zhsenl
·
2014-09-07 13:00
Leetcode 细节实现 Valid Sudoku
TotalAccepted: 13142 TotalSubmissions: 47070MySubmissionsDetermineifaSudokuisvalid,accordingto: Sudoku
Puzzle
s-TheRules.TheSudokuboardcouldbepartiallyfilled
zhsenl
·
2014-09-07 13:00
【HDOJ1043】八数码的八境界
八数码问题在北大在线测评系统中有一个对应的题,题目描述如下:EightTimeLimit:1000MS MemoryLimit:65536K SpecialJudgeDescription The15-
puzzle
hasbeenaroundforover100years
沉默的大绵羊
·
2014-09-07 12:00
UVA - 11774 Doom's Day (规律)
WeallknowaboutthelegendoftowerofHanoi.Itissaidthattheworldwillendafterfinishingthe
puzzle
.Whatwedon'tknowisanotherlegendaboutwhentheworldwillendwhichisverifiedbythescientists
u011345136
·
2014-09-06 16:00
UVA - 704 Colour Hash(双向bfs+hash+线性表)
ColourHash This
puzzle
consistsoftwowheels.Bothwheelscanrotatebothclockandcounter-clockwise.Theycontain21colouredpieces
HelloWorld10086
·
2014-09-06 09:00
hash
uva
colour
704
【索引】String Algorithms::Exercises: Beginner
Chapter3.DataStructures::StringAlgorithms::Exercises:Beginner11488-HyperPrefixSets1519-DictionarySize1399-
Puzzle
10298
u011328934
·
2014-09-05 22:00
leetcode: N-Queues
N-QueensThe n-queens
puzzle
istheproblemofplacing n queensonann×n chessboardsuchthatnotwoqueensattackeachother.Givenaninteger
chlele0105
·
2014-09-05 22:00
LeetCode
N-Queues
hdu1116——Play on Words
ProblemDescriptionSomeofthesecretdoorscontainaveryinterestingword
puzzle
.Theteamofarchaeologistshastosolveittoopenthatdoors.Becausethereisnootherwaytoopenthedoors
Guard_Mine
·
2014-09-05 20:00
并查集
It's hard to me!
【活动】解迷题送礼物WelcometoCoolShell
puzzle
game!
c__ilikeyouma
·
2014-09-05 19:00
程序员的游戏
智商不够用啊
uva 1399 -
Puzzle
(AC自动机)
题目链接:uva1399-
Puzzle
题目大意:给定K和N,表示有K种不同的字符,N个禁止串,求一个最长的串使得该串不包含任何禁止串为子串。如果存在循环或者不能构成的话,输出No。
u011328934
·
2014-09-01 22:00
【索引】Backtracking - Hard
NoTipping10160-ServicingStations197-Cube185-RomanNumerals307-Sticks317-Hexagon387-APuzzlingProblem519-
Puzzle
kl28978113
·
2014-08-30 19:00
Valid Sudoku
DetermineifaSudokuisvalid,accordingto:Sudoku
Puzzle
s-TheRuleshttp://sudoku.com.au/TheRules.aspx.TheSudokuboardcouldbepartiallyfilled
chencheng126
·
2014-08-28 17:00
hdu 1755 A Number
Puzzle
(全排列预处理)
题目链接:点击打开链接本题暴力做对于每个询问要做8!的枚举查询,而m是2000的肯定会T,因为k最大只有100所以想到预处理。用dp[i][j]表示在当前所有数排列中的数加i能被j整除的最小数,这个i也只要开到100即可,因为判断整除时加i被j除和加i%j被j除是一样的。预处理时判断当前数n被1—100除,如果n%i=j;那么dp[(i-j)%i][i]=n,里面要%i是为了不漏掉加的数是0的情况
Baoli1008
·
2014-08-28 09:00
HDU1097 A hard
puzzle
Ahard
puzzle
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission
u012846486
·
2014-08-27 21:00
HDU1097
UVA - 10085 The most distant state(bfs+hash)
TheMostDistantStateInput: standardinputOutput: standardoutput The8-
puzzle
isasquaretrayinwhicheightsquaretilesareplaced.Theremainingninthsquareisuncovered.Eachtilehasanumberonit.Atilethatisadjacenttoth
HelloWorld10086
·
2014-08-27 17:00
uva
the
most
STA
distant
10085
UVA - 519
Puzzle
(II)
题目大意:给出一些拼图的碎片,要求判断是否能组成一个矩形,对于碎片,F表示平面,I表示凸面,O表示凹面,对于矩形,边必须为平,并且碎片相连只能是以IO形式解题思路:回溯+剪枝剪枝1:在DFS前如果凹凸不等或F数量不等周长就直接输出NO剪枝2:排序,在判断是否放置当前拼图的时候如果不可以放置,和他一样的不用再判断一次剪枝3:在递归完成后如果已经成功就直接return#include #include
kl28978113
·
2014-08-26 20:00
N-Queens
N-Queens TotalAccepted: 12866 TotalSubmissions: 49759MySubmissionsThe n-queens
puzzle
istheproblemofplacing
u012841335
·
2014-08-24 21:00
UVA - 519
Puzzle
(II)(回溯+剪枝)
Puzzle
(II) LittleBarborkahasjuststartedtolearnhowtosolveapicture
puzzle
.Shehasstartedwithasmallonecontaining15pieces.Herdaddytriestosolvethe
puzzle
too.Tomakeitalittlebitharderforhimself
HelloWorld10086
·
2014-08-22 08:00
uva
II
puzzle
519
UVA - 489 Hangman Judge(set应用)
HangmanJudge In``HangmanJudge,''youaretowriteaprogramthatjudgesaseriesofHangmangames.Foreachgame,theanswertothe
puzzle
isgivenaswellastheguesses.Rulesarethesameastheclassicgameofhangman
HelloWorld10086
·
2014-08-21 10:00
uva
Hangman
judge
UVA - 387 A Puzzling Problem(回溯)
APuzzlingProblem Thegoalofthisproblemistowriteaprogramwhichwilltakefrom1to5
puzzle
piecessuchasthoseshownbelowandarrangethem
HelloWorld10086
·
2014-08-20 19:00
problem
uva
a
Puzzling
POJ3678——Katu
Puzzle
DescriptionKatu
Puzzle
ispresentedasadirectedgraphG(V,E)witheachedgee(a,b)labeledbyabooleanoperatorop(oneofAND
Guard_Mine
·
2014-08-20 13:00
2-sat
[POJ 1222]EXTENDED LIGHTS OUT(高斯消元)
MemoryLimit:10000KTotalSubmissions:6608 Accepted:4355DescriptionInanextendedversionofthegameLightsOut,isa
puzzle
with5rowsof6buttonseach
qpswwww
·
2014-08-20 11:00
UVA 1399 -
Puzzle
(AC自动机+DP)
UVA1399-
Puzzle
题目链接题意:给定一些字符串,求一个最长的不在包含这些子串的字符串,如果可以无限长输出No思路:建ACM自动机,把不可走结点标记构造出来,然后在这个状态图上进行dp找出最长路径即可
u011217342
·
2014-08-19 21:00
【POJ】3678 Katu
Puzzle
2-sat
传送门:【POJ】3678Katu
Puzzle
题目分析:设对于布尔变量x,x,必须取x=0则建边。
u013368721
·
2014-08-17 11:00
poj
1987年国际C语言混乱代码大赛获奖的一行代码
._=}_ugb_[0q60)s+这是CoolShell博主之前做了一个很有意思的在线
puzzle
,仿照一些前端过关的游戏,做了几个和程序员有关的迷题,一个通关游戏,这个事测试的第二题。
小刘同学_iOS
·
2014-08-16 12:00
C语言基础
ACM HDU 1755 -- A Number
Puzzle
ANumber
Puzzle
TimeLimit:3000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission
SSSSSIU
·
2014-08-14 17:00
Valid Sudoku 和 Sudoku Solver
题目一:ValidSudokuDetermineifaSudokuisvalid,accordingto: Sudoku
Puzzle
s-TheRules.TheSudokuboardcouldbepartiallyfilled
fangjian1204
·
2014-08-12 15:00
LeetCode
递归
sudoku
poj 3678 2-SAT (Katu
Puzzle
)
题意:欲构建n个点m条边的图,限制为:定点只能取01二值之一。对每条边给出如下信息:连接的两个顶点、一种预算('&'、'|'、'^'三种之一)和一个值(0或1),要求两个顶点的取值进行对应运算得到给定值。问满足输入限制的图能否构建成功:思路:2-SAT。对每个定点i,i表示取0,i+n表示取1;枚举三种运算和给定结果建图。#include #include #definemax(a,b)((a)>
dumeichen
·
2014-08-12 14:00
ZOJ3541:The Last
Puzzle
(区间DP)
Thereisonelastgatebetweentheheroandthedragon.Butopeningthegateisn'taneasytask.Therewere n buttonslistinastraightlineinfrontofthegateandeachwithanintegeronit.Likeother
puzzle
stheherohadsolvedbefore
libin56842
·
2014-08-11 20:00
dp
ZOJ
HDU1097 A hard
puzzle
#includeusingnamespacestd;intquick_mod(inta,intb){ intans=1; while(b>=1) { if(b&1) ans=((ans%10)*(a%10))%10;//如果不分开取模(ans=ans*a%10)就有可能越界,提交就会WA; b=b>>1; a=((a%10)*(a%10))%10;//同ans的取模
AC_Gibson
·
2014-08-11 12:00
Puzzle
Game部分核心算法
#include "mainwindow.h" #include #include #include #include #include #include #include MainWindow :: MainWindow ( QWidget * parent ) : QWidget ( parent ) { init (); this -> setFixe
umgsai
·
2014-08-10 10:00
game
Principle of Computing (Python)学习笔记(8) Fifteenth
Puzzle
花了不少时间,最后完成的时候,得到96/100,style被扣掉了4,系统说函数solve_
puzzle
()分支太多了。
feliciafay
·
2014-08-08 16:00
python
CodeForces - 191A Dynasty
Puzzle
s
DescriptionTheancientBerlandersbelievedthatthelongerthename,themoreimportantitsbeareris.Thus,Berlandkingswerefamousfortheirlongnames.Butlongnamesaresomewhatinconvenient,sotheBerlandersstartedtoabbrevi
u011345136
·
2014-08-08 15:00
nodejs A* + 优先队列解8数码问题
题目地址:http://coursera.cs.princeton.edu/algs4/assignments/8
puzzle
.htmlfunction
Puzzle
(dimension){this.array
XiangCheng
·
2014-08-08 11:21
poj 3221Diamond
Puzzle
(bfs+状压)
Diamond
Puzzle
TimeLimit: 2000MS MemoryLimit: 131072KTotalSubmissions: 1394 Accepted: 762DescriptionAdiamond
puzzle
isplayedonatessellatedhexagonliketheoneshownin
u014569598
·
2014-08-07 20:00
八数码问题——HDU 1043
对应杭电题目:点击打开链接The15-
puzzle
hasbeenaroundforover100years;evenifyoudon'tknowitbythatname,you'veseenit.Itisconstructedwith15slidingtiles
u013351484
·
2014-08-07 10:00
1987年国际C语言混乱代码大赛获奖的一行代码
最近CoolShell博主做了一个很有意思的在线
puzzle
,这些谜题很有趣同时也有一定的难度。由于水平有限,我并没有通关,我觉得这些题还是很值得一做的,从中可以学到很多东西。
lisong694767315
·
2014-08-06 18:00
c
代码分析
EXTENDED LIGHTS OUT(高斯消元)
MemoryLimit: 10000KTotalSubmissions: 6552 Accepted: 4310DescriptionInanextendedversionofthegameLightsOut,isa
puzzle
with5rowsof6buttonseach
Simone_chou
·
2014-08-06 10:00
extend
CoolShell
Puzzle
攻略[更新隐藏剧情]
CoolShell博主陈皓做了一个在线的
puzzle
很有意思,链接在这里,这里记录一下解题的一些步骤。
Ninja_Lu
·
2014-08-05 18:00
POJ1222——EXTENDED LIGHTS OUT
DescriptionInanextendedversionofthegameLightsOut,isa
puzzle
with5rowsof6buttonseach(theactual
puzzle
has5rowsof5buttonseach
Guard_Mine
·
2014-08-05 10:00
POJ 1651 Multiplication
Puzzle
(区间dp 矩阵连乘)
Multiplication
Puzzle
TimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:6275Accepted:3808DescriptionThemultiplication
puzzle
isplayedwitharowofcards
Tc_To_Top
·
2014-08-05 01:00
poj
区间DP
上一页
43
44
45
46
47
48
49
50
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他