DescriptionOh those picky N (1 >>>>>>>>>>>>>>>>>>>>>>>>>>Stall 2 .. c2>>>>>> c4>>>>>>>>> .. ..Stall 3 .. .. c3>>>>>>>>> .. .. .. ..Stall 4 .. .. .. c5
分类:
其他好文 时间:
2014-07-06 14:53:48
阅读次数:
130
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
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
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
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
最小生成树问题。
求最小生成树的最大边,没有坑点。
#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
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
跟我上一篇解题报告一样,都是找最小生成树的最大边。
依然Kruskal,每次比较找最大即可。
有人问我为啥一直CE,妥妥的不看题目,都说了可能有重复的边,存储边数组的开大一点就好了。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2014-07-06 10:22:28
阅读次数:
192
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
【题意】:一个环上有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