Codeforces Round 469 (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
949 Codeforces Round 469 (Div. 1) FINISHED False 9000 255822623 March 9, 2018, 8:10 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 63 ) F Astronomy PROGRAMMING geometry probabilities 3200

Year 18 AD. Famous astronomer Philon the Berlander publishes a book "About Sky and Cosmos», in which he describes an incredible picture seen by him on a night sky while observing the skies. He once seen 2 n stars on a clear sky and the Moon. Surprisingly, it was possible to divide all stars in pairs in such way that any line passing through the centers of two paired stars also passed through the center of the Moon, also all such lines were distinct. Philon carefully represented such a situation on a sky map, introducing a coordinate system. While doing that, he noticed that centers of all stars and the center of the Moon are points with integer coordinates. As Philon thought that the Earth and the Moon were flat, his coordinate system was two-dimensional. Coordinate system was chosen by an astronomer in such way that the coordinates of all objects (including the Moon) are no more than 10 6 by the absolute value. Moreover, no two objects (two stars or a star and a Moon) were not located at the same point. Apart from the sky map Philon wrote a prediction that in 2000 years stars will take exactly the same places, but the Moon will be replaced by a huge comet which will destroy the Earth. It is 2018 AD now. You got a book of Philon the Berlander and you were horrified to discover that the stars on the sky are in exactly the same position as they were 2000 years ago! Unfortunately, some parts of a sky map were lost, so there are only star locations that are visible on it and there are no details about how the stars were divided in pairs. Moreover,, there is no point corresponding to the center of the Moon on this map. In order to find out the possible location of a comet and save the humanity from the terrible end, you should immediately find out some suitable location for the center of the Moon! In the first line of input there is an integer n ( 2 ≤ n ≤ 2600 ), the number of star pairs seen by an astronomer in the sky. In the following 2 n lines there are pai

Tutorials

58291

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50589806 0202 F Feb. 28, 2019, 6:43 a.m. OK GNU C++11 TESTS 101 3369 460492800 3200
55859526 stanislav.bezkorovainyi F June 21, 2019, 8:49 a.m. OK GNU C++11 TESTS 101 3821 434995200 3200
38022887 krijgertje F May 8, 2018, 2:09 p.m. OK GNU C++11 TESTS 101 4056 502374400 3200
38022858 krijgertje F May 8, 2018, 2:08 p.m. OK GNU C++11 TESTS 101 4118 502374400 3200
63489617 ZhongJQ F Oct. 26, 2019, 2:14 p.m. OK GNU C++11 TESTS 101 4195 217395200 3200
55859470 stanislav.bezkorovainyi F June 21, 2019, 8:48 a.m. OK GNU C++11 TESTS 101 4211 434995200 3200
38023308 krijgertje F May 8, 2018, 2:28 p.m. OK GNU C++11 TESTS 101 4336 502374400 3200
38022728 krijgertje F May 8, 2018, 2:03 p.m. OK GNU C++11 TESTS 101 4352 502374400 3200
57870211 lopare F July 28, 2019, 1:06 a.m. OK GNU C++11 TESTS 101 4383 51404800 3200
38022434 krijgertje F May 8, 2018, 1:52 p.m. OK GNU C++11 TESTS 101 4461 464281600 3200
36123882 Timm27 F March 9, 2018, 4:37 p.m. OK GNU C++14 TESTS 101 3306 111001600 3200
36123824 Timm27 F March 9, 2018, 4:35 p.m. OK GNU C++14 TESTS 101 3306 111001600 3200
36291758 MadCoding F March 15, 2018, 6:42 a.m. OK GNU C++14 TESTS 101 3353 111104000 3200
40932701 ReaLNero1 F July 30, 2018, 1:58 a.m. OK GNU C++14 TESTS 101 3384 109158400 3200
36528413 acIN1go F March 23, 2018, 11:20 a.m. OK GNU C++14 TESTS 101 3384 112435200 3200
59688663 Scut82 F Aug. 30, 2019, 4:07 a.m. OK GNU C++14 TESTS 101 3494 294912000 3200
58110343 Scut82 F Aug. 1, 2019, 6:50 a.m. OK GNU C++14 TESTS 101 3634 218214400 3200
59686312 Scut82 F Aug. 30, 2019, 1:54 a.m. OK GNU C++14 TESTS 101 3790 437145600 3200
36118810 voidmax F March 9, 2018, 1:47 p.m. OK GNU C++14 TESTS 101 3884 516403200 3200
36143334 voidmax F March 10, 2018, 8:19 a.m. OK GNU C++14 TESTS 101 4008 516403200 3200
69880438 gongsuidashen F Jan. 31, 2020, 6:08 a.m. OK GNU C++17 TESTS 101 2885 109158400 3200
36207383 Aleksandr2754 F March 11, 2018, 5:54 p.m. OK GNU C++17 TESTS 101 3775 345702400 3200
55181082 .__. F June 5, 2019, 10:22 p.m. OK GNU C++17 TESTS 101 3915 525619200 3200
55180890 .__. F June 5, 2019, 10:08 p.m. OK GNU C++17 TESTS 101 3993 525619200 3200
55181310 .__. F June 5, 2019, 10:40 p.m. OK GNU C++17 TESTS 101 4008 438476800 3200
55180720 .__. F June 5, 2019, 9:58 p.m. OK GNU C++17 TESTS 101 4040 526336000 3200
37145621 okwedook F April 10, 2018, 1:25 p.m. OK GNU C++17 TESTS 101 4133 438476800 3200
44000821 redotter F Oct. 8, 2018, 1:38 p.m. OK GNU C++17 TESTS 101 4508 435609600 3200
36131974 jennymgarces F March 9, 2018, 10:39 p.m. OK GNU C++17 TESTS 101 4523 53452800 3200
36452587 TheGeoCoder F March 21, 2018, 11:43 a.m. OK GNU C++17 TESTS 101 4570 54988800 3200
36268616 Los_Angelos_Laycurse F March 14, 2018, 8:22 a.m. OK MS C++ TESTS 101 4742 360652800 3200

remove filters

Back to search problems