上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页
摘要: DescriptionSeveral startup companies have decided to build a better Internet, called the "FiberNet". They have already installed many nodes that act as routers all around the world. Unfortunately, they started to quarrel about the connecting lines, and ended up with every company laying it 阅读全文
posted @ 2014-03-03 22:36 chen2013 阅读(179) 评论(0) 推荐(0)
摘要: DescriptionRunning a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the customers calling to get a cab as soon as possible,there is also a need to schedule all the taxi rides which have been booked in advance.Given a 阅读全文
posted @ 2014-03-03 21:56 chen2013 阅读(264) 评论(0) 推荐(0)
摘要: DescriptionAn arithmetic series consists of a sequence of terms such that each term minus its immediate predecessor gives the same result. For example, the sequence 3, 7, 11, 15 is the terms of the arithmetic series 3+7+11+15; each term minus its predecessor equals 4. (Of course there is no requirem 阅读全文
posted @ 2014-02-27 10:28 chen2013 阅读(309) 评论(0) 推荐(0)
摘要: Description As we all know caterpillars love to eat leaves. Usually, a caterpillar sits on leaf, eats as much of it as it can (or wants), then stretch... 阅读全文
posted @ 2014-02-26 14:25 chen2013 阅读(417) 评论(0) 推荐(0)
摘要: DescriptionDid you know that you can use domino bones for other things besides playing Dominoes? Take a number of dominoes and build a row by standing... 阅读全文
posted @ 2014-02-26 13:47 chen2013 阅读(253) 评论(0) 推荐(0)
摘要: DescriptionMr. AngelClover just learnt XOR on his Computer Class. XOR is a bit arithmetic operator that returns one value if one, but not both, of its... 阅读全文
posted @ 2014-02-25 22:51 chen2013 阅读(367) 评论(0) 推荐(0)
摘要: Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and... 阅读全文
posted @ 2014-02-24 21:19 chen2013 阅读(269) 评论(0) 推荐(0)
摘要: Descriptiona program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (at least one), finds the smallest strictly positive multiple of N that has no other digits besides X1,X2..XM (if such a multiple exists). InputThe input has several data set 阅读全文
posted @ 2014-02-24 12:38 chen2013 阅读(266) 评论(0) 推荐(0)
摘要: DescriptionIt is always very nice to have little brothers or sisters. You can tease them, lock them in the bathroom or put red hot chili in their sandwiches. But there is also a time when all meanness comes back! As you know, in one month it is Christmas and this year you are honored to make the big 阅读全文
posted @ 2014-02-23 20:17 chen2013 阅读(309) 评论(0) 推荐(0)
摘要: DescriptionLet f(n) be the number of factors of integer n.Your task is to count the number of i(1 #define MAXN 1000001int f[MAXN]={0};int s[MAXN]={0};int c[MAXN]={0};int main(){ //先求出每个数的因子数 for(int i=1; i<MAXN; i++){ for(int j=1; i*j<MAXN; j++){ f[i*j]++; } } /... 阅读全文
posted @ 2014-02-23 10:52 chen2013 阅读(336) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页