当出现这种错误:Thu Jan 04 22:49:59 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL co
分类:
数据库 时间:
2018-01-05 01:16:54
阅读次数:
274
在Docker容器创建好之后,可能会发现容器时间跟宿主机时间不一致,这就需要同步它们的时间,让容器时间跟宿主机时间保持一致。如下:宿主机时间
[root@docker ~]# date
Thu Jan 4 13:42:52 CST 2018
容器时间
[root@docker ~]#&nbs
分类:
其他好文 时间:
2018-01-04 14:25:58
阅读次数:
193
恢复内容开始 WSGIApplicationGroup %{GLOBAL} [Thu Jan 04 11:32:23.287776 2018] [mpm_event:notice] [pid 82455:tid 139795941345152] AH00489: Apache/2.4.7 (Ubun ...
分类:
其他好文 时间:
2018-01-04 12:00:18
阅读次数:
321
/*15:银行利息总时间限制: 1000ms 内存限制: 65536kB描述农夫约翰在去年赚了一大笔钱!他想要把这些钱用于投资,并对自己能得到多少收益感到好奇。已知投资的复合年利率为R(0到20之间的整数)。约翰现有总值为M的钱(100到1,000,000之间的整数)。他清楚地知道自己要投资Y年(范围0到400)。请帮助他计算最终他会有多少钱,并输出它的整数部分。数据保证输出结果在32位有符号整数
分类:
其他好文 时间:
2018-01-03 22:44:43
阅读次数:
315
var date = new Date(); date.toString(); // "Tue Jan 02 2018 15:03:07 GMT+0800 (中国标准时间)" date.getDate(); // 2 date.getDay(); // 2 date.getFullYear(); / ...
分类:
编程语言 时间:
2018-01-02 16:50:47
阅读次数:
210
启动根容器:[oracle@eric ~]$ export ORACLE_SID=cup[oracle@eric ~]$ sqlplus / as sysdbaSQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 21 16:00:06 2015Cop ...
分类:
数据库 时间:
2018-01-01 20:34:09
阅读次数:
259
"题面传送门~~我太懒了所以吃掉题面~~" 题解 可以发现如果两点不在一条链上的话,那么他们的最短路径一定会经过LCA。 所以可以维护一下每个点到树根的距离,然后大力前缀和乱搞就好了。 cpp include const int max_n=1e4+5; int N,M,cnt; int depth ...
分类:
其他好文 时间:
2018-01-01 16:53:08
阅读次数:
122
P3662 [USACO17FEB]Why Did the Cow Cross the Road II S P3662 [USACO17FEB]Why Did the Cow Cross the Road II S P3662 [USACO17FEB]Why Did the Cow Cross th ...
分类:
其他好文 时间:
2017-12-31 11:57:53
阅读次数:
173
P2926 [USACO08DEC]拍头Patting Heads P2926 [USACO08DEC]拍头Patting Heads P2926 [USACO08DEC]拍头Patting Heads 题目描述 It's Bessie's birthday and time for party g ...
分类:
其他好文 时间:
2017-12-31 11:56:12
阅读次数:
189
由于自己是第一次参加USACO,于是被光荣分到了铜组,这里就放上三道水题的题解吧(代码是比赛时写的,可能有些丑)。 1、Blocked Billboard During long milking sessions, Bessie the cow likes to stare out the wind ...
分类:
其他好文 时间:
2017-12-30 23:34:25
阅读次数:
242