lightoj
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LightOJ 1275:Internet Service Providers
Description A 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 · 450 阅读 · 0 评论 -
LightOJ 1006 :Hex-a-bonacci
Description Given 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 · 552 阅读 · 0 评论 -
LightOJ 1331:求面积
Description Agent 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 · 462 阅读 · 0 评论 -
LightOJ 1136 规律
Description There 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 · 651 阅读 · 0 评论 -
LightOJ 1305Area of a Parallelogram
Description A parallelogram is a quadrilateral with two pairs of parallel sides. See the picture below: Fig: a parallelogram Now you are given the co ordinates of A, B and C, you have to find t原创 2016-08-25 17:34:13 · 470 阅读 · 0 评论 -
Lightoj1008
Description See 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. Input Inp原创 2016-08-23 21:28:52 · 499 阅读 · 0 评论 -
Lightoj 1008 - Fibsieve`s Fantabulous Birthday
Description Fibsieve 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 · 624 阅读 · 0 评论 -
Lightoj1282(HDOJ1060) - Leading and Trailing
Description You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk. Input Input starts with an integer T (≤原创 2016-08-23 21:01:27 · 375 阅读 · 0 评论 -
Lightoj1045 Digits of Factorial(数论)
Description Factorial of an integer is defined by the following function f(0) = 1 f(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 · 434 阅读 · 0 评论 -
LightOJ 1307 :构造三角形
Description You 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 · 514 阅读 · 0 评论
分享