码迷,mamicode.com
首页 >  
搜索关键字:15-puzzle problem    ( 37568个结果
H 1022 Train Problem Ⅰ
题意:给我们两个序列,看能否通过压栈,出栈将第一个序列转换成第二个。思路:将序列 1 依次压栈,同时看是否和序列 2 当前元素相同代码如下:#include#include#define max 100using namespace std;int main(){ stacks; int...
分类:其他好文   时间:2014-05-17 01:47:36    阅读次数:218
FAILED TO DO DATA ASSOCIATION FOR OES DOMAIN(ORA_01017)
Error log:Problem Description-------------------1.Prepare DatabaseRun the RCU utilityCreate Prefix: DEVSelect:IdentityManagement->Oracle Adaptive Acce...
分类:其他好文   时间:2014-05-16 21:18:44    阅读次数:426
一道超级坑爹的水题(ACdream oj 无耻的出题人)
A - 无耻的出题人 Time Limit: 2000/1000 MS (Java/Others)      Memory Limit: 65536/32768 KB (Java/Others)  Submit Status Problem Description 听到X神要参加比赛,只会Fibnacci数的出题人被吓得哭晕在厕所。为了防止X神AK(ALL KI...
分类:其他好文   时间:2014-05-13 16:01:26    阅读次数:234
HDU 4788 (14.05.12)
Hard Disk Drive Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 647    Accepted Submission(s): 350 Problem Description   Yesterday ...
分类:其他好文   时间:2014-05-13 15:19:16    阅读次数:290
ZOJ3671:Japanese Mahjong III
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:其他好文   时间:2014-05-13 14:59:51    阅读次数:356
hdu1431素数回文
Problem Description xiaoou33对既是素数又是回文的数特别感兴趣。比如说151既是素数又是个回文。现在xiaoou333想要你帮助他找出某个范围内的素数回文数,请你写个程序找出 a 跟b 之间满足条件的数。(5 <= a < b <= 100,000,000); Input 这里有许多组数据,每组包括两组数据a跟b。 Output 对每一...
分类:其他好文   时间:2014-05-13 14:55:43    阅读次数:203
ZOJ3669:Japanese Mahjong I
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:其他好文   时间:2014-05-13 13:54:14    阅读次数:463
POJ2480 Longge's problem 欧拉函数的应用 && 积性函数
题意很简单,求sum(gcd(i,n))   1 这题看到后第一反应并没有里用积性函数的性质,不过也可以做,欣慰的是我反应还是比较快的 设f(n)=gcd(1,n)+gcd(2,n)+....+gcd(n-1,n) + gcd(n,n), 用g(n,i)表示满足 gcd(x,n)=i的 x的个数 (x小于n),则 f(n)=sum{i*g(n,i)}; 同时又利用 扩展欧几里德的性...
分类:其他好文   时间:2014-05-13 13:40:58    阅读次数:365
[ACM] 1016 Prime Ring Problem (深度优先搜索)
Prime Ring Problem Problem Description 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...
分类:其他好文   时间:2014-05-13 11:54:17    阅读次数:444
HDU3920:Clear All of Them I(状态压缩)
Problem Description Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.   There are 2 * n enemies in the map. Your task is to clear a...
分类:其他好文   时间:2014-05-13 11:29:40    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!