Codeforces Round 573 (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
1190 Codeforces Round 573 (Div. 1) FINISHED False 7200 174497087 July 12, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 229 ) E Tokitsukaze and Explosion PROGRAMMING binary search greedy 3100

B"Tokitsukaze and her friends are trying to infiltrate a secret base built by Claris. However, Claris has been aware of that and set a bomb which is going to explode in a minute. Although they try to escape, they have no place to go after they find that the door has been locked. At this very moment, CJB, Father of Tokitsukaze comes. With his magical power given by Ereshkigal, the goddess of the underworld, CJB is able to set m barriers to protect them from the explosion. Formally, let's build a Cartesian coordinate system on the plane and assume the bomb is at O(0, 0) . There are n persons in Tokitsukaze's crew, the i -th one of whom is at P_i(X_i, Y_i) . Every barrier can be considered as a line with infinity length and they can intersect each other. For every person from Tokitsukaze's crew, there must be at least one barrier separating the bomb and him, which means the line between the bomb and him intersects with at least one barrier. In this definition, if there exists a person standing at the position of the bomb, any line through O(0, 0) will satisfy the requirement. Although CJB is very powerful, he still wants his barriers to be as far from the bomb as possible, in order to conserve his energy. Please help him calculate the maximum distance between the bomb and the closest barrier while all of Tokitsukaze's crew are safe. The first line contains two integers n , m ( 1 <= q n, m <= q 10^5 ), indicating the number of people and the number of barriers respectively. The i -th line of the next n lines contains two integers X_i , Y_i ( -10^5 <= q X_i, Y_i <= q 10^5 ), indicating the i -th person's location P_i(X_i, Y_i) . Note that P_i may have the same coordinates as P_j ( j neq i ) or even O . Print a single real number -- the maximum distance meeting the requirement. Your answer is considered correct if its absolute or relative error does not exce"...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57000157 waaadreamer E July 14, 2019, 2:53 a.m. OK GNU C++11 TESTS 151 795 13721600 3100
57865133 lopare E July 27, 2019, 8:27 p.m. OK GNU C++11 TESTS 151 842 7987200 3100
57612831 py_ultron E July 23, 2019, 10:23 p.m. OK GNU C++11 TESTS 151 842 7987200 3100
57824628 AloneKnight E July 27, 2019, 2:13 a.m. OK GNU C++11 TESTS 151 858 7987200 3100
61527320 fzcsyglq E Sept. 30, 2019, midnight OK GNU C++11 TESTS 151 1169 24064000 3100
58062865 PinkEx E July 31, 2019, 8 a.m. OK GNU C++11 TESTS 151 1170 24064000 3100
66485561 cuizhuyefei E Dec. 8, 2019, 6:09 a.m. OK GNU C++11 TESTS 151 1185 26726400 3100
56969161 DeaphetS E July 13, 2019, 9:29 a.m. OK GNU C++11 TESTS 151 1201 25702400 3100
57982593 _twilight E July 30, 2019, 9:59 a.m. OK GNU C++11 TESTS 151 1231 34304000 3100
57576845 ArgentDawn E July 23, 2019, 7:22 a.m. OK GNU C++11 TESTS 151 1310 10649600 3100
56960401 ecnerwala E July 13, 2019, 6:22 a.m. OK GNU C++14 TESTS 148 577 11059200 3100
56960359 ecnerwala E July 13, 2019, 6:21 a.m. OK GNU C++14 TESTS 148 639 11059200 3100
56960333 ecnerwala E July 13, 2019, 6:21 a.m. OK GNU C++14 TESTS 148 639 11059200 3100
56957846 ecnerwala E July 13, 2019, 5:29 a.m. OK GNU C++14 TESTS 148 654 9216000 3100
56959813 ecnerwala E July 13, 2019, 6:09 a.m. OK GNU C++14 TESTS 148 654 11059200 3100
56955994 ecnerwala E July 13, 2019, 4:45 a.m. OK GNU C++14 TESTS 148 670 9113600 3100
56959051 ecnerwala E July 13, 2019, 5:52 a.m. OK GNU C++14 TESTS 148 685 9216000 3100
57021894 Addictos E July 14, 2019, 2:28 p.m. OK GNU C++14 TESTS 151 904 7987200 3100
56987147 nhho E July 13, 2019, 4:19 p.m. OK GNU C++14 TESTS 151 1107 16896000 3100
56978421 tmwilliamlin168 E July 13, 2019, 1:02 p.m. OK GNU C++14 TESTS 151 1201 21913600 3100
56964328 neal E July 13, 2019, 7:49 a.m. OK GNU C++17 TESTS 151 436 6451200 3100
56964177 neal E July 13, 2019, 7:46 a.m. OK GNU C++17 TESTS 151 483 6451200 3100
56963174 neal E July 13, 2019, 7:24 a.m. OK GNU C++17 TESTS 151 514 7270400 3100
56962777 neal E July 13, 2019, 7:14 a.m. OK GNU C++17 TESTS 151 529 8396800 3100
56958426 neal E July 13, 2019, 5:40 a.m. OK GNU C++17 TESTS 148 530 8396800 3100
56958302 neal E July 13, 2019, 5:38 a.m. OK GNU C++17 TESTS 148 545 8396800 3100
57296047 saketh E July 18, 2019, 7:17 p.m. OK GNU C++17 TESTS 151 857 7680000 3100
56984049 TrivialMan E July 13, 2019, 3:08 p.m. OK GNU C++17 TESTS 151 935 7987200 3100
56984373 TrivialMan E July 13, 2019, 3:15 p.m. OK GNU C++17 TESTS 151 936 7987200 3100
56971473 Zarxdy34 E July 13, 2019, 10:28 a.m. OK GNU C++17 TESTS 151 997 5324800 3100

remove filters

Back to search problems