Codeforces Round 919 (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
1920 Codeforces Round 919 (Div. 2) FINISHED False 7200 32023463 Jan. 13, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1036 ) F1 Smooth Sailing (Easy Version) PROGRAMMING binary search data structures dfs and similar ds graphs

B"The only difference between the two versions of this problem is the constraint on q . You can make hacks only if both versions of the problem are solved. Thomas is sailing around an island surrounded by the ocean. The ocean and island can be represented by a grid with n rows and m columns. The rows are numbered from 1 to n from top to bottom, and the columns are numbered from 1 to m from left to right. The position of a cell at row r and column c can be represented as (r, c) . Below is an example of a valid grid. There are three types of cells: island, ocean and underwater volcano. Cells representing the island are marked with a '#', cells representing the ocean are marked with a '.', and cells representing an underwater volcano are marked with a 'v'. It is guaranteed that there is at least one island cell and at least one underwater volcano cell. It is also guaranteed that the set of all island cells forms a single connected component ^{ dagger} and the set of all ocean cells and underwater volcano cells forms a single connected component. Additionally, it is guaranteed that there are no island cells at the edge of the grid (that is, at row 1 , at row n , at column 1 , and at column m ). Define a round trip starting from cell (x, y) as a path Thomas takes which satisfies the following conditions: The safety of a round trip is the minimum Manhattan distance ^{ ddagger} from a cell on the round trip to an underwater volcano (note that the presence of island cells does not impact this distance). You have q queries. A query can be represented as (x, y) and for every query, you want to find the maximum safety of a round trip starting from (x, y) . It is guaranteed that (x, y) is an ocean cell or an underwater volcano cell. ^{ dagger} A set of cells forms a single connected component if from any cell of this set it is possible to reach any o"...

Tutorials

Editorial for Codeforces Round #919 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
241489058 Gassa F1 Jan. 13, 2024, 5:17 p.m. OK D TESTS 38 1294 100147200
241488461 SuperJ6 F1 Jan. 13, 2024, 5:16 p.m. OK GNU C++14 TESTS 38 93 37273600
241530434 EvenToWorldFinal F1 Jan. 14, 2024, 5:39 a.m. OK GNU C++14 TESTS 39 202 40038400
241485294 StarSilk F1 Jan. 13, 2024, 4:33 p.m. OK GNU C++14 TESTS 38 405 84377600
241504579 honey F1 Jan. 13, 2024, 7:32 p.m. OK GNU C++14 TESTS 38 436 16896000
241480737 robertofirmino09 F1 Jan. 13, 2024, 4:24 p.m. OK GNU C++14 TESTS 38 529 17817600
241521118 Hurrikale F1 Jan. 14, 2024, 2:50 a.m. OK GNU C++14 TESTS 39 530 14950400
241497490 Valters07 F1 Jan. 13, 2024, 6:13 p.m. OK GNU C++14 TESTS 38 686 21708800
241489042 Hell2Evator F1 Jan. 13, 2024, 5:17 p.m. OK GNU C++14 TESTS 38 748 16179200
241489499 ExRoc__ F1 Jan. 13, 2024, 5:19 p.m. OK GNU C++14 TESTS 38 795 4505600
241518866 QuitCP F1 Jan. 14, 2024, 1:54 a.m. OK GNU C++14 TESTS 39 889 30310400
241500273 peti1234 F1 Jan. 13, 2024, 6:39 p.m. OK GNU C++17 TESTS 38 171 48742400
241524370 bobthestickman F1 Jan. 14, 2024, 4:01 a.m. OK GNU C++17 TESTS 39 358 12800000
241486090 suomynonA F1 Jan. 13, 2024, 4:34 p.m. OK GNU C++17 TESTS 38 405 4608000
241526177 michaelsxiang F1 Jan. 14, 2024, 4:36 a.m. OK GNU C++17 TESTS 39 421 23142400
241494119 NisarAhmad_ F1 Jan. 13, 2024, 5:46 p.m. OK GNU C++17 TESTS 38 499 17817600
241483688 ppavic F1 Jan. 13, 2024, 4:30 p.m. OK GNU C++17 TESTS 38 514 65331200
241525720 Kies F1 Jan. 14, 2024, 4:28 a.m. OK GNU C++17 TESTS 39 935 28569600
241481175 hiennoob F1 Jan. 13, 2024, 4:25 p.m. OK GNU C++17 TESTS 38 1013 11673600
241491584 IBory F1 Jan. 13, 2024, 5:29 p.m. OK GNU C++17 TESTS 38 1013 23347200
241482970 Dominater069 F1 Jan. 13, 2024, 4:28 p.m. OK GNU C++17 TESTS 38 1092 16384000
241518290 scallionsong F1 Jan. 14, 2024, 1:38 a.m. OK GNU C++17 (64) TESTS 39 436 8704000
241515762 galen_colin F1 Jan. 13, 2024, 11:56 p.m. OK GNU C++17 (64) TESTS 38 436 36147200
241511535 MarcosK F1 Jan. 13, 2024, 9:29 p.m. OK GNU C++17 (64) TESTS 38 483 122777600
241515138 lunchbox F1 Jan. 13, 2024, 11:29 p.m. OK GNU C++17 (64) TESTS 38 545 22220800
241528277 luanmenglei F1 Jan. 14, 2024, 5:11 a.m. OK GNU C++17 (64) TESTS 39 561 172646400
241492835 Sayem_Ramzan F1 Jan. 13, 2024, 5:37 p.m. OK GNU C++17 (64) TESTS 38 623 191590400
241483530 Chifwin F1 Jan. 13, 2024, 4:30 p.m. OK GNU C++17 (64) TESTS 38 779 92467200
241485652 HuangRHeCF F1 Jan. 13, 2024, 4:34 p.m. OK GNU C++17 (64) TESTS 38 810 25190400
241511804 Geothermal F1 Jan. 13, 2024, 9:36 p.m. OK GNU C++17 (64) TESTS 38 826 34713600
241485102 yd_tz F1 Jan. 13, 2024, 4:33 p.m. OK GNU C++17 (64) TESTS 38 841 22016000
241501434 magnus.hegdahl F1 Jan. 13, 2024, 6:52 p.m. OK GNU C++20 (64) TESTS 38 77 44134400
241514358 kaiboy F1 Jan. 13, 2024, 10:59 p.m. OK GNU C++20 (64) TESTS 38 78 9011200
241513718 FelixMirave F1 Jan. 13, 2024, 10:35 p.m. OK GNU C++20 (64) TESTS 38 78 42393600
241501842 magnus.hegdahl F1 Jan. 13, 2024, 6:56 p.m. OK GNU C++20 (64) TESTS 38 93 72704000
241515333 neal F1 Jan. 13, 2024, 11:38 p.m. OK GNU C++20 (64) TESTS 38 156 142950400
241507492 neal F1 Jan. 13, 2024, 8:14 p.m. OK GNU C++20 (64) TESTS 38 171 142950400
241518784 BARBARIANNNNN F1 Jan. 14, 2024, 1:52 a.m. OK GNU C++20 (64) TESTS 39 187 46080000
241512648 Be_dos F1 Jan. 13, 2024, 10:01 p.m. OK GNU C++20 (64) TESTS 38 187 85504000
241506835 Be_dos F1 Jan. 13, 2024, 8:04 p.m. OK GNU C++20 (64) TESTS 38 202 85913600
241484302 femboy-wannabe F1 Jan. 13, 2024, 4:31 p.m. OK GNU C++20 (64) TESTS 38 218 96460800
241484768 arvindf232 F1 Jan. 13, 2024, 4:32 p.m. OK Kotlin 1.6 TESTS 38 795 155033600
241488643 misorin F1 Jan. 13, 2024, 5:16 p.m. OK PyPy 3-64 TESTS 38 2183 31232000

remove filters

Back to search problems