Codeforces LATOKEN Round 1 (Div. 1 + 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
1534 Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) FINISHED False 10800 108224699 June 13, 2021, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1253 ) F1 Falling Sand (Easy Version) PROGRAMMING dfs and similar graphs greedy

B"This is the easy version of the problem. The difference between the versions is the constraints on a_i . You can make hacks only if all versions of the problem are solved. Little Dormi has recently received a puzzle from his friend and needs your help to solve it. The puzzle consists of an upright board with n rows and m columns of cells, some empty and some filled with blocks of sand, and m non-negative integers a_1,a_2, ldots,a_m ( 0 <= q a_i <= q n ). In this version of the problem, a_i will be equal to the number of blocks of sand in column i . When a cell filled with a block of sand is disturbed, the block of sand will fall from its cell to the sand counter at the bottom of the column (each column has a sand counter). While a block of sand is falling, other blocks of sand that are adjacent at any point to the falling block of sand will also be disturbed and start to fall. Specifically, a block of sand disturbed at a cell (i,j) will pass through all cells below and including the cell (i,j) within the column, disturbing all adjacent cells along the way. Here, the cells adjacent to a cell (i,j) are defined as (i-1,j) , (i,j-1) , (i+1,j) , and (i,j+1) (if they are within the grid). Note that the newly falling blocks can disturb other blocks. In one operation you are able to disturb any piece of sand. The puzzle is solved when there are at least a_i blocks of sand counted in the i -th sand counter for each column from 1 to m . You are now tasked with finding the minimum amount of operations in order to solve the puzzle. Note that Little Dormi will never give you a puzzle that is impossible to solve. The first line consists of two space-separated positive integers n and m ( 1 <= q n cdot m <= q 400 ,000 ). Each of the next n lines contains m characters, describing each row of the board. If a character on a line is '.', the c"...

Tutorials

Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
119388593 clfzs F1 June 13, 2021, 6:03 p.m. OK GNU C++11 TESTS 103 77 53657600
119408578 ACOIer F1 June 14, 2021, 12:58 a.m. OK GNU C++11 TESTS 103 93 53760000
119391538 _Ezreal F1 June 13, 2021, 6:15 p.m. OK GNU C++11 TESTS 103 140 108441600
119421448 TQX F1 June 14, 2021, 5:45 a.m. OK GNU C++11 TESTS 103 155 50073600
119396362 gzchenyin F1 June 13, 2021, 6:32 p.m. OK GNU C++11 TESTS 103 155 58572800
119416745 xwp F1 June 14, 2021, 4:27 a.m. OK GNU C++11 TESTS 103 187 90316800
119389485 nwi F1 June 13, 2021, 6:06 p.m. OK GNU C++11 TESTS 103 264 66457600
119411579 ghj1222 F1 June 14, 2021, 2:40 a.m. OK GNU C++11 TESTS 103 280 60211200
119385930 AlmostComplete F1 June 13, 2021, 5:51 p.m. OK GNU C++11 TESTS 103 343 119398400
119387196 AliShahali1382 F1 June 13, 2021, 5:56 p.m. OK GNU C++11 TESTS 103 373 94105600
119417307 cbl_nhathuy F1 June 14, 2021, 4:38 a.m. OK GNU C++14 TESTS 103 139 51507200
119399825 Svyat F1 June 13, 2021, 7:52 p.m. OK GNU C++14 TESTS 103 155 30105600
119417103 cbl_nhathuy F1 June 14, 2021, 4:34 a.m. OK GNU C++14 TESTS 103 155 51507200
119407939 SuperJ6 F1 June 14, 2021, 12:23 a.m. OK GNU C++14 TESTS 103 249 63385600
119407949 SuperJ6 F1 June 14, 2021, 12:24 a.m. OK GNU C++14 TESTS 103 264 63385600
119406804 AlanSkarica F1 June 13, 2021, 11:10 p.m. OK GNU C++14 TESTS 103 264 72908800
119392393 Hollowed F1 June 13, 2021, 6:18 p.m. OK GNU C++14 TESTS 103 264 75776000
119386099 Meijer F1 June 13, 2021, 5:52 p.m. OK GNU C++14 TESTS 103 295 78745600
119391380 vasilescu_mihai F1 June 13, 2021, 6:14 p.m. OK GNU C++14 TESTS 103 312 77619200
119388346 AwakeAnay F1 June 13, 2021, 6:02 p.m. OK GNU C++14 TESTS 103 358 85299200
119409751 OrlKorrekt F1 June 14, 2021, 1:46 a.m. OK GNU C++17 TESTS 103 124 21913600
119402080 Resende F1 June 13, 2021, 8:20 p.m. OK GNU C++17 TESTS 103 124 27136000
119391266 Dalgerok F1 June 13, 2021, 6:14 p.m. OK GNU C++17 TESTS 103 124 52428800
119393469 cs142857 F1 June 13, 2021, 6:23 p.m. OK GNU C++17 TESTS 103 156 35532800
119407494 BrayanD F1 June 13, 2021, 11:59 p.m. OK GNU C++17 TESTS 103 156 56217600
119390755 mshcherba F1 June 13, 2021, 6:12 p.m. OK GNU C++17 TESTS 103 170 51404800
119406189 marX F1 June 13, 2021, 10:36 p.m. OK GNU C++17 TESTS 103 171 40550400
119387675 Ari F1 June 13, 2021, 5:58 p.m. OK GNU C++17 TESTS 103 171 57241600
119388242 Binary_Search_Tree F1 June 13, 2021, 6:01 p.m. OK GNU C++17 TESTS 103 171 59084800
119395646 All_Forward F1 June 13, 2021, 6:30 p.m. OK GNU C++17 TESTS 103 171 113459200
119409216 yhx-12243 F1 June 14, 2021, 1:28 a.m. OK GNU C++17 (64) TESTS 103 92 64307200
119390249 mango_lassi F1 June 13, 2021, 6:10 p.m. OK GNU C++17 (64) TESTS 103 93 16076800
119390639 ei133333 F1 June 13, 2021, 6:11 p.m. OK GNU C++17 (64) TESTS 103 93 31948800
119396488 Thallium54 F1 June 13, 2021, 6:32 p.m. OK GNU C++17 (64) TESTS 103 109 75366400
119403265 magnus.hegdahl F1 June 13, 2021, 8:51 p.m. OK GNU C++17 (64) TESTS 103 124 64614400
119388429 nuip F1 June 13, 2021, 6:02 p.m. OK GNU C++17 (64) TESTS 103 140 37376000
119386419 Farhod_Farmon F1 June 13, 2021, 5:53 p.m. OK GNU C++17 (64) TESTS 103 155 43417600
119390657 Quang F1 June 13, 2021, 6:11 p.m. OK GNU C++17 (64) TESTS 103 170 89702400
119390113 laowuniubi F1 June 13, 2021, 6:09 p.m. OK GNU C++17 (64) TESTS 103 171 79974400
119394708 eriksuenderhauf F1 June 13, 2021, 6:27 p.m. OK GNU C++17 (64) TESTS 103 171 91955200
119407112 fetetriste F1 June 13, 2021, 11:31 p.m. OK Java 8 TESTS 103 404 70144000
119397785 AliceG F1 June 13, 2021, 6:34 p.m. OK MS C++ 2017 TESTS 103 483 76390400
119404674 at_f F1 June 13, 2021, 9:31 p.m. OK PyPy 3 TESTS 103 857 123392000
119411126 belkka F1 June 14, 2021, 2:27 a.m. OK Python 3 TESTS 103 810 29798400
119397071 ngtkana F1 June 13, 2021, 6:33 p.m. OK Rust TESTS 103 280 87654400

remove filters

Back to search problems