比赛练习
文章平均质量分 79
du2715249700
这个作者很懒,什么都没留下…
展开
-
CodeForce 510 B
DescriptionFox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color.原创 2016-08-15 15:32:25 · 271 阅读 · 0 评论 -
LightOJ 1043
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.InputI原创 2016-08-24 09:08:11 · 232 阅读 · 0 评论 -
CodeForces 597A Divisibility
DescriptionFind the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ x ≤ b and x is divisible by k.Input原创 2016-08-24 09:05:08 · 195 阅读 · 0 评论 -
CodeForces 598A Tricky Sum
DescriptionIn this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum.For example, for n = 4 the sum is equal to -原创 2016-08-24 08:58:48 · 194 阅读 · 0 评论 -
CodeForces 632B Alice, Bob, Two Teams
Alice, Bob, Two TeamsTime Limit:1500MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionAlice and Bob are playing a game. The game involves splitting up game pieces in原创 2016-08-23 11:37:27 · 189 阅读 · 0 评论 -
CodeForces 366A Dima and Guards
Dima and GuardsTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionNothing has changed since the last round. Dima and Inna still love each other and wan原创 2016-08-23 10:58:09 · 176 阅读 · 0 评论 -
CodeForces 658A Bear and Reverse Radewoosh
Bear and Reverse RadewooshTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionLimak and Radewoosh are going to compete against each other in the upcomin原创 2016-08-23 10:51:12 · 177 阅读 · 0 评论 -
CodeForces 554B Ohana Cleans Up
Ohana Cleans UpTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionOhana Matsumae is trying to clean a room, which is divided up into an n by n grid o原创 2016-08-23 10:43:19 · 160 阅读 · 0 评论 -
CodeForces 660A Co-prime Array
Co-prime ArrayTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionYou are given an array of n elements, you must make it a co-prime array in as fe原创 2016-08-23 10:24:36 · 162 阅读 · 0 评论 -
CodeForce 546D 素数筛+前缀和
DescriptionTwo soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one tries to make maximum possible numbe原创 2016-08-15 21:03:05 · 274 阅读 · 0 评论 -
UVA 10200
Problem DescriptionEuler is a well-known matematician, and, among many other things, he discovered that the formulan2 + n+41 produces a prime for 0 ≤ n < 40. For n = 40, the formula produces 1681,原创 2016-08-15 17:19:13 · 217 阅读 · 0 评论 -
hdu 1155 Bungee Jumping
Bungee JumpingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1181 Accepted Submission(s): 507Problem DescriptionOnce aga原创 2016-08-15 16:08:38 · 244 阅读 · 0 评论 -
LightOJ 1104
DescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What i原创 2016-08-15 15:58:01 · 318 阅读 · 0 评论 -
LightOJ 1294
DescriptionGiven 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 mintegers and make their sign negat原创 2016-08-24 09:12:37 · 211 阅读 · 0 评论