lightoj
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
-
LightOJ 1275:Internet Service Providers
DescriptionA group of N Internet Service Provider companies (ISPs) use a private communication channel that has a maximum capacity of C traffic units per second. Each company transfers T traffic u原创 2016-08-15 20:47:13 · 374 阅读 · 0 评论 -
LightOJ 1006 :Hex-a-bonacci
DescriptionGiven a code (not optimized), and necessary inputs, you have to find the output of the code for the inputs. The code is as follows:int a, b, c, d, e, f;int fn( int n ) { if( n原创 2016-08-25 17:43:19 · 483 阅读 · 0 评论 -
LightOJ 1331:求面积
DescriptionAgent J is preparing to steal an antique diamond piece from a museum. As it is fully guarded and they are guarding it using high technologies, it's not easy to steal the piece. There ar原创 2016-08-25 17:40:52 · 395 阅读 · 0 评论 -
LightOJ 1136 规律
DescriptionThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Now you are given two integers A and B, you have to find the number of integers fromAth number to Bth (inclusive) number, w原创 2016-08-25 17:38:05 · 579 阅读 · 0 评论 -
LightOJ 1305Area of a Parallelogram
DescriptionA parallelogram is a quadrilateral with two pairs of parallel sides. See the picture below:Fig: a parallelogramNow you are given the co ordinates of A, B and C, you have to find t原创 2016-08-25 17:34:13 · 396 阅读 · 0 评论 -
Lightoj1008
DescriptionSee the picture below.You are given AB, AC and BC. DE is parallel to BC. You are also given the area ratio between ADE and BDEC. You have to find the value ofAD.InputInp原创 2016-08-23 21:28:52 · 421 阅读 · 0 评论 -
Lightoj 1008 - Fibsieve`s Fantabulous Birthday
DescriptionFibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts th原创 2016-08-23 21:23:08 · 555 阅读 · 0 评论 -
Lightoj1282(HDOJ1060) - Leading and Trailing
DescriptionYou are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.InputInput starts with an integer T (≤原创 2016-08-23 21:01:27 · 313 阅读 · 0 评论 -
Lightoj1045 Digits of Factorial(数论)
DescriptionFactorial of an integer is defined by the following functionf(0) = 1f(n) = f(n - 1) * n, if(n > 0)So, factorial of 5 is 120. But in different bases, the factorial may be different原创 2016-08-23 20:24:10 · 367 阅读 · 0 评论 -
LightOJ 1307 :构造三角形
DescriptionYou are given N sticks having distinct lengths; you have to form some triangles using the sticks. A triangle is valid if its area is positive. Your task is to find the number of ways yo原创 2016-08-25 17:45:09 · 470 阅读 · 0 评论