http://lightoj.com/volume_showproblem.php?problem=1282 题目大意: 求n的k次方的前三位和后三位数然后输出 后三位是用快速幂做的,我刚开始还是不会快速幂,后来慢慢理解了。 前三位求得比较厉害 我们可以吧n^k = a.bc * 10.0^m; k ...
                            
                            
                                分类:
其他好文   时间:
2016-05-31 20:28:05   
                                阅读次数:
139
                             
                    
                        
                            
                            
                                昨天做项目时,写了个方法,程序突然报了Connection is readonly. Queries leading to data modification are not allowed调了程序半天,最后才发现是自己在spring配置文件中增加了事务.把方法写成了大写开头了,但是spring配置 ...
                            
                            
                                分类:
编程语言   时间:
2016-05-29 18:18:17   
                                阅读次数:
1160
                             
                    
                        
                            
                            
                                /**
*Getthecontextualconcretebindingforthegivenabstract.
*
*@paramstring$abstract
*@returnstring|null
*/
protectedfunctiongetContextualConcrete($abstract)
{
if(isset($this->contextual[end($this->buildStack)][$abstract])){
return$this->contextual[en..
                            
                            
                                分类:
其他好文   时间:
2016-05-24 10:32:41   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                Given a list of monetary amounts in a standard format, please calculate the total amount.We define the format as follows:
The amount starts with ‘$’.
The amount could have a leading ‘0’ if and only if...
                            
                            
                                分类:
其他好文   时间:
2016-05-12 17:26:02   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                tar命令作用:打包、压缩文件[root@server63~]#tar--helpUsage:tar[OPTION...][FILE]...GNU`tar‘savesmanyfilestogetherintoasingletapeordiskarchive,andcanrestoreindividualfilesfromthearchive.Examples:tar-cfarchive.tarfoobar#Createarchive.tarfromfilesfooandbar.tar-..
                            
                            
                                分类:
系统相关   时间:
2016-05-06 16:29:54   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                tar: Removing leading `/’ from member names+2 分类:Web服务器 标签:tar 3,910人浏览 tar: Removing leading `/’ from member names+2 分类:Web服务器 标签:tar 3,910人浏览 分类:Web ...
                            
                            
                                分类:
其他好文   时间:
2016-05-01 11:01:14   
                                阅读次数:
212
                             
                    
                        
                            
                            
                                一、HttpRequest对象的一些属性或方法 request.path,The full path, not including the domain but including the leading slash,例如:"/hello/" request.get_host(),The host  ...
                            
                            
                                分类:
其他好文   时间:
2016-04-27 17:07:27   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                安装完python2.7.11后用了几天挺好,但是今天用yum的时候发现了问题[root@templateyum.repos.d]#yumlistTherewasaproblemimportingoneofthePythonmodulesrequiredtorunyum.Theerrorleadingtothisproblemwas:NomodulenamedyumPleaseinstallapackagewhichprovidesthismodule,orve..
                            
                            
                                分类:
编程语言   时间:
2016-04-13 00:25:42   
                                阅读次数:
194
                             
                    
                        
                            
                            
                                CREATE TABLE T_SMAINT_2016012703 parallel 4 nologging AS SELECT /*+parallel(4) leading(s a) use_hash(A) index(s IDX_CS_SERVICE_RECORD_MD2_04) */S.SMAI
                            
                            
                                分类:
数据库   时间:
2016-01-28 10:34:52   
                                阅读次数:
298