Codeforces Beta Round 47

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
50 Codeforces Beta Round 47 FINISHED False 7200 483543622 Dec. 20, 2010, 4:20 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 705 ) D Bombing PROGRAMMING binary search dp probabilities 2100

The commanding officers decided to drop a nuclear bomb on the enemy's forces. You are ordered to determine the power of the warhead that needs to be used. The enemy has N strategically important objects. Their positions are known due to the intelligence service. The aim of the strike is to deactivate at least K important objects of the enemy. The bombing impact point is already determined and has coordinates of X 0 ; Y 0 . The nuclear warhead is marked by the estimated impact radius R ≥ 0 . All the buildings that are located closer than R to the bombing epicentre will be destroyed. All the buildings that are located further than R from the epicentre, can also be deactivated with some degree of probability. Let's assume that D is the distance between a building and the epicentre. This building's deactivation probability P ( D , R ) is calculated according to the following formula: If the estimated impact radius of the warhead is equal to zero, then all the buildings located in the impact point will be completely demolished and all the rest of important objects will not be damaged. The commanding officers want the probability of failing the task to be no more than ε . Nuclear warheads are too expensive a luxury, that's why you have to minimise the estimated impact radius of the warhead. The first line contains an integer N which represents the number of the enemy's objects ( 1 ≤ N ≤ 100 ). The second line contains two integers: K is the required number of deactivated objects, and ε is the maximally permitted probability of not completing the task, given in per mils ( 1 ≤ K ≤ N , 1 ≤ ε ≤ 999 ). The third line contains X 0 and Y 0 which are the coordinates of the strike impact point. The next N lines contain two numbers X i and Y i each which are the coordinates of every strategically important object. All the coordinates are integer, their absolute values do not exceed 1000 . Let us remind you that there are a thousand per mils in unity (number one). Ther

Tutorials

Codeforces #47 problem solutions

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64774299 luogu_bot1 D Nov. 13, 2019, 2:55 a.m. OK FPC TESTS 99 92 2764800 2100
40993279 ReaLNero1 D July 31, 2018, 1:52 a.m. OK GNU C++ TESTS 99 62 204800 2100
37103503 vjudge2 D April 8, 2018, 3:37 p.m. OK GNU C++ TESTS 99 62 3481600 2100
59412891 rainboy D Aug. 24, 2019, 4:40 p.m. OK GNU C11 TESTS 99 62 0 2100
33466157 EmanuelNrx D Dec. 20, 2017, 8:57 p.m. OK GNU C++11 TESTS 99 30 2252800 2100
34123222 theodor.moroianu D Jan. 13, 2018, 9:18 a.m. OK GNU C++11 TESTS 99 60 2150400 2100
50292483 vjudge1 D Feb. 21, 2019, 6:15 p.m. OK GNU C++11 TESTS 99 62 0 2100
48438822 _23333 D Jan. 16, 2019, 12:16 a.m. OK GNU C++11 TESTS 99 62 102400 2100
45981703 vjudge3 D Nov. 20, 2018, 12:45 a.m. OK GNU C++11 TESTS 99 62 102400 2100
57906911 lopare D July 28, 2019, 6 p.m. OK GNU C++11 TESTS 99 62 102400 2100
47039205 Itst D Dec. 15, 2018, 1:51 p.m. OK GNU C++11 TESTS 99 62 204800 2100
47039187 Itst D Dec. 15, 2018, 1:51 p.m. OK GNU C++11 TESTS 99 62 204800 2100
50260231 Byakko D Feb. 20, 2019, 11:30 p.m. OK GNU C++11 TESTS 99 62 204800 2100
43114812 vjudge4 D Sept. 20, 2018, 1:16 p.m. OK GNU C++11 TESTS 99 62 307200 2100
32969454 Toxel D Dec. 6, 2017, 8:30 a.m. OK GNU C++14 TESTS 99 30 1843200 2100
33594522 Infinite_Stars D Dec. 24, 2017, 1:40 p.m. OK GNU C++14 TESTS 99 30 2048000 2100
31933995 mr_knownothing D Oct. 31, 2017, 9:17 p.m. OK GNU C++14 TESTS 99 60 102400 2100
49921754 Hahahahahahahhahaha D Feb. 14, 2019, 7:17 p.m. OK GNU C++14 TESTS 99 62 0 2100
48492471 rawatds D Jan. 17, 2019, 11:32 a.m. OK GNU C++14 TESTS 99 62 0 2100
50546726 Ada.Grad.Shil D Feb. 26, 2019, 10:09 p.m. OK GNU C++14 TESTS 99 62 0 2100
57318281 vjudge2 D July 19, 2019, 8:59 a.m. OK GNU C++14 TESTS 99 62 102400 2100
50211715 vjudge5 D Feb. 20, 2019, 12:41 a.m. OK GNU C++14 TESTS 99 62 204800 2100
50211570 vjudge2 D Feb. 20, 2019, 12:29 a.m. OK GNU C++14 TESTS 99 62 204800 2100
30270513 atrophy98 D Sept. 11, 2017, 5 p.m. OK GNU C++14 TESTS 99 62 204800 2100
38088080 ruo D May 10, 2018, 9:49 a.m. OK GNU C++17 TESTS 99 60 3481600 2100
54016023 kenimo D May 12, 2019, 6:44 a.m. OK GNU C++17 TESTS 99 62 0 2100
51991626 vjudge3 D March 29, 2019, 8:32 p.m. OK GNU C++17 TESTS 99 62 102400 2100
51566678 tnakao D March 20, 2019, 10:01 a.m. OK GNU C++17 TESTS 99 62 102400 2100
50260259 vjudge3 D Feb. 20, 2019, 11:33 p.m. OK GNU C++17 TESTS 99 62 102400 2100
57314853 vjudge1 D July 19, 2019, 7:51 a.m. OK GNU C++17 TESTS 99 62 102400 2100
57340925 vjudge2 D July 19, 2019, 6:27 p.m. OK GNU C++17 TESTS 99 62 102400 2100
69483979 programmer228 D Jan. 24, 2020, 6:46 p.m. OK GNU C++17 TESTS 99 62 307200 2100
48089495 shenzhentong D Jan. 8, 2019, 1:02 p.m. OK GNU C++17 TESTS 99 62 409600 2100
45990181 vjudge4 D Nov. 20, 2018, 9:16 a.m. OK GNU C++17 TESTS 99 62 409600 2100
35883129 _____i_____ D March 3, 2018, 12:50 p.m. OK Haskell TESTS 99 62 53248000 2100
35884346 ______u______ D March 3, 2018, 1:09 p.m. OK Haskell TESTS 99 62 53248000 2100
35884251 ______n______ D March 3, 2018, 1:09 p.m. OK Haskell TESTS 99 62 53248000 2100
35883498 _____k_____ D March 3, 2018, 12:56 p.m. OK Haskell TESTS 99 62 53248000 2100
35872732 ______h______ D March 3, 2018, 7:16 a.m. OK Haskell TESTS 99 62 53248000 2100
35872590 ______k______ D March 3, 2018, 7:14 a.m. OK Haskell TESTS 99 62 53248000 2100
35872073 ______i______ D March 3, 2018, 7:04 a.m. OK Haskell TESTS 99 62 53248000 2100
35870167 ______M______ D March 3, 2018, 6:22 a.m. OK Haskell TESTS 99 62 53248000 2100
56015897 sorry_im_smurfing D June 24, 2019, 9:08 p.m. OK Haskell TESTS 99 92 102400 2100
58607224 yltx D Aug. 11, 2019, 1:53 p.m. OK Haskell TESTS 99 122 102400 2100
59412845 Dukkha D Aug. 24, 2019, 4:39 p.m. OK Java 8 TESTS 99 312 0 2100
43114794 vjudge3 D Sept. 20, 2018, 1:15 p.m. OK MS C++ TESTS 99 62 307200 2100
43179652 vjudge3 D Sept. 21, 2018, 12:52 p.m. OK MS C++ TESTS 99 62 614400 2100
45255323 wangkan2001 D Nov. 3, 2018, 7:20 p.m. OK PyPy 2 TESTS 99 310 1024000 2100

remove filters

Back to search problems