Educational Codeforces Round 163 (Rated for 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
1948 Educational Codeforces Round 163 (Rated for Div. 2) FINISHED False 7200 26666663 March 15, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 721 ) G MST with Matching PROGRAMMING bitmasks brute force trees

B'You are given an undirected connected graph on n vertices. Each edge of this graph has a weight; the weight of the edge connecting vertices i and j is w_{i,j} (or w_{i,j} = 0 if there is no edge between i and j ). All weights are positive integers. You are also given a positive integer c . You have to build a spanning tree of this graph; i. xe2 x80 x89e. choose exactly (n-1) edges of this graph in such a way that every vertex can be reached from every other vertex by traversing some of the chosen edges. The cost of the spanning tree is the sum of two values: Find any spanning tree with the minimum cost. Since the graph is connected, there exists at least one spanning tree. The first line contains two integers n and c ( 2 <= n <= 20 ; 1 <= c <= 10^6 ). Then n lines follow. The i -th of them contains n integers w_{i,1}, w_{i,2}, ... , w_{i,n} ( 0 <= w_{i,j} <= 10^6 ), where w_{i,j} denotes the weight of the edge between i and j (or w_{i,j} = 0 if there is no such edge). Additional constraints on the input: Print one integer -- the minimum cost of a spanning tree of the given graph. In the first example, the minimum cost spanning tree consists of edges (1, 3) , (2, 3) and (3, 4) . The maximum matching for it is 1 . In the second example, the minimum cost spanning tree consists of edges (1, 2) , (2, 3) and (3, 4) . The maximum matching for it is 2 . '...

Tutorials

Educational Codeforces Round 163 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
251596250 karamkontar G March 16, 2024, 1:40 a.m. OK C# 10 TESTS 81 3337 512000
251597350 karamkontar G March 16, 2024, 1:58 a.m. OK C# 10 TESTS 81 3540 512000
251577269 StarSilk G March 15, 2024, 8:55 p.m. OK C++14 (GCC 6-32) TESTS 81 2246 0
251616579 EasonLiang G March 16, 2024, 5:34 a.m. OK C++14 (GCC 6-32) TESTS 81 2324 0
251576871 StarSilk G March 15, 2024, 8:52 p.m. OK C++14 (GCC 6-32) TESTS 81 5912 0
251576639 StarSilk G March 15, 2024, 8:50 p.m. OK C++14 (GCC 6-32) TESTS 81 5990 0
251600024 cmk666 G March 16, 2024, 2:38 a.m. OK C++17 (GCC 7-32) TESTS 81 358 512000
251601893 A_G G March 16, 2024, 3:03 a.m. OK C++17 (GCC 7-32) TESTS 81 436 204800
251566372 jia_xun G March 15, 2024, 7:29 p.m. OK C++17 (GCC 7-32) TESTS 81 826 204800
251562155 peti1234 G March 15, 2024, 6:53 p.m. OK C++17 (GCC 7-32) TESTS 81 1075 1024000
251546696 TheAshenWitch G March 15, 2024, 5:06 p.m. OK C++17 (GCC 7-32) TESTS 81 1231 361472000
251603425 xiaoziyao G March 16, 2024, 3:23 a.m. OK C++17 (GCC 7-32) TESTS 81 1310 0
251600152 LXH-cat G March 16, 2024, 2:39 a.m. OK C++17 (GCC 7-32) TESTS 81 1326 0
251546739 becaido G March 15, 2024, 5:06 p.m. OK C++17 (GCC 7-32) TESTS 81 1341 0
251558242 Geothermal G March 15, 2024, 6:21 p.m. OK C++17 (GCC 7-32) TESTS 81 1388 0
251603116 Sin_Watt G March 16, 2024, 3:19 a.m. OK C++17 (GCC 7-32) TESTS 81 1466 0
251619252 nguyenquocthao00 G March 16, 2024, 5:51 a.m. OK Go TESTS 81 3073 5017600
251620633 nguyenquocthao00 G March 16, 2024, 6 a.m. OK Go TESTS 81 3431 102400
251588961 dzhi G March 15, 2024, 11:23 p.m. OK Java 21 TESTS 81 1123 1024000
251588567 dzhi G March 15, 2024, 11:15 p.m. OK Java 21 TESTS 81 1232 716800
251577279 MagentaCobra G March 15, 2024, 8:56 p.m. OK Java 8 TESTS 81 3650 0
251607444 OLOGY G March 16, 2024, 4:13 a.m. OK PyPy 2 TESTS 81 3805 7782400
251607582 OLOGY G March 16, 2024, 4:15 a.m. OK PyPy 2 TESTS 81 3883 9318400
251577606 OLOGY G March 15, 2024, 8:59 p.m. OK PyPy 2 TESTS 81 3946 9625600
251577965 OLOGY G March 15, 2024, 9:02 p.m. OK PyPy 2 TESTS 81 4071 9625600
251585657 WATilted G March 15, 2024, 10:26 p.m. OK PyPy 3-64 TESTS 81 1918 11366400
251613871 Little_Sheep_Yawn G March 16, 2024, 5:16 a.m. OK PyPy 3-64 TESTS 81 3525 13824000

remove filters

Back to search problems