Educational Codeforces Round 73 (Rated for 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
1221 Educational Codeforces Round 73 (Rated for Div. 2) FINISHED False 7200 168535487 Sept. 19, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1077 ) F Choose a Square PROGRAMMING binary search data structures sortings 2500

B'Petya recently found a game "Choose a Square". In this game, there are n points numbered from 1 to n on an infinite field. The i -th point has coordinates (x_i, y_i) and cost c_i . You have to choose a square such that its sides are parallel to coordinate axes, the lower left and upper right corners belong to the line y = x , and all corners have integer coordinates. The score you get is the sum of costs of the points covered by the selected square minus the length of the side of the square. Note that the length of the side can be zero. Petya asks you to calculate the maximum possible score in the game that can be achieved by placing exactly one square. The first line of the input contains one integer n ( 1 <= n <= 5 cdot 10^5 ) -- the number of points on the field. Each of the following n lines contains three integers x_i, y_i, c_i ( 0 <= x_i, y_i <= 10^9, -10^6 <= c_i <= 10^6 ) -- coordinates of the i -th point and its cost, respectively. In the first line print the maximum score Petya can achieve. In the second line print four integers x_1, y_1, x_2, y_2 ( 0 <= x_1, y_1, x_2, y_2 <= 2 cdot 10^9, x_1 = y_1, x_2 = y_2, x_1 <= x_2 ) separated by spaces -- the coordinates of the lower left and upper right corners of the square which Petya has to select in order to achieve the maximum score. The field corresponding to the first example: '...

Tutorials

Разбор Educational Codeforces Round 73

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60899746 rainboy F Sept. 19, 2019, 8:32 p.m. OK GNU C11 TESTS 51 1216 51712000 2500
61093998 LittleBeetle F Sept. 23, 2019, 1:04 a.m. OK GNU C++11 TESTS 51 701 45875200 2500
61826357 ReaLNero1 F Oct. 4, 2019, 4:56 a.m. OK GNU C++11 TESTS 51 701 114483200 2500
60954147 dysyn1314 F Sept. 21, 2019, 1:13 a.m. OK GNU C++11 TESTS 51 717 114483200 2500
62374675 luogu_bot2 F Oct. 11, 2019, 4:52 p.m. OK GNU C++11 TESTS 51 733 112230400 2500
61348797 Xiejiadong F Sept. 27, 2019, 6:51 a.m. OK GNU C++11 TESTS 51 748 58163200 2500
61448537 bruno.iljazovic F Sept. 28, 2019, 11:31 p.m. OK GNU C++11 TESTS 51 764 38502400 2500
61024512 as2341567 F Sept. 21, 2019, 3:35 p.m. OK GNU C++11 TESTS 51 779 37888000 2500
61847730 Phantasy F Oct. 4, 2019, 11:49 a.m. OK GNU C++11 TESTS 51 795 40038400 2500
61847828 CQUzbx F Oct. 4, 2019, 11:51 a.m. OK GNU C++11 TESTS 51 795 40038400 2500
61448464 bruno.iljazovic F Sept. 28, 2019, 11:25 p.m. OK GNU C++11 TESTS 51 810 38502400 2500
61448517 bruno.iljazovic F Sept. 28, 2019, 11:29 p.m. OK GNU C++14 TESTS 51 904 38502400 2500
60961074 2683331518 F Sept. 21, 2019, 5:23 a.m. OK GNU C++14 TESTS 51 967 114585600 2500
61343526 BakaC1rno F Sept. 27, 2019, 2:04 a.m. OK GNU C++14 TESTS 51 982 112230400 2500
60933056 gina0605 F Sept. 20, 2019, 2:22 p.m. OK GNU C++14 TESTS 51 997 33280000 2500
60922950 heyuhhh F Sept. 20, 2019, 11:19 a.m. OK GNU C++14 TESTS 51 998 57344000 2500
60954892 xzt_2 F Sept. 21, 2019, 1:53 a.m. OK GNU C++14 TESTS 51 1013 108236800 2500
60905669 wleung_bvg F Sept. 20, 2019, 2:20 a.m. OK GNU C++14 TESTS 51 1075 60211200 2500
60946336 MarcosK F Sept. 20, 2019, 7:05 p.m. OK GNU C++14 TESTS 51 1076 58368000 2500
61244311 krijgertje F Sept. 24, 2019, 10:04 p.m. OK GNU C++14 TESTS 51 1076 110182400 2500
61452401 liuweih F Sept. 29, 2019, 4:08 a.m. OK GNU C++14 TESTS 51 1153 152268800 2500
61084979 forget F Sept. 22, 2019, 5:58 p.m. OK GNU C++17 TESTS 51 763 24064000 2500
60893626 Gregory F Sept. 19, 2019, 5:50 p.m. OK GNU C++17 TESTS 51 842 79257600 2500
60882954 Proxia F Sept. 19, 2019, 4:10 p.m. OK GNU C++17 TESTS 51 857 42803200 2500
60951515 F.J F Sept. 20, 2019, 10:07 p.m. OK GNU C++17 TESTS 51 873 135577600 2500
60883134 INVWVZ F Sept. 19, 2019, 4:11 p.m. OK GNU C++17 TESTS 51 889 57344000 2500
61244392 elManco F Sept. 24, 2019, 10:09 p.m. OK GNU C++17 TESTS 51 904 57241600 2500
61004892 gpf2333 F Sept. 21, 2019, 10:51 a.m. OK GNU C++17 TESTS 51 904 58163200 2500
61448525 bruno.iljazovic F Sept. 28, 2019, 11:30 p.m. OK GNU C++17 TESTS 51 919 38502400 2500
65097534 KrK F Nov. 15, 2019, 6:39 p.m. OK GNU C++17 TESTS 51 936 59596800 2500
60897809 saketh F Sept. 19, 2019, 7:36 p.m. OK GNU C++17 TESTS 51 951 58368000 2500
60897252 uwi F Sept. 19, 2019, 7:21 p.m. OK Java 8 TESTS 51 1481 48025600 2500
60905200 cwise F Sept. 20, 2019, 1:58 a.m. OK Java 8 TESTS 51 2963 152985600 2500
61568945 beginner1010 F Sept. 30, 2019, 5:59 p.m. OK Java 8 TESTS 51 3197 259072000 2500
61445556 brainfxxk F Sept. 28, 2019, 8:52 p.m. OK Java 8 TESTS 51 3416 230707200 2500
60899748 Dukkha F Sept. 19, 2019, 8:32 p.m. OK Java 8 TESTS 51 3680 115404800 2500
61371386 Suzukaze F Sept. 27, 2019, 3:08 p.m. OK Java 8 TESTS 51 3774 156672000 2500
61445492 brainfxxk F Sept. 28, 2019, 8:50 p.m. OK Java 8 TESTS 51 4102 260096000 2500
60888429 AryssonFigueiredo F Sept. 19, 2019, 4:34 p.m. OK Java 8 TESTS 51 4149 65433600 2500
61567043 beginner1010 F Sept. 30, 2019, 5:24 p.m. OK Java 8 TESTS 51 4476 259072000 2500
61886149 7dan F Oct. 5, 2019, 3:34 a.m. OK Java 8 TESTS 51 4695 259993600 2500
60893888 keymoon F Sept. 19, 2019, 5:55 p.m. OK Mono C# TESTS 51 5069 198246400 2500
62916664 vjudge2 F Oct. 19, 2019, 8:51 a.m. OK MS C++ TESTS 51 2386 202444800 2500
63614265 THTGAN F Oct. 27, 2019, 6:43 p.m. OK MS C++ 2017 TESTS 51 1388 110284800 2500
60918528 pichulia F Sept. 20, 2019, 9:28 a.m. OK MS C++ 2017 TESTS 51 1512 70451200 2500
60957809 siwei F Sept. 21, 2019, 3:46 a.m. OK MS C++ 2017 TESTS 51 1996 63488000 2500
60944009 sansen F Sept. 20, 2019, 6:09 p.m. OK Rust TESTS 51 2355 127385600 2500

remove filters

Back to search problems