码迷,mamicode.com
首页 >  
搜索关键字:poj 2533 longest ord    ( 23478个结果
poj 2109 Power of Cryptography
Power of CryptographyTime Limit:1000MSMemory Limit:30000KTotal Submissions:17912Accepted:9034DescriptionCurrent work in cryptography involves (among o...
分类:其他好文   时间:2014-05-09 04:24:50    阅读次数:284
Poj.Grids 2951 浮点数求高精度幂
2951:浮点数求高精度幂总时间限制:1000ms内存限制:65536kB描述有一个实数 R ( 0.0 4 #include 5 #define SIZE 126 6 #define LEN 5 7 8 int a[SIZE],b[LEN]; 9 10 int mul( int alen,i...
分类:其他好文   时间:2014-05-09 03:28:02    阅读次数:379
poj 1743 Musical Theme(男人八题&后缀数组第一题)
Musical Theme Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 17298   Accepted: 5939 Description A musical melody is represented as a sequence of N (1<=N<=20...
分类:其他好文   时间:2014-05-09 02:46:57    阅读次数:375
[容斥原理] poj 3094 Sky Code
题目链接: http://poj.org/problem?id=3904 Sky Code Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1334   Accepted: 405 Description Stancu likes s...
分类:其他好文   时间:2014-05-09 01:41:07    阅读次数:335
poj-2299 Ultra—QuickSort(归并排序求逆序数)
归并排序求逆序数...
分类:其他好文   时间:2014-05-09 01:13:27    阅读次数:299
Longest Valid Parentheses @Leetcode -- Python
http://oj.leetcode.com/problems/longest-valid-parentheses/ 1 class Solution: 2 # @param s, a string 3 # @return an integer 4 def longestVa...
分类:编程语言   时间:2014-05-09 00:11:38    阅读次数:410
POJ 3801 有上下界最小流
1: /** 2: POJ 3801 有上下界的最小流 3: 4: 1、对supersrc到supersink 求一次最大流,记为f1。(在有源汇的情况下,先使整个网络趋向必须边尽量满足的情况) 5: 2、添加一条边sink -> src,流量上限为INF,这条边记为p。(构造无源汇网络) 6: 3...
分类:其他好文   时间:2014-05-08 23:31:26    阅读次数:476
poj 2104 K-th Number(划分树模板)
划分树模板题,敲上模板就ok了。 #include #include #include #include #include #include #include #include #include #include #define MP make_pair #define LL long long #define CLR(a, b) memset(a, b, sizeof(a)) using n...
分类:其他好文   时间:2014-05-08 17:29:39    阅读次数:398
Leetcode: Longest Common Prefix
这道题做的不够顺利,许多次通过,但是居然是卡在一个小问题上了,判断strs是否为空,我想当然地就写成了if(strs == null) return null; 报错java中null表示还没new出对象,就是还没开辟空间;“”表示new出了对象,但是这个对象装的是空字符串。这里显然是要应对strs...
分类:其他好文   时间:2014-05-08 15:16:16    阅读次数:291
POJ2406Power Strings
来源:http://poj.org/problem?id=2406  Power Strings Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 30293   Accepted: 12631 Description Given two strin...
分类:其他好文   时间:2014-05-08 02:03:40    阅读次数:337
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!