Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)

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
1556 Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) FINISHED False 9000 107018663 Aug. 29, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 378 ) H DIY Tree PROGRAMMING graphs greedy math 3300

B'William really likes puzzle kits. For one of his birthdays, his friends gifted him a complete undirected edge-weighted graph consisting of n vertices. He wants to build a spanning tree of this graph, such that for the first k vertices the following condition is satisfied: the degree of a vertex with index i does not exceed d_i . Vertices from k + 1 to n may have any degree. William wants you to find the minimum weight of a spanning tree that satisfies all the conditions. A spanning tree is a subset of edges of a graph that forms a tree on all n vertices of the graph. The weight of a spanning tree is defined as the sum of weights of all the edges included in a spanning tree. The first line of input contains two integers n , k ( 2 <= q n <= q 50 , 1 <= q k <= q min(n - 1, 5) ). The second line contains k integers d_1, d_2, ldots, d_k ( 1 <= q d_i <= q n ). The i -th of the next n - 1 lines contains n - i integers w_{i,i+1}, w_{i,i+2}, ldots, w_{i,n} ( 1 <= q w_{i,j} <= q 100 ): weights of edges (i,i+1),(i,i+2), ldots,(i,n) . Print one integer: the minimum weight of a spanning tree under given degree constraints for the first k vertices. '...

Tutorials

94384

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
127391319 Subconscious H Aug. 29, 2021, 5:03 p.m. OK GNU C++14 TESTS 139 31 3993600 3300
127394050 Radewoosh H Aug. 29, 2021, 6:04 p.m. OK GNU C++14 TESTS 139 1107 54579200 3300
127396847 kakaKK H Aug. 29, 2021, 6:34 p.m. OK GNU C++14 TESTS 139 1123 4812800 3300
127403537 -skyline- H Aug. 29, 2021, 9:16 p.m. OK GNU C++14 TESTS 139 2932 3993600 3300
127384873 peehs_moorhsum H Aug. 29, 2021, 4:44 p.m. OK GNU C++14 TESTS 139 3291 4505600 3300
127412814 tianbu H Aug. 30, 2021, 3:19 a.m. OK GNU C++14 TESTS 139 5538 3891200 3300
127408573 tianbu H Aug. 30, 2021, 1:14 a.m. OK GNU C++14 TESTS 139 5553 3891200 3300
127394013 Benq H Aug. 29, 2021, 6:04 p.m. OK GNU C++17 TESTS 139 1106 4710400 3300
127395966 .monkey H Aug. 29, 2021, 6:23 p.m. OK GNU C++17 TESTS 139 1169 4812800 3300
127419455 avinashdokala2002 H Aug. 30, 2021, 5:44 a.m. OK GNU C++17 TESTS 140 1216 4812800 3300
127381921 TLE H Aug. 29, 2021, 4:33 p.m. OK GNU C++17 TESTS 139 1357 9625600 3300
127387774 MonkeyKing H Aug. 29, 2021, 4:53 p.m. OK GNU C++17 TESTS 139 1840 3788800 3300
127386870 Benq H Aug. 29, 2021, 4:50 p.m. OK GNU C++17 TESTS 139 4227 5017600 3300
127416100 LJC00118 H Aug. 30, 2021, 4:35 a.m. OK GNU C++17 TESTS 139 5818 6656000 3300
127397247 sh1194 H Aug. 29, 2021, 6:40 p.m. OK GNU C++17 (64) TESTS 139 46 4403200 3300
127397150 sh1194 H Aug. 29, 2021, 6:39 p.m. OK GNU C++17 (64) TESTS 139 46 4403200 3300
127395804 blackbori H Aug. 29, 2021, 6:20 p.m. OK GNU C++17 (64) TESTS 139 46 4403200 3300
127395609 blackbori H Aug. 29, 2021, 6:18 p.m. OK GNU C++17 (64) TESTS 139 46 4403200 3300
127391364 Nyaan H Aug. 29, 2021, 5:04 p.m. OK GNU C++17 (64) TESTS 139 93 4505600 3300
127394710 BigBag H Aug. 29, 2021, 6:09 p.m. OK GNU C++17 (64) TESTS 139 93 4710400 3300
127394566 BigBag H Aug. 29, 2021, 6:08 p.m. OK GNU C++17 (64) TESTS 139 187 4710400 3300
127394843 BigBag H Aug. 29, 2021, 6:10 p.m. OK GNU C++17 (64) TESTS 139 421 6553600 3300
127389040 ecnerwala H Aug. 29, 2021, 4:58 p.m. OK GNU C++17 (64) TESTS 139 530 4710400 3300
127413892 Heltion H Aug. 30, 2021, 3:45 a.m. OK GNU C++17 (64) TESTS 139 998 4403200 3300

remove filters

Back to search problems