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
                             
                    
                        
                            
                            
                                该模块提供了一种使用依赖于操作系统函数的可移植方法。如果想读或写一个文件,参考open();如果想操作路径,参考os.path模块;如果想读取命令行中所有文件的所有行,参考fileinput模块。如果要创建临时文件和目录,参考tempfile模块。高级文件和目录处理则参考shutil模块。注意函数的...
                            
                            
                                分类:
编程语言   时间:
2014-05-16 20:44:57   
                                阅读次数:
411
                             
                    
                        
                            
                            
                                cd instance-path/ds6/bin 
#注意黄色参数修改为跟实际环境一致-c,--accept-cert Does not ask for confirmation before accepting 
non-trusted server certifica...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 18:06:42   
                                阅读次数:
766
                             
                    
                        
                            
                            
                                操作系统是Window下。第一步安装软件1、安装Tomcat6.0.35(Tomcat7.0.34测试通过)2、安装JDK6(1.6.0_10-rc2,其它版本没测试)3、安装openssl第二步配置软件1、将jdk、jre和openssl的bin目录设置到path环境变量下第三步生成证书1、创建一...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 08:35:46   
                                阅读次数:
540
                             
                    
                        
                            
                            
                                Configuration File (php.ini) 
Path/usr/local/php/libLoaded Configuration File(none)Linux 把 dtruss 改成strace 
就可以我的是mac的系统jackluo@JackLuodeMacBook-Pro:~ $...
                            
                            
                                分类:
Web程序   时间:
2014-05-16 07:23:21   
                                阅读次数:
381
                             
                    
                        
                            
                            
                                #!/bin/bashPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport 
PATH# Check if user is rootif [ $(id -u) != "0" ]; then pr...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 07:15:11   
                                阅读次数:
310
                             
                    
                        
                            
                            
                                Problem FPaths through the 
HourglassInput:Standard InputOutput:Standard OutputTime Limit:2 SecondsIn the 
hourglass to the right a path is marked. A pa...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 05:34:47   
                                阅读次数:
307
                             
                    
                        
                            
                            
                                观察可以发现,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
                             
                    
                        
                            
                            
                                题意很简单,求sum(gcd(i,n))   1
这题看到后第一反应并没有里用积性函数的性质,不过也可以做,欣慰的是我反应还是比较快的
设f(n)=gcd(1,n)+gcd(2,n)+....+gcd(n-1,n) + gcd(n,n),
用g(n,i)表示满足 gcd(x,n)=i的 x的个数 (x小于n),则 f(n)=sum{i*g(n,i)};
同时又利用 扩展欧几里德的性...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 13:40:58   
                                阅读次数:
365
                             
                    
                        
                            
                            
                                Prime Ring Problem
Problem Description
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 11:54:17   
                                阅读次数:
444