Codeforces Round 773 (Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1641 Codeforces Round 773 (Div. 1) FINISHED False 7200 86212199 Feb. 23, 2022, 10:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 101 ) F Covering Circle PROGRAMMING geometry

B'Sam started playing with round buckets in the sandbox, while also scattering pebbles. His mom decided to buy him a new bucket, so she needs to solve the following task. You are given n distinct points with integer coordinates A_1, A_2, ldots, A_n . All points were generated from the square [-10^8, 10^8] x [-10^8, 10^8] uniformly and independently. You are given positive integers k , l , such that k <= q l <= q n . You want to select a subsegment A_i, A_{i+1}, ldots, A_{i+l-1} of the points array (for some 1 <= q i <= q n + 1 - l ), and some circle on the plane, containing geq k points of the selected subsegment (inside or on the border). What is the smallest possible radius of that circle? Each test contains multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Descriptions of test cases follow. The first line of each test case contains three integers n , l , k ( 2 <= q k <= q l <= q n <= q 50 ,000 , k <= q 20 ). Each of the next n lines contains two integers x_i , y_i ( -10^8 <= q x_i, y_i <= q 10^8 ) -- the coordinates of the point A_i . It is guaranteed that all points are distinct and were generated independently from uniform distribution on [-10^8, 10^8] x [-10^8, 10^8] . It is guaranteed that the sum of n for all test cases does not exceed 50 ,000 . In the first test, points were not generated from the uniform distribution on [-10^8, 10^8] x [-10^8, 10^8] for simplicity. It is the only such test and your solution must pass it. Hacks are disabled in this problem. For each test case print a single real number -- the answer to the problem. Your answer will be considered correct if its absolute or relative error does not exceed 10^{-9} . Formally let your answer be a , jury answer be b . Your answer will be considered correct if'...

Tutorials

Codeforces Round #773 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
147488364 maroonrk F Feb. 23, 2022, 3:25 p.m. OK GNU C++17 (64) TESTS 38 2979 57856000
147487635 maroonrk F Feb. 23, 2022, 3:18 p.m. OK GNU C++17 (64) TESTS 38 3993 65228800
147528933 xay5421 F Feb. 24, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 38 4227 6144000
147487709 maroonrk F Feb. 23, 2022, 3:19 p.m. OK GNU C++17 (64) TESTS 38 4289 37580800
147487448 maroonrk F Feb. 23, 2022, 3:17 p.m. OK GNU C++17 (64) TESTS 38 4430 30310400
147487273 maroonrk F Feb. 23, 2022, 3:15 p.m. OK GNU C++17 (64) TESTS 38 4976 30208000
147487511 maroonrk F Feb. 23, 2022, 3:17 p.m. OK GNU C++17 (64) TESTS 38 5678 174387200
147487566 maroonrk F Feb. 23, 2022, 3:18 p.m. OK GNU C++17 (64) TESTS 38 5958 9625600
147527510 Alan233 F Feb. 24, 2022, 2:57 a.m. OK GNU C++20 (64) TESTS 38 4539 3891200
147525479 ZongDeChuangSiYiGeBa F Feb. 24, 2022, 2:04 a.m. OK GNU C++20 (64) TESTS 38 4554 6144000
147473910 ksun48 F Feb. 23, 2022, 1:20 p.m. OK GNU C++20 (64) TESTS 38 4570 7372800
147527318 Alan233 F Feb. 24, 2022, 2:52 a.m. OK GNU C++20 (64) TESTS 38 4617 3891200
147473584 ksun48 F Feb. 23, 2022, 1:18 p.m. OK GNU C++20 (64) TESTS 38 4648 7372800
147463572 tourist F Feb. 23, 2022, 12:05 p.m. OK GNU C++20 (64) TESTS 38 4664 6246400
147474513 ksun48 F Feb. 23, 2022, 1:25 p.m. OK GNU C++20 (64) TESTS 38 5101 7577600
147527224 Alan233 F Feb. 24, 2022, 2:50 a.m. OK GNU C++20 (64) TESTS 38 5116 3891200
147527298 Alan233 F Feb. 24, 2022, 2:51 a.m. OK GNU C++20 (64) TESTS 38 5226 3891200
147527204 Alan233 F Feb. 24, 2022, 2:49 a.m. OK GNU C++20 (64) TESTS 38 5272 3891200

remove filters

Back to search problems