码迷,mamicode.com
首页 >  
搜索关键字:hdu 4723 how long do    ( 68890个结果
vo do dto
http://blog.sina.com.cn/s/blog_7a4cdec80100wkyh.html
分类:其他好文   时间:2014-05-05 23:53:37    阅读次数:314
HDU 4718 The LCIS on the Tree(树链剖分)
Problem DescriptionFor a sequence S1, S2, ... , SN, and a pair of integers (i, j), if 1 2 #include 3 #include 4 #include 5 using namespace std...
分类:其他好文   时间:2014-05-05 23:50:08    阅读次数:445
HDU 4686 Arc of Dream(快速幂矩阵)
题目链接再水一发,构造啊,初始化啊。。。wa很多次啊。。#include #include #include #include #include #include #include using namespace std;#define MOD 1000000007#define LL long l...
分类:其他好文   时间:2014-05-05 23:04:05    阅读次数:375
Reverse Linked List II
Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1...
分类:其他好文   时间:2014-05-05 22:46:11    阅读次数:411
uva 11294
Problem E: WeddingUp to thirty couples will attend a wedding feast, at which they will be seated on either side of a long table. The bride and groom s...
分类:其他好文   时间:2014-05-05 22:10:59    阅读次数:373
Unity for Windows: III–Publishing your unity game to Windows Phone Store
原地址:http://digitalerr0r.wordpress.com/2013/08/27/unity-for-windows-iiipublishing-to-windows-phone-store/InPart IIwe covered how you can publish your g...
分类:Windows程序   时间:2014-05-05 22:08:06    阅读次数:957
[ACM] hdu 1231 最大连续子序列 (动规复习)
代码: #include #include #include #include using namespace std; const int maxn=10003; const int inf=0x7fffffff; int num[maxn]; int n; int main() { while(scanf("%d",&n)!=EOF&&n)...
分类:其他好文   时间:2014-05-04 12:39:16    阅读次数:331
hdu2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活 (这个只是题目名字) (多重背包)
本文出自:http://blog.csdn.net/svitter 原题:http://acm.hdu.edu.cn/showproblem.php?pid=2191 题意:多重背包问题。转换成为01背包解。多重背包转化为01背包的关键在于把件数从整体中孤立出来作为一个新的个体,也就是说不管分类,有多少件就有多少种。 AC代码: //======================...
分类:其他好文   时间:2014-05-04 00:33:10    阅读次数:356
poj 1077 + HOJ 10466 + hdu 1043 eight
此题我用了2种方法去做,bfs和双向 bfs 现在还在学A*,准备学会了再用A*去试试,单向bfs只过了poj,双向bfs全部都过了,具体思想就是搜索加判重,有用hash,有用康托展开,不过康托展开比较方便,因为毕竟可以一一对应,就不用判重的时候还要比较9个数了,康托展开的计算方法是:从最高位开始,在它位数前面比它小的所有数的数量再乘以它(位数-1)的阶乘,再把每一位的这个值给加起来,就是要求的。...
分类:其他好文   时间:2014-05-03 17:25:28    阅读次数:321
[ACM] hdu 1228 A+B (字符串处理)
A + B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11543    Accepted Submission(s): 6699 Problem Description   读入两个小于100的正整数A和B,计...
分类:其他好文   时间:2014-05-03 16:00:57    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!