c**********e 发帖数: 2007 | 1 This code gives the complete answer. The previous one does not give a
complete answer due to restriction of long int (about 2-billion, 2^31-1).
#include
using namespace std;
int main() {
for(long n=31623;n<100000;n++) {
//long nsquare=n*n;
double nsquare=n*0.1*n;
long nsq=nsquare;
int i,j, a[10];
a[0]=(nsquare-nsq)*10;
for(i=1;i<10;i++) {
a[i]=nsq % 10;
nsq = nsq/10;
}
for(i=0;i<10;i++) {
for(j=i+1;j<10;j++) {
if(a[i]>a[j]) {
... 阅读全帖 |
|
k**0 发帖数: 19737 | 2 和以前一样,下边撞到东西了。
Tesla reports third fire involving Model S electric car
By Ben Klayman and Bernie Woodall
DETROIT (Reuters) - Tesla Motor Inc's(NSQ:TSLA) Model S electric car has
suffered its third fire in six weeks, sending its shares down nearly 9
percent in Thursday midday trading.
The Tesla Motors Club website contains pictures and a story about another
fire involving a Model S that a company spokeswoman confirmed. The accident
occurred on Wednesday in Smyrna, Tennessee, where Nissan Motor Co... 阅读全帖 |
|
P*B 发帖数: 2876 | 3 only found this
(Reuters) - JA Solar Holdings Co Ltd (NSQ:JASO - News) posted a larger-than-
expected adjusted quarterly loss as prices fell and sales slumped, but said
demand from emerging solar markets such as the United States, China, India
and Japan will boost shipments this year. |
|
t*******h 发帖数: 409 | 4 dow only 2% away from all time high
NSQ only ~5% away from all time high
大家就跌出shit
要真来个10-15% correction
多少受精卵,蝌蚪,青蛙,大牛,天牛
要见外婆?
do you have balls to 爆乳? |
|
t*******h 发帖数: 409 | 5 赞
个人觉着biotech大势看好
只是现在大盘上攻无力,biotech领跌
等dow, nsq, sp reach 10-15% correction
我就大力买进 |
|
t*******h 发帖数: 409 | 6 重头股低迷
垃圾股飞天
药不能挺
否则
dow, sp, nsq will retreat
waiting for 10-15% correction
sit tight |
|
|
t*******h 发帖数: 409 | 8 it is only 2% down for nsq
dow, sp touched all time high today
this is just beginning
sit tight
了。 |
|
t*******h 发帖数: 409 | 9 捞了点gluu, jazz,DDD
立刻就水下了
没捞到gogo,hznp
下周继续捞 gluu, hznp, gogo, twtr, pcyc, gild, DDD.....
计划nsq每2%down, 就上一个小分队 |
|
t*******h 发帖数: 409 | 10 dow, sp touched all time high today
nsq only 2.6% down
this is just beginning of correction
sit tight
美国大势看涨
但调整是必须的
价值回归
机会难得
小量分批买入有earning support的牛股
good luck and have fun! |
|
t*******h 发帖数: 409 | 11 dow, sp touched all time high on Friday
nsq only 2.6% down
this is just beginning
sit tight
少量分批买入
为上策 |
|
t*******h 发帖数: 409 | 12 十倍大牛
也不见了
nsq 才~7% below all time high |
|
|
t*******h 发帖数: 409 | 14 +6%
抄卖白粉的心
坐等下一波
Nsq is shaking for another dive this afternoon..,,,
★ 发自iPhone App: ChineseWeb 8.1 |
|
t*******h 发帖数: 409 | 15 古板都是牛魔王
今天又捞了点hznp
龙老师的pick, 觉着不错
gogo, gild 没捞到
下周再说了
nsq再跌个3-5%
就准备上正规部队了
dow如果10-15%down,就all in
如果再跌,
就开始小量分批割肉 |
|
b*******s 发帖数: 2279 | 16 sorry,昨天接到通知周五加班到8点。。。从NSQ赶过来估计要9点多了。吃饭可能赶不
上了。之后还有
啥活动么? |
|
d*******r 发帖数: 3299 | 17 Celery 这种 job queue 其实不难,我以前看过一些,最后觉得其实用 Python / Node
.js 在一个 DB (e.g. Redis, MongoDB) 上套一层 RESTful 风格的 (e.g. JSON) job
描述的存取逻辑,就搞定了。
想要啥功能还更好定制,我之前帮公司写了个 distributed job queue, 还顺带管理
EC2 instance cluster, 跑得挺好的.
这里有一个完整的 queue list:
http://queues.io/
不过说明下,里面有2种 queues,
一种是 Celery 这种 job queue, 主要分发 job 描述的;
另外一种是 Go nsq 或者 Scala Kafka 这种 message queue, 主要接收和传递
messages 的. |
|
d*******r 发帖数: 3299 | 18 大牛能否回答下我上面关于 http server scale out 和 nsq 相关的问题? |
|
|
p*****2 发帖数: 21240 | 20
golang distributed一般用什么?NSQ吗? |
|