
LightOJ
ccq1n
TongjiU 2022级大三
展开
-
LightOJ 1294 - Positive Negative Sign【数学】
Given two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first m integers and make their sign negative, then take next m integers and make their sign positive, the next m原创 2015-12-10 10:53:11 · 383 阅读 · 0 评论 -
LightOJ 1389 - Scarecrow【模拟】
1389 - Scarecrow PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBTaso owns a very long field. He plans to grow different types o原创 2016-04-29 13:47:10 · 447 阅读 · 0 评论 -
LightOJ 1331-Agent J【计算几何】
1331 - Agent J PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBAgent J is preparing to steal an antique diamond piece from a mus原创 2016-05-02 22:05:50 · 434 阅读 · 0 评论 -
LightOJ 1338-Hidden Secret!【模拟】
1338 - Hidden Secret! PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBIn this problem you are given two names, you have to find原创 2016-05-03 13:31:17 · 585 阅读 · 0 评论 -
Light 1387-Setu
1387 - Setu PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBRahaduzzaman Setu, (Roll - 12) of 13th batch, CSE, University of Dha原创 2016-05-03 13:35:01 · 504 阅读 · 0 评论 -
Light 1414-February 29【容斥定理】
1414 - February 29 PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBIt is 2012, and it's a leap year. So there is a "February 29"原创 2016-05-03 16:27:50 · 551 阅读 · 0 评论 -
LightOJ 1433-Minimum Arc Distance【几何】
1433 - Minimum Arc Distance PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBYou all probably know how to calculate the distance原创 2016-05-03 16:43:20 · 682 阅读 · 0 评论 -
LightOJ 1305-Area of a Parallelogram【几何】
1305 - Area of a Parallelogram PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBA parallelogram is a quadrilateral with two pairs原创 2016-05-03 16:49:22 · 422 阅读 · 0 评论 -
LightOJ 1241- Pinocchio【模拟】
1241 - Pinocchio PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBYou must have heard the name of Pinocchio. If you never heard原创 2016-05-04 14:23:06 · 399 阅读 · 0 评论 -
LightOJ 1094-1094 - Farthest Nodes in a Tree【树的直径模板】
1094 - Farthest Nodes in a Tree PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBGiven a tree (a connected graph with no cycles),原创 2016-04-26 12:36:14 · 450 阅读 · 0 评论 -
LightOJ 1019-Brush (V)【最短路,模板题】
Tanvir returned home from the contest and got angry after seeing his room dusty. Who likes to see a dusty room after a brain storming programming contest? After checking a bit he found that there is no brush in him room. So, he called Atiq to get a brush.原创 2016-04-25 19:23:56 · 446 阅读 · 0 评论 -
LightOJ 1275 - Internet Service Providers
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 units per second through the channel and gets a profit that is directly原创 2015-12-10 11:07:41 · 442 阅读 · 0 评论 -
LightOJ 1297 - Largest Box【二分】
In the following figure you can see a rectangular card. The width of the card is W and length of the card is L and thickness is zero. Four (x*x) squares are cut from the four corners of the card shown by the black dotted lines. Then the card is folded alon原创 2015-12-28 13:44:56 · 581 阅读 · 0 评论 -
LightOJ-1008 Fibsieve`s Fantabulous Birthday
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 there was an N x N glass chessboard that had a light in each of its cells.原创 2015-12-03 13:33:40 · 317 阅读 · 0 评论 -
LightOJ 1078 - Integer Divisibility【同余】
If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequence of only a digit. Now you are given the number and the only allowable digit, you should report the number of digits of such multiple.For example you h原创 2015-12-04 13:26:59 · 393 阅读 · 0 评论 -
LightOJ 1116 - Ekka Dokka【简单数学】
Ekka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to share the cake after buying it. As the name suggested that Ekka is very fond of odd numbers and Dokka is very fond of even numbers, they want to divide the ca原创 2015-12-06 01:04:29 · 373 阅读 · 0 评论 -
LightOJ 1148 - Mad Counting【数学】
Mob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population of the town. Now the naive approach to this problem will be counting people one by one. But as we all know Mob is a bit lazy, so he is finding some other a原创 2015-12-06 09:39:10 · 334 阅读 · 0 评论 -
LightOJ 1214 - Large Division【同余定理】
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b * c.原创 2015-12-06 12:16:57 · 316 阅读 · 0 评论 -
LightOJ 1043 - Triangle Partitioning
Input starts with an integer T (≤ 25), denoting the number of test cases.Each case begins with four real numbers denoting AB, AC, BC and the ratio of ADE and BDEC (ADE / BDEC). You can safely assume that the given triangle is a valid triangle with positi原创 2015-12-06 14:02:36 · 511 阅读 · 0 评论 -
Light 1249-Chocolate Thief【模拟】
1249 - Chocolate Thief PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBI gave some chocolates to students for their extraordinar原创 2016-05-05 20:50:14 · 429 阅读 · 0 评论