由买买提看人间百态

topics

全部话题 - 话题: sove
(共0页)
U*E
发帖数: 3620
1
(1+0.08)^n = 2 (1+0.01)^n
sove for n
r******e
发帖数: 80
2
Given integer n and m, is there a fast way to calculate n*m or n/m using
only 'add' operation?
a straightforward way to calculate n*m and n/m is to add m times of n and
add multiple times of -m. Not sounds optimization enough. Any idea?
Thanks a lot.
l*****a
发帖数: 559
3
There exists logarithmic way to do this job.
int divide(int a,int b){
int res = 0;
int digit = 1;
while(b<<1<=a){
b = b<<1;
digit = digit<<1;
}
while(digit>0&&a>0){
if(a>=b){
res +=digit;
a-=b;
}
b>>=1;
digit>>=1;
}
return res;
}
i***1
发帖数: 95
4
awesome!
r******e
发帖数: 80
5
看了半天, 不明白为什么。 楼主能不能把原理解释一下? 非常感谢
l*****7
发帖数: 2844
6
来自主题: Stock版 - 再胡说一次下周
if republican concedes without a fight , they will lose their underwear。
they will have to fight.
fiscal cliff will not be evatually soved until next year
r*********e
发帖数: 29495
7
来自主题: Soccer版 - 贝巴在等安志的offer...
安之的战绩不行啊,明显钱花的还不够
2011/12 TABLES: PREMIER LEAGUE
CLUB P W D L GD PTS
Zenit 30 17 11 2 37 62
CSKA Moscow 30 15 12 3 26 57
Din Moscow 30 16 7 7 21 55
Loko Moscow 30 15 8 7 19 53
Spart Moscow 30 15 8 7 15 53
Kuban Krasno 30 14 7 9 10 49
Rubin Kazan 30 13 10 ... 阅读全帖
R*o
发帖数: 3781
8
by Dave Hunt
Yes, God was speaking to "Israel mine elect" in Isaiah 45:4, but most of the
m did not heed His call. Furthermore, that this offer is not just for a sele
ct elect is clear. The "everyone that thirsteth"
reminds one of Christ's cry, "If any man thirst, let him come unto me, and d
rink" (John 7:37). All those who thirst are offered the same "living water"
which Christ offered to the woman at the well (John 4:10). And it is with th
is same promise to whosoever will that the Bible ends:... 阅读全帖
C*****e
发帖数: 367
9
来自主题: TrustInJesus版 - Glossary to the Westminster Confession
【 以下文字转载自 Church 俱乐部 】
发信人: CCBible (神同在圣经), 信区: Church
标 题: Glossary to the Westminster Confession
发信站: BBS 未名空间站 (Tue Apr 24 21:16:33 2012, 美东)
Glossary to the Westminster Confession
Explanations of all archaic and uncommon words, usages, and expressions, in
the order in which they occur.
Title Confession. n. Public statement of religious beliefs.
1.1 Providence. n. Divine care. Manifest. v. Show. Are they. idiom. T
hey are. Unto. prep. With regard to. Sundry. adj. Separate. D... 阅读全帖
(共0页)