码迷,mamicode.com
首页 >  
搜索关键字:dearboys puzzle    ( 688个结果
Leetcode dfs Binary Tree Postorder Traversal II
Sudoku Solver  Total Accepted: 11752 Total Submissions: 56537My Submissions Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character...
分类:其他好文   时间:2014-09-06 22:37:04    阅读次数:244
UVA - 11774 Doom's Day (规律)
We all know about the legend oftower of Hanoi. It is said that the world will end after finishing the puzzle.What we don't know is another legend about when the world will end which is verifiedby the ...
分类:其他好文   时间:2014-09-06 17:26:13    阅读次数:250
Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be o...
分类:其他好文   时间:2014-09-02 22:46:45    阅读次数:227
uva 1399 - Puzzle(AC自动机)
题目链接:uva 1399 - Puzzle 题目大意:给定K和N,表示有K种不同的字符,N个禁止串,求一个最长的串使得该串不包含任何禁止串为子串。如果存在循环或者不能构成的话,输出No。 解题思路:建立AC自动机,然后在AC自动机上做dp,所有单词结尾节点为禁止点。 #include #include #include #include using namespace s...
分类:其他好文   时间:2014-09-01 22:45:53    阅读次数:211
NOIp2011 mayan游戏
传送门题目描述Mayan puzzle 是最近流行起来的一个游戏。游戏界面是一个 7行 5 列的棋盘,上面堆放着一些方块,方块不能悬空堆放,即方块必须放在最下面一行,或者放在其他方块之上。游戏通关是指在规定的步数内消除所有的方块,消除方块的规则如下: 1、 每步移动可以且仅可以沿横向(即向左或向右)...
分类:其他好文   时间:2014-08-31 11:52:11    阅读次数:225
HDU1097 A hard puzzle
A hard puzzle Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 29415    Accepted Submission(s): 10581 Problem Description lcy gives ...
分类:其他好文   时间:2014-08-27 22:00:18    阅读次数:232
N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all d...
分类:其他好文   时间:2014-08-27 00:11:56    阅读次数:308
[LeetCode] Sudoku Solver(迭代)
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be o...
分类:其他好文   时间:2014-08-26 00:18:35    阅读次数:290
POJ 3074
同上题#include #include #include #include #include #include using namespace std;int puzzle[10][10];char tmp[100];const int SLOT=0;const int ROW=1;const i...
分类:其他好文   时间:2014-08-25 11:42:04    阅读次数:296
POJ 2676
9阶数独,如上题做#include #include #include #include #include #include using namespace std;int puzzle[10][10];char tmp[15];const int SLOT=0;const int ROW=1;co...
分类:其他好文   时间:2014-08-25 11:24:34    阅读次数:244
688条   上一页 1 ... 59 60 61 62 63 ... 69 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!