
qdu_搜索
yinghui970828
这个作者很懒,什么都没留下…
展开
-
Fliptile
FliptileTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3279DescriptionFarmer John knows that an intellectually satisfied co原创 2017-02-04 18:08:18 · 216 阅读 · 0 评论 -
Dungeon Master
You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one unit north, south原创 2017-02-04 01:14:23 · 1422 阅读 · 0 评论 -
Catch That Cow POJ - 3278
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 10原创 2017-02-03 08:56:21 · 196 阅读 · 0 评论 -
北京大学推免生机考D题 POJ - 1321
C - 北京大学推免生机考D题Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 1321Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不原创 2017-02-02 09:44:49 · 532 阅读 · 0 评论 -
Prime Ring Problem HDU - 1016
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the numbe原创 2017-02-02 08:10:28 · 159 阅读 · 0 评论 -
Oil pocket HDU - 1241
#include #include #include #include #include #define inf 0x3f3f3f3fusing namespace std;int book[110][110],a[110][110];int n,m;void dfs(int x,int y){ int next[8][2]={{1,1},{1,0},{1,-1},原创 2017-02-02 08:09:20 · 172 阅读 · 0 评论 -
Find a way
Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki.Yifenfei’s home is at the原创 2017-02-09 12:04:05 · 304 阅读 · 0 评论 -
Prime Path (bfs+优化)
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of原创 2017-02-07 09:54:46 · 212 阅读 · 0 评论 -
Play a game
New Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size of the chessboard is n*n. A stone is placed in a corner square. They play alternatively wi转载 2017-02-06 23:48:21 · 491 阅读 · 0 评论 -
Find The Multiple
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there原创 2017-02-05 00:24:41 · 173 阅读 · 0 评论 -
各类型取值范围
unsigned int 0~4294967295 int -2147483648~2147483647unsigned long 0~4294967295long -2147483648~2147483647long long的最大值:9223372036854775807long long的最小值:-9223372036854775808unsi原创 2017-02-05 00:09:18 · 280 阅读 · 0 评论 -
Fliptile(枚举+深搜)
FliptileTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3279DescriptionFarmer John knows that an intellectually satisfied co原创 2017-02-04 21:51:48 · 260 阅读 · 0 评论 -
N皇后问题(总结性)
在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若干行,每行一个正整数,表示对应输入行的皇后的不同放置数量。Sample Input原创 2017-02-09 21:02:15 · 1171 阅读 · 0 评论