题目链接 poj 3678Katu PuzzleTime Limit:1000MSMemory Limit:65536KTotal Submissions:8340Accepted:3077DescriptionKatu Puzzle is presented as a directed graph...
分类:
其他好文 时间:
2015-05-27 15:28:06
阅读次数:
147
题目:Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all dist...
分类:
其他好文 时间:
2015-05-27 11:45:43
阅读次数:
126
问题:Tetris (Russian: Тeтрис) is a puzzle video game originally designed and programmed by Alexey Pajitnov in the Soviet Union. The Tetris game is a pop...
分类:
其他好文 时间:
2015-05-25 08:33:35
阅读次数:
260
问题: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 b...
分类:
其他好文 时间:
2015-05-24 08:51:53
阅读次数:
128
【问题描述】Mayan puzzle是最近流行起来的一个游戏。游戏界面是一个7行5列的棋盘,上面堆放着一些方块,方块不能悬空堆放,即方块必须放在最下面一行,或者放在其他方块之上。游戏通关是指在规定的步数内消除所有的方块,消除方块的规则如下:1、每步移动可以且仅可以沿横向(即向左或向右)拖动某一方块一...
分类:
其他好文 时间:
2015-05-22 15:09:49
阅读次数:
142
Problem:
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 only one unique solution.
...
分类:
编程语言 时间:
2015-05-19 14:49:38
阅读次数:
210
Multiplication Puzzle
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the product of the number o...
分类:
其他好文 时间:
2015-05-17 12:18:43
阅读次数:
88
Given an integer n, return all distinct solutions to the n-queens puzzle.Each solution contains a distinct board configuration of the n-queens' placem...
分类:
编程语言 时间:
2015-05-15 10:32:24
阅读次数:
129
题意:每个数只有0,1两种可能,给出两两之间的AND,OR,XOR的值,判断有没有解
裸题。
#include
#include
#include
#include
using namespace std;
const int N = 2010;
struct Edge
{
int v,next;
}es[N*N];
int head[N];
int n,m;
int tmp[N],...
分类:
其他好文 时间:
2015-05-13 16:51:19
阅读次数:
150
2015 UESTC Training for Search Algorithm & String
分类:
其他好文 时间:
2015-05-13 06:11:35
阅读次数:
179