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 |
|---|---|---|---|---|---|---|
| 2045 | 2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43376123 | Dec. 1, 2024, 5:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 296 ) | E | Narrower Passageway | PROGRAMMING | combinatorics data structures | 2700 |
You are a strategist of The ICPC Kingdom. You received an intel that there will be monster attacks on a narrow passageway near the kingdom. The narrow passageway can be represented as a grid with (2) rows (numbered from (1) to (2)) and (N) columns (numbered from (1) to (N)). Denote ((r, c)) as the cell in row (r) and column (c). A soldier with a power of (P_{r, c}) is assigned to protect ((r, c)) every single day. It is known that the passageway is very foggy. Within a day, each column in the passageway has a (50\%) chance of being covered in fog. If a column is covered in fog, the two soldiers assigned to that column are not deployed that day. Otherwise, the assigned soldiers will be deployed. Define a connected area (u, v) ((u \leq v)) as a maximal set of consecutive columns from (u) to (v) (inclusive) such that each column in the set is not covered in fog. The following illustration is an example of connected areas. The grayed cells are cells covered in fog. There are (4) connected areas: (1, 2), (4, 6), (9, 9), and (11, 11). The strength of a connected area (u, v) can be calculated as follows. Let (m_1) and (m_2) be the maximum power of the soldiers in the first and second rows of the connected area, respectively. Formally, (m_r = \max (P_{r, u}, P_{r, u + 1}, \dots, P_{r, v})) for (r \in \{ 1, 2\}). If (m_1 = m_2), then the strength is (0). Otherwise, the strength is (\min (m_1, m_2)). The total strength of the deployment is the sum of the strengths for all connected areas. Determine the expected total strength of the deployment on any single day. The first line consists of an integer (N) ((1 \leq N \leq 100\,000)). Each of the next two lines consists of (N) integers (P_{r, c}) ((1 \leq P_{r, c} \leq 200\,000)). Let (M = 998\,244\,353). It can be shown that the expected total strength can be expressed |
| raRzKDJLPHcUnqTcwvGznwEdKiDWjEkd.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 294164137 | Mingyu331 mjhmjh1104 as_dfsdf | E | Dec. 1, 2024, 8:45 a.m. | OK | C++17 (GCC 7-32) | TESTS | 60 | 202 | 64819200 | 2700 | |
| 294177168 | Numbering | E | Dec. 1, 2024, 10:23 a.m. | OK | C++17 (GCC 7-32) | TESTS | 60 | 484 | 24576000 | 2700 | |
| 294222146 | fushar | E | Dec. 1, 2024, 3:06 p.m. | OK | C++17 (GCC 7-32) | TESTS | 60 | 702 | 13926400 | 2700 | |
| 294164904 | StarSilk | E | Dec. 1, 2024, 8:51 a.m. | OK | C++17 (GCC 7-32) | TESTS | 60 | 874 | 28057600 | 2700 | |
| 294233293 | Atekichan sv1shan _helloLad | E | Dec. 1, 2024, 4:25 p.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 218 | 10752000 | 2700 | |
| 294175615 | gyydp123_LIM | E | Dec. 1, 2024, 10:09 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 218 | 52940800 | 2700 | |
| 294163606 | feeder1 HuaJun limanjun | E | Dec. 1, 2024, 8:41 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 265 | 62259200 | 2700 | |
| 294212656 | SmolBrain | E | Dec. 1, 2024, 2:07 p.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 281 | 23244800 | 2700 | |
| 294156045 | arnold518 YeongTree Karuna | E | Dec. 1, 2024, 7:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 296 | 5632000 | 2700 | |
| 294242222 | that_bai_xa_hoi | E | Dec. 1, 2024, 5:39 p.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 327 | 16793600 | 2700 | |
| 294145031 | DELTARUNE kizen qwerasdfzxcl | E | Dec. 1, 2024, 6:27 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 359 | 13721600 | 2700 | |
| 294162045 | greatpaul2008 | E | Dec. 1, 2024, 8:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 374 | 99430400 | 2700 | |
| 294293334 | n0ma_ru | E | Dec. 2, 2024, 4:32 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 405 | 15052800 | 2700 | |
| 294160043 | JettyOller pooty | E | Dec. 1, 2024, 8:09 a.m. | OK | C++20 (GCC 13-64) | TESTS | 60 | 405 | 43827200 | 2700 | |
| 294174110 | hulm bthero ArsenGotov | E | Dec. 1, 2024, 9:55 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 109 | 4505600 | 2700 | |
| 294164255 | lotusblume asdasdqwer paultristanwagner | E | Dec. 1, 2024, 8:46 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 124 | 2457600 | 2700 | |
| 294143969 | A_zjzj JCY_ 275307894a | E | Dec. 1, 2024, 6:17 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 218 | 11980800 | 2700 | |
| 294219993 | YamOCHca | E | Dec. 1, 2024, 2:51 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 281 | 41164800 | 2700 | |
| 294173823 | bkdn24.Ravenous bkdn24.lnba bkdn24.leevox | E | Dec. 1, 2024, 9:52 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 406 | 16076800 | 2700 | |
| 294156844 | ksun48 ecnerwala | E | Dec. 1, 2024, 7:41 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 453 | 21196800 | 2700 | |
| 294171094 | hint908 shinchankosen Daylight_pro | E | Dec. 1, 2024, 9:47 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 60 | 530 | 10649600 | 2700 |
Back to search problems