2024-2025 ICPC Asia Jakarta Regional Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 929 ) G X Aura PROGRAMMING graphs shortest paths 2200

Mount ICPC can be represented as a grid of (R) rows (numbered from (1) to (R)) and (C) columns (numbered from (1) to (C)). The cell located at row (r) and column (c) is denoted as ((r, c)) and has a height of (H_{r, c}). Two cells are adjacent to each other if they share a side. Formally, ((r, c)) is adjacent to ((r-1, c)), ((r+1, c)), ((r, c-1)), and ((r, c+1)), if any exists. You can move only between adjacent cells, and each move comes with a penalty. With an aura of an odd positive integer (X), moving from a cell with height (h_1) to a cell with height (h_2) gives you a penalty of ((h_1 - h_2)^X). Note that the penalty can be negative. You want to answer (Q) independent scenarios. In each scenario, you start at the starting cell ((R_s, C_s)) and you want to go to the destination cell ((R_f, C_f)) with minimum total penalty. In some scenarios, the total penalty might become arbitrarily small; such a scenario is called invalid . Find the minimum total penalty to move from the starting cell to the destination cell, or determine if the scenario is invalid. The first line consists of three integers (R) (C) (X) ((1 \leq R, C \leq 1000; 1 \leq X \leq 9; X) is an odd integer). Each of the next (R) lines consists of a string (H_r) of length (C). Each character in (H_r) is a number from 0 to 9 . The (c)-th character of (H_r) represents the height of cell ((r, c)), or (H_{r, c}). The next line consists of an integer (Q) ((1 \leq Q \leq 100\,000)). Each of the next (Q) lines consists of four integers (R_s) (C_s) (R_f) (C_f) ((1 \leq R_s, R_f \leq R; 1 \leq C_s, C_f \leq C)). For each scenario, output the following in a single line. If the scenario is invalid, output INVALID . Otherwise, output a single integer representing the minimum total penalty to move from the starting cell to the destination c

Tutorials

raRzKDJLPHcUnqTcwvGznwEdKiDWjEkd.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
294145240 caterpillow AnsonWong Matthewwww G Dec. 1, 2024, 6:29 a.m. OK C++17 (GCC 7-32) TESTS 46 156 9523200 2200
294243947 Floating_Duck G Dec. 1, 2024, 5:54 p.m. OK C++17 (GCC 7-32) TESTS 46 171 16281600 2200
294158762 Numbering G Dec. 1, 2024, 7:58 a.m. OK C++17 (GCC 7-32) TESTS 46 171 16281600 2200
294155724 kokokuro AkiLotus neko_nyaaaaaaaaaaaaaaaaa G Dec. 1, 2024, 7:30 a.m. OK C++17 (GCC 7-32) TESTS 46 171 16384000 2200
294169959 Atziluth G Dec. 1, 2024, 9:37 a.m. OK C++17 (GCC 7-32) TESTS 46 186 36454400 2200
294283665 joelgun14 G Dec. 2, 2024, 1:33 a.m. OK C++17 (GCC 7-32) TESTS 46 187 16384000 2200
294169254 Black_King1 bnxcvd G Dec. 1, 2024, 9:30 a.m. OK C++17 (GCC 7-32) TESTS 46 202 20377600 2200
294160007 Sofapuden G Dec. 1, 2024, 8:09 a.m. OK C++17 (GCC 7-32) TESTS 46 233 6758400 2200
294142368 Mingyu331 mjhmjh1104 as_dfsdf G Dec. 1, 2024, 6:02 a.m. OK C++17 (GCC 7-32) TESTS 46 296 17305600 2200
294162576 Namine pnlong2706 G Dec. 1, 2024, 8:32 a.m. OK C++17 (GCC 7-32) TESTS 46 343 20275200 2200
294155705 jiazhichen844 shaoxing_moon Zzzcr G Dec. 1, 2024, 7:30 a.m. OK C++20 (GCC 13-64) TESTS 46 125 16281600 2200
294246537 marvenlee G Dec. 1, 2024, 6:15 p.m. OK C++20 (GCC 13-64) TESTS 46 140 6246400 2200
294167710 hata_saa lenhanboofficial Swishy123 G Dec. 1, 2024, 9:16 a.m. OK C++20 (GCC 13-64) TESTS 46 140 6348800 2200
294167525 nh_nayeem Alfeh Ryuga_ G Dec. 1, 2024, 9:14 a.m. OK C++20 (GCC 13-64) TESTS 46 140 9113600 2200
294160698 HFDLYS shendeliliang G Dec. 1, 2024, 8:16 a.m. OK C++20 (GCC 13-64) TESTS 46 140 9113600 2200
294236173 iluem100 G Dec. 1, 2024, 4:48 p.m. OK C++20 (GCC 13-64) TESTS 46 140 9216000 2200
294153228 JettyOller pooty G Dec. 1, 2024, 7:08 a.m. OK C++20 (GCC 13-64) TESTS 46 140 10752000 2200
294147110 cn449 G Dec. 1, 2024, 6:46 a.m. OK C++20 (GCC 13-64) TESTS 46 140 13926400 2200
294168490 jakao G Dec. 1, 2024, 9:24 a.m. OK C++20 (GCC 13-64) TESTS 46 140 16281600 2200
294154806 Mentholzzz PineapplesOnPizza Lucina G Dec. 1, 2024, 7:22 a.m. OK C++20 (GCC 13-64) TESTS 46 140 24576000 2200
294286407 monna4335 G Dec. 2, 2024, 2:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 125 16281600 2200
294151475 Savior-of-Cross G Dec. 1, 2024, 6:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 140 6451200 2200
294143262 ksun48 ecnerwala G Dec. 1, 2024, 6:11 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 140 6451200 2200
294268144 GoogleBot G Dec. 1, 2024, 8:31 p.m. OK C++23 (GCC 14-64, msys2) TESTS 46 140 7577600 2200
294157936 hulm bthero ArsenGotov G Dec. 1, 2024, 7:50 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 155 32460800 2200
294144483 neal G Dec. 1, 2024, 6:22 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 156 6451200 2200
294233493 Hazzu G Dec. 1, 2024, 4:27 p.m. OK C++23 (GCC 14-64, msys2) TESTS 46 171 6656000 2200
294163191 Mrcharlezzz Giga_Cronos G Dec. 1, 2024, 8:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 171 13824000 2200
294146385 lotusblume asdasdqwer paultristanwagner G Dec. 1, 2024, 6:40 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 171 22528000 2200
294155567 WRKRW Fish_and_Chips JoanhLan G Dec. 1, 2024, 7:29 a.m. OK C++23 (GCC 14-64, msys2) TESTS 46 171 25292800 2200
294278035 Duldek G Dec. 1, 2024, 10:44 p.m. OK Go TESTS 46 234 27340800 2200
294146241 arvindf232 G Dec. 1, 2024, 6:39 a.m. OK Kotlin 1.9 TESTS 46 389 16896000 2200
294204157 Mc3X G Dec. 1, 2024, 1:22 p.m. OK PyPy 3-64 TESTS 46 343 25497600 2200
294227669 Mc3X G Dec. 1, 2024, 3:45 p.m. OK PyPy 3-64 TESTS 46 374 25292800 2200
294240492 Mc3X G Dec. 1, 2024, 5:24 p.m. OK PyPy 3-64 TESTS 46 406 25497600 2200
294156003 DeadRhino G Dec. 1, 2024, 7:33 a.m. OK PyPy 3-64 TESTS 46 656 41676800 2200

remove filters

Back to search problems