题意:给我们两个序列,看能否通过压栈,出栈将第一个序列转换成第二个。思路:将序列 1 
依次压栈,同时看是否和序列 2 当前元素相同代码如下:#include#include#define max 100using namespace 
std;int main(){ stacks; int...
                            
                            
                                分类:
其他好文   时间:
2014-05-17 01:47:36   
                                阅读次数:
218
                             
                    
                        
                            
                            
                                二分搜索思想:bool C(double x)可以得到长度为x的绳子//#define 
LOCAL#include#includeint const MAX_N=10005;int const MAX_M=100;double const 
INF=100000000;int N,K;double d...
                            
                            
                                分类:
其他好文   时间:
2014-05-17 00:13:44   
                                阅读次数:
271
                             
                    
                        
                            
                            
                                题目:Givennpoints on a 2D plane, find the maximum 
number of points that lie on the same straight 
line.算法分析:定义最大直线为符合相同条件的直线中通过点最多的那条直线。对每个点p,计算其它的点与p形成的...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 23:26:31   
                                阅读次数:
389
                             
                    
                        
                            
                            
                                1 #include 2 #include 3 using namespace std; 4 
5 int main() 6 { 7 int n; 8 double max,min,sum,aver; 9 double a[110] = {0};10 
while...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 22:47:35   
                                阅读次数:
452
                             
                    
                        
                            
                            
                                -- 查找重复记录select names,num from test where rowid != 
(select max(rowid) from test b where b.names = test.names and b.num = 
test.num)或者使用select names,n.....
                            
                            
                                分类:
数据库   时间:
2014-05-16 18:51:53   
                                阅读次数:
278
                             
                    
                        
                            
                            
                                1 
org.slf4j.impl.StaticLoggerBinder.SINGLETON错误方案:确保slf4j-api-1.5.6.jar 
和slf4j-log4j12-1.5.6.jar 版本一致如果发布,pom中其他依赖的jar包排除上面两个2 本地调试不行,在LocalCluster 
cl...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 06:55:48   
                                阅读次数:
251
                             
                    
                        
                            
                            
                                题目: Givennpoints on a 2D plane, find the maximum 
number of points that lie on the same straight line.解题思路: 
第一反应:枚举两个点组成的直线,然后看其他的点在不在这条直线上,在此过程中统计最大.....
                            
                            
                                分类:
其他好文   时间:
2014-05-16 05:54:57   
                                阅读次数:
193
                             
                    
                        
                            
                            
                                1 #include 2 #include 3 using namespace std; 4 
5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while 
(getline(ci...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 16:20:41   
                                阅读次数:
258
                             
                    
                        
                            
                            
                                http_load学习心得:测试网站每秒所能承受的平均访问量(吞吐量)http_load 
-parallel 5 -fetches 
1000urls.txt这段命令行是同时使用5个进程,随机访问urls.txt中的网址列表,总共访问1000次。运行之后的结果:1000 fetches, 5 
max ...
                            
                            
                                分类:
Web程序   时间:
2014-05-15 16:13:33   
                                阅读次数:
407
                             
                    
                        
                            
                            
                                观察可以发现,0,1,2,……,n结尾的分组中,maxsum a[0] = a[0]maxsum 
a[1] = max( a[0] + a[1] ,a[1]) = max( maxsum a[0] + a[1] ,a[1])maxsum a[2] = 
max( max ( a[0] + a[1] +...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 08:38:58   
                                阅读次数:
323