题目:
Given a non-negative integer num, repeatedly add all its digits until the result has only
one digit.
For example:
Given num = 38, the process is like: 3
+ 8 = 11, 1 + 1 = 2. Since 2...
分类:
其他好文 时间:
2015-08-31 15:21:10
阅读次数:
124
Add Digits
Given a non-negative integer num, repeatedly add all its digits until the
result has only one digit.
For example:
Given num = 38, the process is like: 3
+ 8 = 11, 1 + 1 = 2. ...
分类:
其他好文 时间:
2015-08-31 13:36:38
阅读次数:
168
1、查看MySQL日志mysql> show global variables like '%log%';
+-----------------------------------------+-------------------------+
| Variable_name | Value |
+-----...
分类:
数据库 时间:
2015-08-31 01:20:00
阅读次数:
237
Happy LineTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 549GDescriptionDo you like summer? Residen...
分类:
移动开发 时间:
2015-08-30 21:17:01
阅读次数:
198
文档处理append:向每个匹配的元素内部追加内容。这个操作与对指定的元素执行appendchild方法,将它们添加到文档中的情况类似i would like to say$("p").append("hello"); 结果:[i would liek to say:hello] appendT.....
分类:
Web程序 时间:
2015-08-30 20:55:35
阅读次数:
155
Arcane Numbers 1Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4320DescriptionVance and Shackler like playi...
分类:
其他好文 时间:
2015-08-30 20:50:41
阅读次数:
175
We have a graph with size = N like that in Figure 1. Then we are going to find a downward path from the top node to one bottom node.
First, we select the top node as the beginning. Then at any no...
分类:
其他好文 时间:
2015-08-30 19:35:58
阅读次数:
185
最近在生成环境下的mysql运行下降,有些sql执行也慢,首先检查下慢查询日志是否开启
show variables like ‘slow_query_log%’
在看慢日志设置的时间
show variables like ‘long_query_time%’;
可以看到开启了慢查询,find / -name slow-query.log查找慢日志
发现里面的sql是很慢但是都...
分类:
数据库 时间:
2015-08-29 23:22:55
阅读次数:
255
ex1.py1 print "Hello World!"2 print "Hello Qiwei"3 print "I like typing this."4 print "This is fun."5 print 'Yay! Printing.'6 print "I'd much rather y...
分类:
编程语言 时间:
2015-08-29 21:39:33
阅读次数:
142
一、mysql中的编码 ? mysql>?show?variables?like?‘collation_%‘;
+----------------------+-------------------+
|?Variable_name?|?Value?|
+----------------------+-------------------+
|?collati...
分类:
数据库 时间:
2015-08-29 17:17:39
阅读次数:
349