Graph ReconstructionTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeLet there be a simple graph withNvertices but we just know the degree of e...
分类:
其他好文 时间:
2014-09-18 18:40:44
阅读次数:
431
在Matlab和java的混合编程中,启动Tomcat后,访问页面Tomcat出现如题错误,然后google后,发现可能是两个问题:1. processor不支持,好像是说processor要支持sse2;2. 也有说安装Matlab或者Matlab运行时换个目录就可以了;不过我遇到的问题却不是这样的;机器安装的是Redhat的系统,之前装的是中文的,后来好像是因为什么原因改为了英文的了,然后就不...
分类:
其他好文 时间:
2014-09-18 16:33:04
阅读次数:
239
一个需求,需要从20140101那天开始,然后一直找到8月份。用newlisp计算日期的话,需要考虑日历月的天数不一样。比较容易的方法是采用epoch秒数,然后每次加一天的描述,再转换成日期字符串,下面的代码如下:#!/usr/bin/newlisp
(println "ok")
(set 'start-date "20140101 00:00")
(set 'start-seconds (d...
分类:
其他好文 时间:
2014-09-18 11:37:03
阅读次数:
272
脚本编写思路:(1)根据showslavestatusG;l列Seconds_Behind_Master;(2)Seconds_Behind_Master=NULL判断io或sql进程哪个停止或者二者都停止(3)Seconds_Behind_Master=0复制正常(4)Seconds_Behind_Master>0说明主从延迟上述(2)、(4)会发出邮件报警,正常时忽略,..
分类:
数据库 时间:
2014-09-17 10:27:23
阅读次数:
353
More Divisors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Everybody knows that we use decimal notation, i.e. the base of our notation is 10. Historians say that it is so because men ...
分类:
其他好文 时间:
2014-09-16 22:10:21
阅读次数:
303
Paint the Grid AgainTime Limit:2 Seconds Memory Limit:65536 KBLeo has a grid withN×Ncells. He wants to paint each cell with a specific color (either b...
分类:
其他好文 时间:
2014-09-13 18:44:15
阅读次数:
260
1、docker安装 debian7安装docker 参考地址:http://www.webmaster.me/server/installing-docker-on-debian- wheezy-in-60-seconds.html ??? echo deb http://get.docker.io/ubuntu docker main | sudo tee/et...
分类:
其他好文 时间:
2014-09-13 01:58:04
阅读次数:
377
Use Hibernate + MYSQL database development, link timeout problem:? com.mysql.jdbc.CommunicationsException: The last packet successfully received from the server was58129 seconds ago.The last pack...
分类:
数据库 时间:
2014-09-12 22:13:24
阅读次数:
454
That Nice Euler Circuit
Timelimit:3.000 seconds
Little Joey invented a scrabble machine that he called Euler, after the great mathematician. In his primary school Joey heard about the nice s...
分类:
其他好文 时间:
2014-09-12 19:13:34
阅读次数:
277
Generalized Palindromic Number
Time Limit: 2 Seconds
Memory Limit: 65536 KB
A number that will be the same when it is written forwards or backwards is known as a palindromic number. For ...
分类:
其他好文 时间:
2014-09-12 11:59:43
阅读次数:
186