2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams)

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
2041 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) FINISHED False 18000 44405702 Nov. 24, 2024, 7:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 67 ) G Grid Game PROGRAMMING

Claire loves drawing lines. She receives a sheet of paper with an (n \times n) grid and begins drawing "lines" on it. Well—the concept of a "line" here is not what we usually think of. Claire refers each line to be a set of consecutive vertical grid cells. When she draws a line, these cells are all covered with black ink. Initially, all the cells are white, and drawing lines turns some of them black. After drawing a few lines, Claire wonders: how many ways she can color an additional white cell black so that the remaining white cells do not form a single connected component. Two cells are directly connected if they share an edge. Two cells (x) and (y) are indirectly connected if there exists a sequence of cells (c_0, c_1, \ldots, c_k) with (k > 1) such that (c_0 = x), (c_k = y), and for every (i \in \{1, 2, \ldots, k\}) the cells (c_i) and (c_{i-1}) are directly connected. A set of cells forms a single connected component if each pair of cells in the set is either directly or indirectly connected. The grid has (n) rows and (n) columns, both indexed from (1) to (n). Claire will draw (q) lines. The (i)-th line is drawn in the (y_i)-th column, from the (s_i)-th row to the (f_i)-th row, where (s_i \leq f_i) for each (i \in \{1, 2, \ldots, q\}). Note that the cells that are passed by at least one of the (q) lines are colored black. The following figure shows an example of a (20\times 20) grid with (q=67) lines. The grid cells marked with red star symbols refer to the cells such that, if Claire colors that cell black, all white cells no longer form a single connected component. You may assume that, after drawing the (q) lines, the remaining white cells form a single connected component with at least three white cells. The first line contains exactly one integer (t), indicating the number of test cases. For each test case, it begins with a line containing exact

Tutorials

Problem Analysis and Hints (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
293074050 wsyear Little09 G Nov. 24, 2024, 10:15 a.m. OK C++20 (GCC 13-64) TESTS 11 687 306585600
293055594 cxm1024 IceYukino pp_orange G Nov. 24, 2024, 8:57 a.m. OK C++20 (GCC 13-64) TESTS 11 749 368435200
293089341 magnified HollwoQ_Pelw TrungNotChung G Nov. 24, 2024, 12:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 11 562 135372800
293171198 Ion_Gravirei G Nov. 25, 2024, 4:42 a.m. OK C++23 (GCC 14-64, msys2) TESTS 11 718 104652800
293087493 penguinman yuto1115 Wailydest G Nov. 24, 2024, 11:49 a.m. OK C++23 (GCC 14-64, msys2) TESTS 11 750 104755200
293090695 SorahISA G Nov. 24, 2024, 12:11 p.m. OK C++23 (GCC 14-64, msys2) TESTS 11 984 663244800
293018839 G Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018742 G Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018421 G Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0

remove filters

Back to search problems