Codeforces Round 262 (Div. 2)

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
460 Codeforces Round 262 (Div. 2) FINISHED False 7200 328890587 Aug. 20, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 344 ) E Roland and Rose PROGRAMMING brute force geometry math sortings 2700

B"Roland loves growing flowers. He has recently grown a beautiful rose at point (0, xe2 x80 x890) of the Cartesian coordinate system. The rose is so beautiful that Roland is afraid that the evil forces can try and steal it. To protect the rose, Roland wants to build n watch towers. Let's assume that a tower is a point on the plane at the distance of at most r from the rose. Besides, Roland assumes that the towers should be built at points with integer coordinates and the sum of squares of distances between all pairs of towers must be as large as possible. Note, that Roland may build several towers at the same point, also he may build some of them at point (0, xe2 x80 x890). Help Roland build the towers at the integer points so that the sum of squares of distances between all towers is maximum possible. Note that the distance in this problem is defined as the Euclidian distance between points. The first line contains two integers, n and r (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x898; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8930). In the first line print an integer -- the maximum possible sum of squared distances. In the i-th of the following n lines print two integers, xi, xe2 x80 x89yi -- the coordinates of the i-th tower. Each tower must be inside or on the border of the circle with radius r. Note that there may be several towers located at the same point of the plane, also some towers can be located at point (0, xe2 x80 x890). If there are multiple valid optimal arrangements, choose any of them."...

Tutorials

13465

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40988087 ReaLNero1 E July 30, 2018, 9:44 p.m. OK GNU C++ TESTS 51 31 0 2700
31159973 zhzh2001 E Oct. 9, 2017, 6:01 a.m. OK GNU C++ TESTS 51 31 0 2700
31159955 vjudge4 E Oct. 9, 2017, 6 a.m. OK GNU C++ TESTS 51 31 0 2700
31158172 vjudge3 E Oct. 9, 2017, 3:15 a.m. OK GNU C++ TESTS 51 31 0 2700
31158168 nn020701 E Oct. 9, 2017, 3:15 a.m. OK GNU C++ TESTS 51 31 0 2700
31157832 vjudge5 E Oct. 9, 2017, 2:36 a.m. OK GNU C++ TESTS 51 31 0 2700
31157820 liangziqi E Oct. 9, 2017, 2:34 a.m. OK GNU C++ TESTS 51 31 0 2700
20360228 vjudge1 E Sept. 3, 2016, 11:49 a.m. OK GNU C++ TESTS 51 31 0 2700
12604258 vjudge1 E Aug. 19, 2015, 2:10 p.m. OK GNU C++ TESTS 51 31 0 2700
11590693 rxdoi E June 15, 2015, 5:34 a.m. OK GNU C++ TESTS 51 31 0 2700
12616258 ihave33cm E Aug. 20, 2015, 1:37 p.m. OK GNU C++11 TESTS 51 30 0 2700
58888688 luogu_bot5 E Aug. 16, 2019, 3:59 a.m. OK GNU C++11 TESTS 51 31 0 2700
52552896 xielinhan E April 10, 2019, 5:59 a.m. OK GNU C++11 TESTS 51 31 0 2700
12616276 ntu_vjudge_1 E Aug. 20, 2015, 1:39 p.m. OK GNU C++11 TESTS 51 31 0 2700
12478249 newbeginBKB E Aug. 12, 2015, 11:02 a.m. OK GNU C++11 TESTS 51 31 0 2700
11498145 yyh5900 E June 8, 2015, 1:17 p.m. OK GNU C++11 TESTS 51 31 0 2700
58889950 luogu_bot5 E Aug. 16, 2019, 5:03 a.m. OK GNU C++11 TESTS 51 31 204800 2700
58889936 luogu_bot3 E Aug. 16, 2019, 5:02 a.m. OK GNU C++11 TESTS 51 31 204800 2700
31160194 vjudge4 E Oct. 9, 2017, 6:14 a.m. OK GNU C++11 TESTS 51 31 1228800 2700
31160186 SW_Wind E Oct. 9, 2017, 6:14 a.m. OK GNU C++11 TESTS 51 31 1228800 2700
51246475 ccsu_cat_love_jiejie E March 13, 2019, 5:39 a.m. OK GNU C++14 TESTS 51 31 0 2700
31159198 vjudge1 E Oct. 9, 2017, 5:04 a.m. OK GNU C++14 TESTS 51 31 0 2700
31159180 timber_wanglu E Oct. 9, 2017, 5:03 a.m. OK GNU C++14 TESTS 51 31 0 2700
31157078 zhouyuyang E Oct. 9, 2017, 12:44 a.m. OK GNU C++14 TESTS 51 31 0 2700
51246386 ccsu_cat_love_jiejie E March 13, 2019, 5:35 a.m. OK GNU C++14 TESTS 51 31 307200 2700
54608975 ys1468362286 E May 25, 2019, 10:28 a.m. OK GNU C++14 TESTS 51 31 409600 2700
51258319 luowentao E March 13, 2019, 12:16 p.m. OK GNU C++14 TESTS 51 46 102400 2700
31160692 q234rty E Oct. 9, 2017, 6:43 a.m. OK GNU C++14 TESTS 51 46 204800 2700
67956938 mota_haathi E Dec. 30, 2019, 10:01 a.m. OK GNU C++14 TESTS 51 46 307200 2700
53816959 strawberrry E May 6, 2019, 11:09 a.m. OK GNU C++14 TESTS 51 62 102400 2700
59896040 ruo E Sept. 2, 2019, 12:09 p.m. OK GNU C++17 TESTS 51 46 0 2700
64513468 hjk1030 E Nov. 8, 2019, 9:43 a.m. OK GNU C++17 TESTS 51 46 102400 2700
66320446 chengzi E Dec. 5, 2019, 1:50 p.m. OK GNU C++17 TESTS 51 62 0 2700
69866573 ivanilos E Jan. 30, 2020, 8:43 p.m. OK GNU C++17 TESTS 51 420 73625600 2700
65918816 tap_tapii E Nov. 28, 2019, 3:36 p.m. OK GNU C++17 TESTS 51 1700 204800 2700
44736505 UncleGrandpa E Oct. 23, 2018, 1:02 p.m. OK GNU C++17 TESTS 51 2089 204800 2700
13110490 Martynas E Sept. 20, 2015, 6:41 a.m. OK Go TESTS 51 2308 102400 2700
20102445 8rfuz E Aug. 24, 2016, 9:27 a.m. OK MS C++ TESTS 51 62 18739200 2700
35577730 mjhun E Feb. 22, 2018, 3:58 p.m. OK Python 2 TESTS 51 61 5324800 2700
35577708 mjhun E Feb. 22, 2018, 3:57 p.m. OK Python 2 TESTS 51 62 5324800 2700
35873895 ______u______ E March 3, 2018, 7:40 a.m. OK Python 2 TESTS 51 2948 4915200 2700
35873609 ______n______ E March 3, 2018, 7:34 a.m. OK Python 2 TESTS 51 2948 4915200 2700
35873056 _____k_____ E March 3, 2018, 7:23 a.m. OK Python 2 TESTS 51 2948 4915200 2700
35872946 _____i_____ E March 3, 2018, 7:21 a.m. OK Python 2 TESTS 51 2948 4915200 2700
35863923 ______k______ E March 2, 2018, 10:57 p.m. OK Python 2 TESTS 51 2948 4915200 2700
35863904 ______h______ E March 2, 2018, 10:57 p.m. OK Python 2 TESTS 51 2948 4915200 2700
35863419 ______i______ E March 2, 2018, 10:46 p.m. OK Python 2 TESTS 51 2948 4915200 2700
35861914 ______M______ E March 2, 2018, 10:14 p.m. OK Python 2 TESTS 51 2948 4915200 2700

remove filters

Back to search problems