Codeforces Round 109 (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
154 Codeforces Round 109 (Div. 1) FINISHED False 7200 446310023 Feb. 24, 2012, 3 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 112 ) E Martian Colony PROGRAMMING geometry 2900

The first ship with the Earth settlers landed on Mars. The colonists managed to build n necessary structures on the surface of the planet (which can be regarded as a plane, and the construction can be regarded as points on it). But one day the scanners recorded suspicious activity on the outskirts of the colony. It was decided to use the protective force field generating system to protect the colony against possible trouble. The system works as follows: the surface contains a number of generators of the field (they can also be considered as points). The active range of each generator is a circle of radius r centered at the location of the generator (the boundary of the circle is also included in the range). After the system is activated, it stretches the protective force field only over the part of the surface, which is within the area of all generators' activity . That is, the protected part is the intersection of the generators' active ranges. The number of generators available to the colonists is not limited, but the system of field generation consumes a lot of energy. More precisely, the energy consumption does not depend on the number of generators, but it is directly proportional to the area , which is protected by the field. Also, it is necessary that all the existing buildings are located within the protected area. Determine the smallest possible area of the protected part of the surface containing all the buildings. The first line contains two integers n and r ( 1 ≤ n ≤ 10 5 , 1 ≤ r ≤ 50000 ) — the number of buildings and the active ranges of the generators, correspondingly. Next n lines contains the buildings' coordinates. The i + 1 -th ( 1 ≤ i ≤ n ) line contains two real numbers with at most three digits after the decimal point x i and y i ( | x i |, | y i | ≤ 50000 ) — coordinates of the i -th building. It is guaranteed that no two buildings are located at the same point, and no two different buildings are located closer than 1 . It is guarant

Tutorials

Codeforces Round #109: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
1238494 coolinging E Feb. 27, 2012, 8:21 a.m. OK FPC TESTS 28 200 6348800 2900
1239419 sillycross E Feb. 27, 2012, 2:57 p.m. OK FPC TESTS 28 220 8908800 2900
1238520 zanoes E Feb. 27, 2012, 8:43 a.m. OK FPC TESTS 28 230 20377600 2900
40991809 ReaLNero1 E July 31, 2018, 12:53 a.m. OK FPC TESTS 28 342 9728000 2900
1650512 blackapple E May 3, 2012, 9:27 a.m. OK FPC TESTS 28 380 10854400 2900
11270363 Amr_Hassan E May 25, 2015, 8:46 p.m. OK GNU C TESTS 28 374 3174400 2900
1290295 kelvinlau E March 5, 2012, 11:28 a.m. OK GNU C TESTS 28 450 4608000 2900
1290329 kelvinlau E March 5, 2012, 11:37 a.m. OK GNU C TESTS 28 480 4608000 2900
1290476 kelvinlau E March 5, 2012, 12:14 p.m. OK GNU C TESTS 28 480 5017600 2900
35840701 ______n______ E March 2, 2018, 2:21 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35840696 ______u______ E March 2, 2018, 2:21 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35840372 _____k_____ E March 2, 2018, 2:15 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35840365 _____i_____ E March 2, 2018, 2:15 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35835547 ______k______ E March 2, 2018, 12:34 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35835544 ______h______ E March 2, 2018, 12:34 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35834997 ______i______ E March 2, 2018, 12:17 p.m. OK GNU C++ TESTS 28 278 7475200 2900
35831339 ______M______ E March 2, 2018, 9:43 a.m. OK GNU C++ TESTS 28 278 7475200 2900
6660717 gjh E May 20, 2014, 5:04 a.m. OK GNU C++ TESTS 28 280 5939200 2900
5702769 crx E Jan. 16, 2014, 11:46 a.m. OK GNU C++ TESTS 28 280 9011200 2900
54498090 WOSHIGEPACHONG2 E May 22, 2019, 6:52 p.m. OK GNU C++11 TESTS 28 60 4915200 2900
44902472 1919810 E Oct. 26, 2018, 9:46 a.m. OK GNU C++11 TESTS 28 92 4915200 2900
44896151 251 E Oct. 26, 2018, 6:43 a.m. OK GNU C++11 TESTS 28 218 4403200 2900
57902533 lopare E July 28, 2019, 4:15 p.m. OK GNU C++11 TESTS 28 248 5427200 2900
17029988 McGinn E March 30, 2016, 8:17 a.m. OK GNU C++11 TESTS 28 278 7577600 2900
44781506 sagitta_luminis E Oct. 24, 2018, 4:40 p.m. OK GNU C++11 TESTS 28 280 8396800 2900
17121524 freebsdx E April 2, 2016, 2:24 a.m. OK GNU C++11 TESTS 28 404 4403200 2900
44900439 samjia2000 E Oct. 26, 2018, 8:51 a.m. OK GNU C++11 TESTS 28 404 26009600 2900
18965809 Y_UME E July 8, 2016, 8:55 a.m. OK GNU C++11 TESTS 28 468 7987200 2900
44899476 samjia2000 E Oct. 26, 2018, 8:23 a.m. OK GNU C++11 TESTS 28 3056 29286400 2900
60376416 Scut82 E Sept. 11, 2019, 6:48 a.m. OK GNU C++14 TESTS 28 404 1638400 2900
60385642 Scut82 E Sept. 11, 2019, 11:23 a.m. OK GNU C++14 TESTS 28 434 1638400 2900
55997001 Scut82 E June 24, 2019, 11:01 a.m. OK GNU C++14 TESTS 28 434 1638400 2900
55996701 Scut82 E June 24, 2019, 10:51 a.m. OK GNU C++14 TESTS 28 434 6451200 2900
39814549 orbitingflea E July 1, 2018, 7:20 a.m. OK GNU C++14 TESTS 28 528 3686400 2900
39814572 orbitingflea E July 1, 2018, 7:21 a.m. OK GNU C++14 TESTS 28 530 3686400 2900
36131582 Belonogov E March 9, 2018, 10:11 p.m. OK GNU C++14 TESTS 28 560 7475200 2900
23670240 Ali.Pi E Jan. 9, 2017, 7:53 p.m. OK GNU C++14 TESTS 28 654 9932800 2900
37480721 kut_kjb1994 E April 20, 2018, 8:24 a.m. OK GNU C++14 TESTS 28 654 13312000 2900
67273227 ElangBondol E Dec. 20, 2019, 9:10 a.m. OK GNU C++14 TESTS 28 778 13824000 2900
60564437 Benq E Sept. 14, 2019, 2:58 p.m. OK GNU C++17 TESTS 28 716 13824000 2900
60563035 Benq E Sept. 14, 2019, 2:52 p.m. OK GNU C++17 TESTS 28 716 13824000 2900
43561224 xuanquang1999 E Sept. 29, 2018, 9:07 a.m. OK GNU C++17 TESTS 28 2744 4915200 2900
1879462 Astekinane E July 9, 2012, 4:15 p.m. OK MS C++ TESTS 28 2410 15974400 2900

remove filters

Back to search problems