
cf
文章平均质量分 90
ljw0925
这个作者很懒,什么都没留下…
展开
-
cf1478C Nezzar and Symmetric Array
Long time ago there was a symmetric array a1,a2,…,a2n consisting of 2n distinct integers. Array a1,a2,…,a2n is called symmetric if for each integer 1≤i≤2n, there exists an integer 1≤j≤2n such that ai=−aj.For each integer 1≤i≤2n, Nezzar wrote down an integ原创 2021-01-29 13:37:43 · 396 阅读 · 1 评论 -
cf1475C. Ball in Berland
At the school where Vasya is studying, preparations are underway for the graduation ceremony. One of the planned performances is a ball, which will be attended by pairs of boys and girls.Each class must present two couples to the ball. In Vasya’s class, a原创 2021-01-26 13:00:20 · 374 阅读 · 0 评论 -
cf-678div2-C.Binary Search
C. Binary SearchAndrey thinks he is truly a successful developer, but in reality he didn’t know about the binary search algorithm until recently. After reading some literature Andrey understood that this algorithm allows to quickly find a certain number x原创 2020-10-25 15:58:43 · 304 阅读 · 0 评论 -
CodeForces - 1201C. Maximum Median
You are given an array a of n integers, where n is odd. You can make the following operation with it:Choose one of the elements of the array (for example ai) and increase it by 1 (that is, replace it with ai+1).You want to make the median of the array th原创 2020-10-10 15:34:37 · 315 阅读 · 0 评论 -
Codeforces Round #675 (Div. 2) B. Nice Matrix
B. Nice Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA matrix of size n×m is called nice, if all rows and columns of the matrix are palindromes. A sequence of integers (a1,a2,…,ak) is a pal原创 2020-10-09 19:57:44 · 176 阅读 · 0 评论 -
Codeforces Round #577 (Div. 2)A.Fence
A. Fencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYura is tasked to build a closed fence in shape of an arbitrary non-degenerate simple quadrilateral. He’s already got three straight fence seg原创 2020-10-09 19:36:25 · 222 阅读 · 0 评论 -
CF-1388B. Captain Flint and a Long Voyage-思维
B. Captain Flint and a Long Voyagetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCaptain Flint and his crew keep heading to a savage shore of Byteland for several months already, drinking rum and原创 2020-08-01 23:06:03 · 482 阅读 · 0 评论