码迷,mamicode.com
首页 >  
搜索关键字:15-puzzle problem    ( 37568个结果
[sg简单应用] poj 1082 Calendar Game
题目链接: http://poj.org/problem?id=1082 Calendar Game Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 4742   Accepted: 2236 Description Adam and...
分类:其他好文   时间:2014-05-15 20:33:25    阅读次数:223
[Wythoff博弈] poj 1067 取石子游戏
题目链接: http://poj.org/problem?id=1067 取石子游戏 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 33556   Accepted: 11180 Description 有两堆石子,数量任意,可以不...
分类:其他好文   时间:2014-05-15 19:31:59    阅读次数:285
uva-----11292 The Dragon of Loowater
Problem C: The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek...
分类:其他好文   时间:2014-05-15 09:53:27    阅读次数:254
HYSBZ 1415 - 聪聪和可可
http://vjudge.net/problem/viewProblem.action?id=20613题意:不用说了,中文题。这个题可以用概率DP来做。题中要求猫抓到老鼠的时间期望。分析一下这个过程,如果猫在每单位时间里第一步移动没有抓到老鼠,它还可以继续移动一次。对于确定老鼠的位置,注意猫的每...
分类:其他好文   时间:2014-05-15 09:48:58    阅读次数:280
PJOI PKU Campus 2011 B:A Problem about Tree LCA 求任意点x为根的y的父节点
题目链接:点击打开链接 题意:给定n个点 m个询问 下面n-1行给定一棵树 m个询问 x y 问把树转成以x为根 y的父节点是谁 第一种情况lca==y那就是x的第 dep[x] - dep[y] -1 父亲,依次向上爬山坡,利用倍增的二进制加速。 第二种就是Father[y]; #include"cstdio" #include"iostream" #include"queue" ...
分类:其他好文   时间:2014-05-15 09:11:44    阅读次数:397
CF:Problem 427C - Checkposts强连通 Tarjan算法
tarjan算法第一题    喷我一脸。。。。把手写栈的类型开成了BOOL,一直在找错。。。 #include #include #include #include #define maxn 100005 const int MOD=1000000007; using namespace std; struct node { int to,next; }edge[maxn...
分类:其他好文   时间:2014-05-15 08:18:56    阅读次数:353
hdu4455之树状数组+DP
Substrings Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1571    Accepted Submission(s): 459 Problem Description XXX has an arra...
分类:其他好文   时间:2014-05-15 01:35:46    阅读次数:338
hdu2767Proving Equivalences(强连通,缩点)
Problem Description Consider the following exercise, found in a generic linear algebra textbook. Let A be an n × n matrix. Prove that the following statements are equivalent: 1. A is invertible...
分类:其他好文   时间:2014-05-15 01:30:21    阅读次数:309
ACdream oj C - 神奇的%系列一 (水题系列--略坑)
C - 神奇的%系列一 Time Limit: 6000/3000 MS (Java/Others)      Memory Limit: 65536/32768 KB (Java/Others)  Submit Status Problem Description 在计算机的世界里,%不是百分比,而是除法取余哟! 比如:   4 % 2 = 0...
分类:其他好文   时间:2014-05-15 00:10:37    阅读次数:308
A + B------HDOJ杭电1228(读取字符串练基础)
Problem Description 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出.   Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.    Output 对每个测试...
分类:其他好文   时间:2014-05-14 23:47:48    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!