Educational Codeforces Round 124 (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
1651 Educational Codeforces Round 124 (Rated for Div. 2) FINISHED False 7200 90343463 March 10, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5300 ) D Nearest Excluded Points PROGRAMMING binary search data structures dfs and similar graphs shortest paths

B'You are given n distinct points on a plane. The coordinates of the i -th point are (x_i, y_i) . For each point i , find the nearest (in terms of Manhattan distance) point with integer coordinates that is not among the given n points. If there are multiple such points -- you can choose any of them. The Manhattan distance between two points (x_1, y_1) and (x_2, y_2) is |x_1 - x_2| + |y_1 - y_2| . The first line of the input contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of points in the set. The next n lines describe points. The i -th of them contains two integers x_i and y_i ( 1 <= x_i, y_i <= 2 cdot 10^5 ) -- coordinates of the i -th point. It is guaranteed that all points in the input are distinct. Print n lines. In the i -th line, print the point with integer coordinates that is not among the given n points and is the nearest (in terms of Manhattan distance) to the i -th point from the input. Output coordinates should be in range [-10^6; 10^6] . It can be shown that any optimal answer meets these constraints. If there are several answers, you can print any of them. '...

Tutorials

Educational Codeforces Round 124 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
149177161 YOK D March 10, 2022, 5:24 p.m. OK GNU C11 TESTS 34 1201 7270400
149165283 leihonglongyin D March 10, 2022, 4:26 p.m. OK GNU C++14 TESTS 34 218 6451200
149179540 CCPSDCGK D March 10, 2022, 5:47 p.m. OK GNU C++14 TESTS 34 296 16179200
149166974 atao D March 10, 2022, 4:30 p.m. OK GNU C++14 TESTS 34 296 16588800
149214832 Szyang D March 11, 2022, 5:57 a.m. OK GNU C++14 TESTS 34 342 4812800
149168134 Szyovo D March 10, 2022, 4:32 p.m. OK GNU C++14 TESTS 34 405 4812800
149177210 YOK D March 10, 2022, 5:24 p.m. OK GNU C++14 TESTS 34 421 7168000
149204840 zhouxp D March 11, 2022, 3:19 a.m. OK GNU C++14 TESTS 34 483 21094400
149166395 Commonrain D March 10, 2022, 4:29 p.m. OK GNU C++14 TESTS 34 514 118169600
149169140 expecting D March 10, 2022, 4:34 p.m. OK GNU C++14 TESTS 34 529 16179200
149167301 expecting D March 10, 2022, 4:30 p.m. OK GNU C++14 TESTS 34 560 16179200
149168279 paxaq D March 10, 2022, 4:32 p.m. OK GNU C++17 TESTS 34 311 6656000
149213103 _Absurd_ D March 11, 2022, 5:34 a.m. OK GNU C++17 TESTS 34 311 23859200
149184699 ruhan.habib39 D March 10, 2022, 6:49 p.m. OK GNU C++17 TESTS 34 311 25088000
149199279 _C_H_M_ D March 11, 2022, 12:56 a.m. OK GNU C++17 TESTS 34 312 18432000
149174254 Suraj0500 D March 10, 2022, 5 p.m. OK GNU C++17 TESTS 34 342 13004800
149176069 totoro_Z D March 10, 2022, 5:14 p.m. OK GNU C++17 TESTS 34 343 4812800
149178249 party_up D March 10, 2022, 5:33 p.m. OK GNU C++17 TESTS 34 343 10752000
149169821 izlyforever D March 10, 2022, 4:34 p.m. OK GNU C++17 TESTS 34 373 13824000
149170876 zitraks D March 10, 2022, 4:39 p.m. OK GNU C++17 TESTS 34 373 18636800
149177379 ttsweet D March 10, 2022, 5:26 p.m. OK GNU C++17 TESTS 34 374 10137600
149164902 gs13031 D March 10, 2022, 4:26 p.m. OK GNU C++17 (64) TESTS 34 249 39424000
149199335 kal013 D March 11, 2022, 12:57 a.m. OK GNU C++17 (64) TESTS 34 312 19251200
149176462 Kyooma D March 10, 2022, 5:17 p.m. OK GNU C++17 (64) TESTS 34 326 15257600
149209304 pavankalyanpallapolu D March 11, 2022, 4:40 a.m. OK GNU C++17 (64) TESTS 34 405 14643200
149186159 sweetpotato2 D March 10, 2022, 7:09 p.m. OK GNU C++17 (64) TESTS 34 421 40652800
149199558 gqf123 D March 11, 2022, 1:04 a.m. OK GNU C++17 (64) TESTS 34 467 38604800
149208111 Time_JYF D March 11, 2022, 4:19 a.m. OK GNU C++17 (64) TESTS 34 577 44544000
149184958 FelixArg D March 10, 2022, 6:52 p.m. OK GNU C++17 (64) TESTS 34 608 37990400
149188667 prasantkpatel D March 10, 2022, 7:49 p.m. OK GNU C++17 (64) TESTS 34 638 27852800
149175186 wcwu D March 10, 2022, 5:07 p.m. OK GNU C++17 (64) TESTS 34 670 34508800
149199765 LuOH3 D March 11, 2022, 1:11 a.m. OK GNU C++20 (64) TESTS 34 342 16076800
149171513 tiagoshibata D March 10, 2022, 4:42 p.m. OK GNU C++20 (64) TESTS 34 374 28364800
149166880 magnus.hegdahl D March 10, 2022, 4:30 p.m. OK GNU C++20 (64) TESTS 34 420 35942400
149169089 cofonewbie D March 10, 2022, 4:34 p.m. OK GNU C++20 (64) TESTS 34 452 61952000
149175741 Zhukov_Dmitry D March 10, 2022, 5:11 p.m. OK GNU C++20 (64) TESTS 34 467 3993600
149207334 elManco D March 11, 2022, 4:06 a.m. OK GNU C++20 (64) TESTS 34 561 29081600
149191841 maspy D March 10, 2022, 8:47 p.m. OK GNU C++20 (64) TESTS 34 608 107315200
149191163 maspy D March 10, 2022, 8:33 p.m. OK GNU C++20 (64) TESTS 34 623 107315200
149194016 kaiboy D March 10, 2022, 9:38 p.m. OK GNU C++20 (64) TESTS 34 624 8806400
149210849 _Sunrise_ D March 11, 2022, 5:03 a.m. OK GNU C++20 (64) TESTS 34 639 18329600
149209557 Hrufnarwa D March 11, 2022, 4:43 a.m. OK Java 11 TESTS 34 982 33792000
149212622 Hrufnarwa D March 11, 2022, 5:27 a.m. OK Java 11 TESTS 34 1013 33689600
149170715 prezesstefan D March 10, 2022, 4:39 p.m. OK Java 11 TESTS 34 1076 67686400
149210219 Hrufnarwa D March 11, 2022, 4:53 a.m. OK Java 11 TESTS 34 1154 34304000
149212276 Hrufnarwa D March 11, 2022, 5:22 a.m. OK Java 11 TESTS 34 1388 33587200
149196380 Restricted D March 10, 2022, 10:52 p.m. OK Java 11 TESTS 34 1404 126566400
149212212 Hrufnarwa D March 11, 2022, 5:21 a.m. OK Java 11 TESTS 34 1497 31436800
149211581 Hrufnarwa D March 11, 2022, 5:13 a.m. OK Java 11 TESTS 34 1528 31539200
149184552 pras7946 D March 10, 2022, 6:46 p.m. OK Java 11 TESTS 34 1699 74342400
149166204 coding_sword D March 10, 2022, 4:28 p.m. OK Java 11 TESTS 34 1746 133324800
149180485 golions D March 10, 2022, 5:57 p.m. OK Java 8 TESTS 34 1902 105881600
149173012 aggarwalanshul01 D March 10, 2022, 4:51 p.m. OK Java 8 TESTS 34 2090 32665600
149212363 AndreySiunov D March 11, 2022, 5:23 a.m. OK Java 8 TESTS 34 3025 172134400
149214933 AndreySiunov D March 11, 2022, 5:58 a.m. OK Java 8 TESTS 34 3026 239820800
149200768 cfcfs D March 11, 2022, 1:43 a.m. OK Kotlin 1.4 TESTS 34 3930 66764800
149200819 cfcfs D March 11, 2022, 1:44 a.m. OK Kotlin 1.4 TESTS 34 3977 66764800
149165936 gs13023 D March 10, 2022, 4:28 p.m. OK MS C++ 2017 TESTS 34 530 16588800
149166462 maha1192 D March 10, 2022, 4:29 p.m. OK MS C++ 2017 TESTS 34 3166 78950400
149207929 Tdyx D March 11, 2022, 4:16 a.m. OK .NET Core C# TESTS 34 1310 72294400
149177646 codicon D March 10, 2022, 5:29 p.m. OK PyPy 3 TESTS 34 1045 62156800
149189649 DarkSparkle D March 10, 2022, 8:05 p.m. OK PyPy 3 TESTS 34 1341 36659200
149176117 ruimina D March 10, 2022, 5:14 p.m. OK PyPy 3 TESTS 34 1356 55193600
149180612 eepsilon D March 10, 2022, 5:59 p.m. OK PyPy 3 TESTS 34 1560 89702400
149167481 hwei002 D March 10, 2022, 4:31 p.m. OK PyPy 3 TESTS 34 1716 185856000
149199886 kuanc D March 11, 2022, 1:15 a.m. OK PyPy 3 TESTS 34 1793 67174400
149173908 hxu10 D March 10, 2022, 4:57 p.m. OK PyPy 3 TESTS 34 1902 160972800
149177846 sushmanth.dampur8780 D March 10, 2022, 5:29 p.m. OK PyPy 3 TESTS 34 1996 129024000
149177622 abc_2002 D March 10, 2022, 5:28 p.m. OK PyPy 3 TESTS 34 1996 129024000
149170947 hxu10 D March 10, 2022, 4:40 p.m. OK PyPy 3 TESTS 34 2495 219852800
149193024 beethoven97 D March 10, 2022, 9:13 p.m. OK PyPy 3-64 TESTS 34 1060 122982400
149178034 codicon D March 10, 2022, 5:30 p.m. OK PyPy 3-64 TESTS 34 1122 82739200
149193143 beethoven97 D March 10, 2022, 9:16 p.m. OK PyPy 3-64 TESTS 34 1138 122880000
149177656 anishde85 D March 10, 2022, 5:29 p.m. OK PyPy 3-64 TESTS 34 1372 78745600
149213059 coolstreaming D March 11, 2022, 5:33 a.m. OK PyPy 3-64 TESTS 34 1496 54476800
149199111 siganai D March 11, 2022, 12:51 a.m. OK PyPy 3-64 TESTS 34 1528 172851200
149214382 NJU_Rabbit D March 11, 2022, 5:51 a.m. OK PyPy 3-64 TESTS 34 1606 118476800
149194366 zouyu9631 D March 10, 2022, 9:48 p.m. OK PyPy 3-64 TESTS 34 1637 76800000
149213964 NJU_Rabbit D March 11, 2022, 5:45 a.m. OK PyPy 3-64 TESTS 34 1637 121446400
149214789 NJU_Rabbit D March 11, 2022, 5:56 a.m. OK PyPy 3-64 TESTS 34 1668 116531200
149206366 Dixit_here D March 11, 2022, 3:48 a.m. OK Python 3 TESTS 34 2948 94924800
149172589 MrNickel D March 10, 2022, 4:49 p.m. OK Python 3 TESTS 34 3259 51404800
149164387 jonathanwoenardi2 D March 10, 2022, 4:24 p.m. OK Python 3 TESTS 34 3400 119603200
149183009 a_vantik_a D March 10, 2022, 6:26 p.m. OK Python 3 TESTS 34 3540 68915200
149183797 rohanmitra2420 D March 10, 2022, 6:36 p.m. OK Python 3 TESTS 34 3743 65843200
149168376 moscars D March 10, 2022, 4:32 p.m. OK Python 3 TESTS 34 3915 65843200
149176108 takezawa D March 10, 2022, 5:14 p.m. OK Rust 2021 TESTS 34 873 65843200

remove filters

Back to search problems