2021-2022 ICPC, NERC, Northern Eurasia Onsite (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
1666 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 81986099 April 13, 2022, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1365 ) J Job Lookup PROGRAMMING constructive algorithms dp

B"Julia's n friends want to organize a startup in a new country they moved to. They assigned each other numbers from 1 to n according to the jobs they have, from the most front-end tasks to the most back-end ones. They also estimated a matrix c , where c_{ij} = c_{ji} is the average number of messages per month between people doing jobs i and j . Now they want to make a hierarchy tree. It will be a binary tree with each node containing one member of the team. Some member will be selected as a leader of the team and will be contained in the root node. In order for the leader to be able to easily reach any subordinate, for each node v of the tree, the following should apply: all members in its left subtree must have smaller numbers than v , and all members in its right subtree must have larger numbers than v . After the hierarchy tree is settled, people doing jobs i and j will be communicating via the shortest path in the tree between their nodes. Let's denote the length of this path as d_{ij} . Thus, the cost of their communication is c_{ij} cdot d_{ij} . Your task is to find a hierarchy tree that minimizes the total cost of communication over all pairs: sum_{1 <= i < j <= n} c_{ij} cdot d_{ij} . The first line contains an integer n ( 1 <= n <= 200 ) xe2 x80 x93 the number of team members organizing a startup. The next n lines contain n integers each, j -th number in i -th line is c_{ij} -- the estimated number of messages per month between team members i and j ( 0 <= c_{ij} <= 10^9; c_{ij} = c_{ji}; c_{ii} = 0 ). Output a description of a hierarchy tree that minimizes the total cost of communication. To do so, for each team member from 1 to n output the number of the member in its parent node, or 0 for the leader. If there are many optimal trees, output a description of any one of them. The minimal possible total cost i"...

Tutorials

Tutorial (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
153536743 rfpermen Ace_02 AVM.Martin J April 13, 2022, 8:47 a.m. OK GNU C++14 TESTS 28 31 716800
153554126 themoon Linx. J April 13, 2022, 11:41 a.m. OK GNU C++14 TESTS 28 31 819200
153540747 qinzhaoyang J April 13, 2022, 9:21 a.m. OK GNU C++14 TESTS 28 31 921600
153540109 awoo Neon vovuh J April 13, 2022, 9:15 a.m. OK GNU C++14 TESTS 28 31 921600
153557523 RiverHamster q-w-q-w-q Suiseiseki J April 13, 2022, 12:16 p.m. OK GNU C++14 TESTS 28 31 1126400
153540183 LZDQ heaksicn andychen2012 J April 13, 2022, 9:16 a.m. OK GNU C++14 TESTS 28 31 1536000
153541287 iterater ZGS_WZY Wall_breaker J April 13, 2022, 9:26 a.m. OK GNU C++14 TESTS 28 46 819200
153561451 wsyhb J April 13, 2022, 12:57 p.m. OK GNU C++14 TESTS 28 46 1024000
153550986 Commonrain fzcsyglq NULL0x7f J April 13, 2022, 11:07 a.m. OK GNU C++14 TESTS 28 46 1024000
153550517 Jimanbanashi J April 13, 2022, 11:02 a.m. OK GNU C++14 TESTS 28 46 1024000
153553071 MessyW1nd J April 13, 2022, 11:29 a.m. OK GNU C++17 TESTS 28 31 716800
153539538 AhmedEzzatG maghrabyJr_ J April 13, 2022, 9:10 a.m. OK GNU C++17 TESTS 28 31 819200
153602377 xxafhixx J April 14, 2022, 2:57 a.m. OK GNU C++17 TESTS 28 31 1024000
153581846 serotonin J April 13, 2022, 5:32 p.m. OK GNU C++17 TESTS 28 31 1024000
153550651 black_roses J April 13, 2022, 11:04 a.m. OK GNU C++17 TESTS 28 31 1024000
153547095 jiuruifu acwing_meow wxy2005 J April 13, 2022, 10:25 a.m. OK GNU C++17 TESTS 28 31 1024000
153547671 Thost J April 13, 2022, 10:31 a.m. OK GNU C++17 TESTS 28 31 1126400
153539383 Ekler vepifanov J April 13, 2022, 9:09 a.m. OK GNU C++17 TESTS 28 31 1126400
153560607 thisisis J April 13, 2022, 12:48 p.m. OK GNU C++17 TESTS 28 31 1228800
153553543 zero4338 lin7xu J April 13, 2022, 11:34 a.m. OK GNU C++17 TESTS 28 31 1228800
153540639 Maripium zhangguangxuan99 nvmdava J April 13, 2022, 9:20 a.m. OK GNU C++17 (64) TESTS 28 15 1228800
153536201 XueYJ blackbird137 Mr_Eight J April 13, 2022, 8:42 a.m. OK GNU C++17 (64) TESTS 28 15 1331200
153556674 Milesian liouzhou_101 lucifer1004 J April 13, 2022, 12:08 p.m. OK GNU C++17 (64) TESTS 28 15 1638400
153542500 Milesian liouzhou_101 lucifer1004 J April 13, 2022, 9:37 a.m. OK GNU C++17 (64) TESTS 28 15 3174400
153534135 Gom gs18115 Retro3014 J April 13, 2022, 8:25 a.m. OK GNU C++17 (64) TESTS 28 30 1228800
153544989 baodaqing Komeiji_Green 1136899240 J April 13, 2022, 10:02 a.m. OK GNU C++17 (64) TESTS 28 30 1536000
153535458 SpyCheese J April 13, 2022, 8:36 a.m. OK GNU C++17 (64) TESTS 28 30 1536000
153557033 user202729_ J April 13, 2022, 12:11 p.m. OK GNU C++17 (64) TESTS 28 31 716800
153538965 fanache99 lumibons J April 13, 2022, 9:05 a.m. OK GNU C++17 (64) TESTS 28 31 1024000
153578360 katzper01 J April 13, 2022, 4:36 p.m. OK GNU C++17 (64) TESTS 28 31 1126400
153571175 iamttm J April 13, 2022, 2:42 p.m. OK GNU C++20 (64) TESTS 28 15 1024000
153545278 Sunnat J April 13, 2022, 10:05 a.m. OK GNU C++20 (64) TESTS 28 15 1024000
153536046 timreizin oleh1421 I_LOVE_DASHA_KARPENKO J April 13, 2022, 8:41 a.m. OK GNU C++20 (64) TESTS 28 15 1024000
153572506 A_G J April 13, 2022, 3:04 p.m. OK GNU C++20 (64) TESTS 28 15 1126400
153545032 Brovko Lankin shnirelman J April 13, 2022, 10:02 a.m. OK GNU C++20 (64) TESTS 28 15 1126400
153600766 YxqK J April 14, 2022, 2:11 a.m. OK GNU C++20 (64) TESTS 28 15 1228800
153549699 wind_cross _chess_ GOODer J April 13, 2022, 10:54 a.m. OK GNU C++20 (64) TESTS 28 15 1331200
153535172 nickcotforce Normie28 generic_placeholder_name J April 13, 2022, 8:34 a.m. OK GNU C++20 (64) TESTS 28 15 1331200
153541606 I_am_Lazy RyoPham quocnguyen J April 13, 2022, 9:29 a.m. OK GNU C++20 (64) TESTS 28 15 1433600
153537611 djq_cpp jiangly MiracleFaFa J April 13, 2022, 8:54 a.m. OK GNU C++20 (64) TESTS 28 30 1024000
153541502 knightL J April 13, 2022, 9:28 a.m. OK Java 11 TESTS 28 264 0
153540695 arvindf232 kevinxiehk nicholask J April 13, 2022, 9:20 a.m. OK Kotlin 1.5 TESTS 28 233 1331200
153540279 RUSH_D_CAT limbo.null NecroSean38 J April 13, 2022, 9:16 a.m. OK PyPy 3 TESTS 28 1232 11059200
153601620 Spheniscine J April 14, 2022, 2:34 a.m. OK Rust 2021 TESTS 28 31 1126400
153544040 sansen J April 13, 2022, 9:53 a.m. OK Rust 2021 TESTS 28 31 2457600

remove filters

Back to search problems