COMPFEST 14 - Preliminary Online Mirror (Unrated, 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
1725 COMPFEST 14 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 79201488 Sept. 4, 2022, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3338 ) M Moving Both Hands PROGRAMMING dp graphs shortest paths

B"Pak Chanek is playing one of his favourite board games. In the game, there is a directed graph with N vertices and M edges. In the graph, edge i connects two different vertices U_i and V_i with a length of W_i . By using the i -th edge, something can move from U_i to V_i , but not from V_i to U_i . To play this game, initially Pak Chanek must place both of his hands onto two different vertices. In one move, he can move one of his hands to another vertex using an edge. To move a hand from vertex U_i to vertex V_i , Pak Chanek needs a time of W_i seconds. Note that Pak Chanek can only move one hand at a time. This game ends when both of Pak Chanek's hands are on the same vertex. Pak Chanek has several questions. For each p satisfying 2 <= q p <= q N , you need to find the minimum time in seconds needed for Pak Chanek to end the game if initially Pak Chanek's left hand and right hand are placed on vertex 1 and vertex p , or report if it is impossible. The first line contains two integers N and M ( 2 <= q N <= q 10^5 , 0 <= q M <= q 2 cdot 10^5 ) -- the number of vertices and edges in the graph. The i -th of the next M lines contains three integers U_i , V_i , and W_i ( 1 <= U_i, V_i <= N , U_i neq V_i , 1 <= W_i <= 10^9 ) -- a directed edge that connects two different vertices U_i and V_i with a length of W_i . There is no pair of different edges i and j such that U_i = U_j and V_i = V_j . Output a line containing N-1 integers. The j -th integer represents the minimum time in seconds needed by Pak Chanek to end the game if initially Pak Chanek's left hand and right hand are placed on vertex 1 and vertex j+1 , or -1 if it is impossible. If initially Pak Chanek's left hand is on vertex 1 and his right hand is on vertex $"...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
170853174 kaiboy rainboy Dukkha M Sept. 4, 2022, 2:12 p.m. OK GNU C11 TESTS 31 654 18944000
170859803 IcMtr _Rekoirive bcr_233 M Sept. 4, 2022, 2:51 p.m. OK GNU C++14 TESTS 31 187 15974400
170863857 acacaction TEoS M Sept. 4, 2022, 3:21 p.m. OK GNU C++14 TESTS 31 234 20275200
170858689 haskaran ArminAzimi Ahoora M Sept. 4, 2022, 2:45 p.m. OK GNU C++14 TESTS 31 264 16588800
170854732 Jimanbanashi M Sept. 4, 2022, 2:21 p.m. OK GNU C++14 TESTS 31 280 20787200
170850701 ioidream MinhTuan11 vidut_206_CNH M Sept. 4, 2022, 2 p.m. OK GNU C++14 TESTS 31 295 16486400
170873649 B962006 _solomon Kubogi M Sept. 4, 2022, 4:43 p.m. OK GNU C++14 TESTS 31 295 24678400
170853489 F0_0H RUSH_D_CAT limbo.null M Sept. 4, 2022, 2:14 p.m. OK GNU C++14 TESTS 31 296 15564800
170872432 alurquiza M Sept. 4, 2022, 4:32 p.m. OK GNU C++14 TESTS 31 311 17408000
170906512 _Fake4Fun M Sept. 5, 2022, 3:19 a.m. OK GNU C++14 TESTS 31 311 19251200
170872573 Trunghieu2006 Phuxtrohhg Duy_e M Sept. 4, 2022, 4:33 p.m. OK GNU C++14 TESTS 31 311 25395200
170885569 Bobocan M Sept. 4, 2022, 6:51 p.m. OK GNU C++17 TESTS 31 139 14131200
170854778 Bobocan M Sept. 4, 2022, 2:21 p.m. OK GNU C++17 TESTS 31 140 14848000
170867699 D3Xtr M Sept. 4, 2022, 3:52 p.m. OK GNU C++17 TESTS 31 264 18636800
170858977 Lyrically Abel51 a_grain M Sept. 4, 2022, 2:46 p.m. OK GNU C++17 TESTS 31 265 17612800
170856810 rabbitcxk M Sept. 4, 2022, 2:33 p.m. OK GNU C++17 TESTS 31 265 25088000
170853526 cuibst M Sept. 4, 2022, 2:14 p.m. OK GNU C++17 TESTS 31 280 15667200
170900497 catsareliquid M Sept. 5, 2022, 12:19 a.m. OK GNU C++17 TESTS 31 280 18739200
170869524 su_lb M Sept. 4, 2022, 4:07 p.m. OK GNU C++17 TESTS 31 280 22835200
170882735 dungnguyenn_05 M Sept. 4, 2022, 6:20 p.m. OK GNU C++17 TESTS 31 280 25804800
170904916 BigFaceDog M Sept. 5, 2022, 2:31 a.m. OK GNU C++17 TESTS 31 280 32358400
170852498 Nabil28 sinbad wakaranai M Sept. 4, 2022, 2:09 p.m. OK GNU C++17 (64) TESTS 31 233 27136000
170855687 kotatsugame M Sept. 4, 2022, 2:26 p.m. OK GNU C++17 (64) TESTS 31 249 21196800
170851022 cuiaoxiang M Sept. 4, 2022, 2:02 p.m. OK GNU C++17 (64) TESTS 31 249 25088000
170852006 Andreasyan M Sept. 4, 2022, 2:07 p.m. OK GNU C++17 (64) TESTS 31 249 28774400
170857778 KKT_89 M Sept. 4, 2022, 2:39 p.m. OK GNU C++17 (64) TESTS 31 249 30515200
170912942 linxd M Sept. 5, 2022, 5:45 a.m. OK GNU C++17 (64) TESTS 31 249 64000000
170874063 pachico M Sept. 4, 2022, 4:46 p.m. OK GNU C++17 (64) TESTS 31 264 26624000
170852021 PIachta Sophie_Neuenmuller M Sept. 4, 2022, 2:07 p.m. OK GNU C++17 (64) TESTS 31 264 26931200
170853141 mbdbr M Sept. 4, 2022, 2:12 p.m. OK GNU C++17 (64) TESTS 31 280 19763200
170861853 cuongdang123 van_hoang ueurwieuzzzzz M Sept. 4, 2022, 3:06 p.m. OK GNU C++17 (64) TESTS 31 280 21299200
170848237 qiqi20021026 SSerxhs Randias M Sept. 4, 2022, 1:50 p.m. OK GNU C++20 (64) TESTS 31 170 25088000
170867029 gua_gua wwwfq X1195160770 M Sept. 4, 2022, 3:47 p.m. OK GNU C++20 (64) TESTS 31 171 16896000
170863761 wild_pointers M Sept. 4, 2022, 3:20 p.m. OK GNU C++20 (64) TESTS 31 171 23859200
170851495 Heltion M Sept. 4, 2022, 2:04 p.m. OK GNU C++20 (64) TESTS 31 202 18329600
170879695 nguyenhoangminh3182003 M Sept. 4, 2022, 5:45 p.m. OK GNU C++20 (64) TESTS 31 202 19353600
170860493 tamthegod KarD1m SSLios2-3 M Sept. 4, 2022, 2:56 p.m. OK GNU C++20 (64) TESTS 31 202 19353600
170856992 namcartoon06 pdduy4206 CoderNTT M Sept. 4, 2022, 2:34 p.m. OK GNU C++20 (64) TESTS 31 202 19353600
170850722 arvindf232 happypotato1207 nicholask M Sept. 4, 2022, 2 p.m. OK GNU C++20 (64) TESTS 31 202 20992000
170850633 yyljkydr Suika_predator oipotato M Sept. 4, 2022, 2 p.m. OK GNU C++20 (64) TESTS 31 202 22528000
170853224 Lavine M Sept. 4, 2022, 2:13 p.m. OK GNU C++20 (64) TESTS 31 202 27136000
170864792 ekwek M Sept. 4, 2022, 3:28 p.m. OK Java 11 TESTS 31 857 52428800
170905816 XYShaoKang M Sept. 5, 2022, 2:57 a.m. OK Node.js TESTS 31 967 50380800
170907148 XYShaoKang M Sept. 5, 2022, 3:32 a.m. OK Node.js TESTS 31 998 59187200
170884142 Wendy0317 M Sept. 4, 2022, 6:33 p.m. OK PyPy 3-64 TESTS 31 997 85811200

remove filters

Back to search problems