![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces(binary search)
csdn_PatrickStar
这个作者很懒,什么都没留下…
展开
-
Magic Powder - 1
This problem is given in two versions that differ only by constraints. If you can solve this problem in large constraints, then you can just write a single solution to the both versions. If you find t...原创 2019-01-07 22:03:10 · 165 阅读 · 0 评论 -
Vasya and String
High school student Vasya got a string of length n as a birthday present. This string consists of letters ‘a’ and ‘b’ only. Vasya denotes beauty of the string as the maximum length of a substring (con...原创 2019-01-07 22:10:09 · 166 阅读 · 0 评论 -
Valhalla Siege
Ivar the Boneless is a great leader. He is trying to capture Kattegat from Lagertha. The war has begun and wave after wave Ivar’s warriors are falling in battle.Ivar has n warriors, he places them on...原创 2019-01-07 22:09:21 · 216 阅读 · 0 评论 -
Enduring Exodus
In an attempt to escape the Mischievous Mess Makers’ antics, Farmer John has abandoned his farm and is traveling to the other side of Bovinia. During the journey, he and his k cows have decided to sta...原创 2019-01-07 22:08:31 · 188 阅读 · 0 评论 -
Really Big Numbers
Ivan likes to learn different things about numbers, but he is especially interested in really big numbers. Ivan thinks that a positive integer number x is really big if the difference between x and th...原创 2019-01-07 22:07:38 · 298 阅读 · 0 评论 -
Kefa and Company
Kefa wants to celebrate his first big salary by going to restaurant. However, he needs company.Kefa has n friends, each friend will agree to go to the restaurant if Kefa asks. Each friend is characte...原创 2019-01-07 22:06:45 · 239 阅读 · 0 评论 -
Number of Triplets
You are given n points on a plane. All points are different.Find the number of different groups of three points (A, B, C) such that point B is the middle of segment AC.The groups of three points are...原创 2019-01-07 22:05:57 · 245 阅读 · 0 评论 -
Hamburgers
Polycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three decent ingredients to make hamburgers from: a bread,...原创 2019-01-07 22:04:59 · 529 阅读 · 0 评论 -
Magic Powder - 2
The term of this problem is the same as the previous one, the only exception — increased restrictions.InputThe first line contains two positive integers n and k (1 ≤ n ≤ 100 000, 1 ≤ k ≤ 109) — the ...原创 2019-01-07 22:04:00 · 122 阅读 · 0 评论 -
Primes on Interval
You’ve decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has exactly two distinct positive integer divisors.Consider posit...原创 2019-01-08 22:29:51 · 208 阅读 · 0 评论