码迷,mamicode.com
首页 >  
搜索关键字:poj 2034    ( 20310个结果
poj 3190 Stall Reservations(贪心)
DescriptionOh those picky N (1 >>>>>>>>>>>>>>>>>>>>>>>>>>Stall 2 .. c2>>>>>> c4>>>>>>>>> .. ..Stall 3 .. .. c3>>>>>>>>> .. .. .. ..Stall 4 .. .. .. c5
分类:其他好文   时间:2014-07-06 14:53:48    阅读次数:130
poj 2376 Cleaning Shifts
DescriptionFarmer John is assigning some of his N (1 2 #include 3 #include 4 using namespace std; 5 int vis[1100009]; 6 int a,b; 7 struct node 8 { 9 ....
分类:其他好文   时间:2014-07-06 14:50:25    阅读次数:155
poj 2393 Yogurt Factory(贪心)
DescriptionThe cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 #includeint min(int a,int b){ if(a>b) ...
分类:其他好文   时间:2014-07-06 14:21:54    阅读次数:215
POJ 2309 BST 树状数组基本操作
DescriptionConsider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root nod...
分类:其他好文   时间:2014-07-06 13:23:06    阅读次数:229
poj 1676 What time is it?
DescriptionAn accutron shows time with four digits, from 0000 to 2359. Every digit is represented by 3*3 characters, including '|'s, '_'s and blanks. ...
分类:其他好文   时间:2014-07-06 13:19:09    阅读次数:300
POJ 2485 Highways
最小生成树问题。 求最小生成树的最大边,没有坑点。 #include #include #include #include #include #include #include #include #include #include #include #include #define INF 0x7fffffff #define eps 1e-6 using namespace std;...
分类:其他好文   时间:2014-07-06 11:58:51    阅读次数:272
poj 2264 Advanced Fruits(DP)
Advanced Fruits Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1944   Accepted: 967   Special Judge Description The company "21st Century Fruits" has spec...
分类:其他好文   时间:2014-07-06 10:23:04    阅读次数:166
POJ 2395 Out of Hay
跟我上一篇解题报告一样,都是找最小生成树的最大边。 依然Kruskal,每次比较找最大即可。 有人问我为啥一直CE,妥妥的不看题目,都说了可能有重复的边,存储边数组的开大一点就好了。 #include #include #include #include #include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-07-06 10:22:28    阅读次数:192
poj 2406 Power Strings(KMP&思维)
Power Strings Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 31093   Accepted: 12974 Description Given two strings a and b we define a*b to be their concate...
分类:其他好文   时间:2014-07-06 00:33:22    阅读次数:253
POJ 2084 Catalan数
【题意】:一个环上有2*N个连续的数,求将这些数两两连接且连接的边不相交的方法数。【知识点】:数学+Catalan数令h(1)=1,h(0)=1递归式1:h(n)= h(0)*h(n-1)+h(1)*h(n-2) + ... + h(n-1)h(0) (其中n>=2) 递归式2:h(n)=((4.....
分类:其他好文   时间:2014-07-05 22:32:22    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!