Problem: 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 ...
分类:
其他好文 时间:
2016-05-22 21:27:42
阅读次数:
120
2016年4月3日 14:30 客户环境:LINUX + RAC 客户端账号登录,报错提示:ORA-00257: archiver error. Connect internal only, until freed 使用PUTTY连接服务器 进入oracle账户: [root@hisrac2 ~]# ...
分类:
其他好文 时间:
2016-05-20 00:36:13
阅读次数:
224
一、前言 做这题有个小收获,关于Digital root的解法,有个极方便的小公式: 二、题258 Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only ...
分类:
编程语言 时间:
2016-05-19 19:24:45
阅读次数:
1224
=begin
循环,times,while,each,for,until,loop
=end
#times方法
=begin
循环次数.timesdo
循环的处理
end
循环的次数.times{
循环的处理
}
=end
5.timesdo
puts"hello"
end
5.times{|i|
puts"for#{i}‘sloop"
}
#for语句
=begin
for变量in对象do
循环的处理
end
=end
sum=0
..
分类:
其他好文 时间:
2016-05-18 22:11:59
阅读次数:
325
So once you modify the code, service worker will auto create a new one and it won't take control over until the previous service work total die(close ...
分类:
系统相关 时间:
2016-05-16 21:58:26
阅读次数:
223
258. 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 ...
分类:
编程语言 时间:
2016-05-14 18:26:15
阅读次数:
200
从本节视频内容中,学到如下知识点,是之前没有了解过的: 一、Python版本升级至3.0的必然性 In November 2014, it was announced that Python 2.7 would be supported until 2020, and reaffirmed that ...
分类:
编程语言 时间:
2016-05-14 00:50:54
阅读次数:
176
题意:求一个表格图的最小割。
分析:这题如果套上一个网络流的话是会挂的,所以我们要把该图转换成它的对偶图,具体方法可以参照两级相通————浅析最大最小定理在信息学竞赛中的应用 By 周冬。然后跑对短路就好了。
良心的出题人居然没卡spfa
这题要特判n=1 or m=1的情况
这次一开始无限12msWA的原因是spfa的结束条件是until head>=tail,而我用的是...
分类:
其他好文 时间:
2016-05-12 16:20:41
阅读次数:
197
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: ...
分类:
其他好文 时间:
2016-05-11 21:39:49
阅读次数:
121
3、wait()和notify()、notifyAll() wait(): Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for ...
分类:
编程语言 时间:
2016-05-11 13:13:19
阅读次数:
142