Codeforces Round 762 (Div. 3)

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
1619 Codeforces Round 762 (Div. 3) FINISHED False 8100 97255463 Dec. 20, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2450 ) G Unusual Minesweeper PROGRAMMING binary search dfs and similar ds implementation sortings

B'Polycarp is very fond of playing the game Minesweeper. Recently he found a similar game and there are such rules. There are mines on the field, for each the coordinates of its location are known ( x_i, y_i ). Each mine has a lifetime in seconds, after which it will explode. After the explosion, the mine also detonates all mines vertically and horizontally at a distance of k (two perpendicular lines). As a result, we get an explosion on the field in the form of a "plus" symbol ( '+ '). Thus, one explosion can cause new explosions, and so on. Also, Polycarp can detonate anyone mine every second, starting from zero seconds. After that, a chain reaction of explosions also takes place. Mines explode instantly and also instantly detonate other mines according to the rules described above. Polycarp wants to set a new record and asks you to help him calculate in what minimum number of seconds all mines can be detonated. The first line of the input contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the test. An empty line is written in front of each test suite. Next comes a line that contains integers n and k ( 1 <= n <= 2 cdot 10^5 , 0 <= k <= 10^9 ) -- the number of mines and the distance that hit by mines during the explosion, respectively. Then n lines follow, the i -th of which describes the x and y coordinates of the i -th mine and the time until its explosion ( -10^9 <= x, y <= 10^9 , 0 <= timer <= 10^9 ). It is guaranteed that all mines have different coordinates. It is guaranteed that the sum of the values n over all test cases in the test does not exceed 2 cdot 10^5 . Print t lines, each of the lines must contain the answer to the corresponding set of input data -- the minimum number of seconds it takes to explode all the mines. First example: Second example: '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
140210996 maoyiting G Dec. 21, 2021, 11:33 p.m. OK GNU C++14 TESTS 15 140 4812800
140135472 lczx G Dec. 21, 2021, 7:06 a.m. OK GNU C++14 TESTS 15 156 46694400
140162805 toovegetable G Dec. 21, 2021, 12:28 p.m. OK GNU C++14 TESTS 15 171 5017600
140142765 MayFlyyh G Dec. 21, 2021, 8:33 a.m. OK GNU C++14 TESTS 15 186 5632000
140214623 syf1201 G Dec. 22, 2021, 2:01 a.m. OK GNU C++14 TESTS 15 187 4812800
140119633 vjudge3 G Dec. 21, 2021, 1:21 a.m. OK GNU C++14 TESTS 15 187 4812800
140119626 Leo__LiTianYou G Dec. 21, 2021, 1:21 a.m. OK GNU C++14 TESTS 15 187 4812800
140119689 bkifhr9 G Dec. 21, 2021, 1:23 a.m. OK GNU C++14 TESTS 15 187 10240000
140119330 WHC_MIK_7521X G Dec. 21, 2021, 1:09 a.m. OK GNU C++14 TESTS 15 187 10240000
140119388 ACOIer G Dec. 21, 2021, 1:11 a.m. OK GNU C++14 TESTS 15 202 4812800
140116604 DiegoGarcia G Dec. 20, 2021, 11:06 p.m. OK GNU C++17 TESTS 15 171 4812800
140128101 T_Tho G Dec. 21, 2021, 5:05 a.m. OK GNU C++17 TESTS 15 186 4812800
140144149 dagexiangdani G Dec. 21, 2021, 8:49 a.m. OK GNU C++17 TESTS 15 186 13619200
140222477 lcyyy G Dec. 22, 2021, 5:15 a.m. OK GNU C++17 TESTS 15 202 5632000
140189771 ikaurov G Dec. 21, 2021, 5:03 p.m. OK GNU C++17 TESTS 15 217 7270400
140157446 Suru007 G Dec. 21, 2021, 11:21 a.m. OK GNU C++17 TESTS 15 217 7270400
140187140 AvinashKartik G Dec. 21, 2021, 4:37 p.m. OK GNU C++17 TESTS 15 218 22425600
140222653 lcyyy G Dec. 22, 2021, 5:18 a.m. OK GNU C++17 TESTS 15 233 5632000
140150409 sdlwsl G Dec. 21, 2021, 9:59 a.m. OK GNU C++17 TESTS 15 233 6451200
140150431 vjudge4 G Dec. 21, 2021, 9:59 a.m. OK GNU C++17 TESTS 15 248 6451200
140133584 korokseeds G Dec. 21, 2021, 6:44 a.m. OK GNU C++17 (64) TESTS 15 155 6963200
140134407 Break_Zero G Dec. 21, 2021, 6:53 a.m. OK GNU C++17 (64) TESTS 15 156 7884800
140134243 forceac G Dec. 21, 2021, 6:52 a.m. OK GNU C++17 (64) TESTS 15 156 7884800
140121638 kitsune G Dec. 21, 2021, 2:35 a.m. OK GNU C++17 (64) TESTS 15 171 7782400
140151851 roshan_mehta G Dec. 21, 2021, 10:15 a.m. OK GNU C++17 (64) TESTS 15 171 17100800
140175279 Elias_Obeid G Dec. 21, 2021, 2:39 p.m. OK GNU C++17 (64) TESTS 15 187 7782400
140149096 Harshil_ G Dec. 21, 2021, 9:44 a.m. OK GNU C++17 (64) TESTS 15 202 12800000
140186575 kunalattri G Dec. 21, 2021, 4:31 p.m. OK GNU C++17 (64) TESTS 15 218 14336000
140190886 vjudge3 G Dec. 21, 2021, 5:14 p.m. OK GNU C++17 (64) TESTS 15 233 15257600
140127457 HimanshuG G Dec. 21, 2021, 4:54 a.m. OK GNU C++17 (64) TESTS 15 233 20070400
140142421 zstu20liuzhe G Dec. 21, 2021, 8:29 a.m. OK GNU C++20 (64) TESTS 15 139 12288000
140145164 zstu20liuzhe G Dec. 21, 2021, 9:01 a.m. OK GNU C++20 (64) TESTS 15 140 6144000
140212082 kroyl G Dec. 22, 2021, 12:29 a.m. OK GNU C++20 (64) TESTS 15 140 6963200
140155916 L.Morningstar G Dec. 21, 2021, 11:03 a.m. OK GNU C++20 (64) TESTS 15 140 9625600
140146119 zstu20liuzhe G Dec. 21, 2021, 9:11 a.m. OK GNU C++20 (64) TESTS 15 140 12288000
140145090 zstu20liuzhe G Dec. 21, 2021, 9 a.m. OK GNU C++20 (64) TESTS 15 140 12288000
140143380 zstu20liuzhe G Dec. 21, 2021, 8:40 a.m. OK GNU C++20 (64) TESTS 15 140 12288000
140141744 zstu20liuzhe G Dec. 21, 2021, 8:21 a.m. OK GNU C++20 (64) TESTS 15 140 12288000
140144124 harsh__h G Dec. 21, 2021, 8:49 a.m. OK GNU C++20 (64) TESTS 15 140 21913600
140160180 inksamurai G Dec. 21, 2021, 11:57 a.m. OK GNU C++20 (64) TESTS 15 155 8806400
140179090 Hemose G Dec. 21, 2021, 3:17 p.m. OK Java 11 TESTS 15 577 16588800
140221030 sumitchavan G Dec. 22, 2021, 4:49 a.m. OK Java 11 TESTS 15 670 36249600
140220648 sumitchavan G Dec. 22, 2021, 4:41 a.m. OK Java 11 TESTS 15 685 36249600
140221139 sumitchavan G Dec. 22, 2021, 4:51 a.m. OK Java 11 TESTS 15 717 36249600
140114825 podtelkin G Dec. 20, 2021, 9:57 p.m. OK Java 11 TESTS 15 857 15052800
140117897 aminul G Dec. 21, 2021, 12:03 a.m. OK Java 11 TESTS 15 1325 116838400
140177379 guru1603 G Dec. 21, 2021, 3 p.m. OK Java 8 TESTS 15 1341 121241600
140121157 OlavBakken G Dec. 21, 2021, 2:20 a.m. OK PyPy 2 TESTS 15 1731 61235200
140144904 OLOGY G Dec. 21, 2021, 8:58 a.m. OK PyPy 2 TESTS 15 1762 56320000
140208629 hxu10 G Dec. 21, 2021, 9:59 p.m. OK PyPy 3 TESTS 15 592 75468800
140153604 sushmanth.dampur8780 G Dec. 21, 2021, 10:35 a.m. OK PyPy 3 TESTS 15 1107 71987200
140153101 sushmanth.dampur8780 G Dec. 21, 2021, 10:30 a.m. OK PyPy 3 TESTS 15 1200 79155200
140122875 wwwwzhh G Dec. 21, 2021, 3:09 a.m. OK PyPy 3 TESTS 15 1325 82432000
140141050 alexwice G Dec. 21, 2021, 8:13 a.m. OK PyPy 3-64 TESTS 15 873 171724800
140160936 zqx1392 G Dec. 21, 2021, 12:06 p.m. OK PyPy 3-64 TESTS 15 1247 109056000
140224298 OLOGY G Dec. 22, 2021, 5:47 a.m. OK Python 2 TESTS 15 1684 56729600
140144836 OLOGY G Dec. 21, 2021, 8:57 a.m. OK Python 2 TESTS 15 1730 56934400
140140669 xxafhixx G Dec. 21, 2021, 8:09 a.m. OK Rust 2021 TESTS 15 156 37888000

remove filters

Back to search problems