Educational Codeforces Round 124 (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
1651 Educational Codeforces Round 124 (Rated for Div. 2) FINISHED False 7200 90343463 March 10, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 530 ) E Sum of Matchings PROGRAMMING dfs and similar greedy implementation math

B"Let's denote the size of the maximum matching in a graph G as mathit{MM}(G) . You are given a bipartite graph. The vertices of the first part are numbered from 1 to n , the vertices of the second part are numbered from n+1 to 2n . Each vertex's degree is 2 . For a tuple of four integers (l, r, L, R) , where 1 <= l <= r <= n and n+1 <= L <= R <= 2n , let's define G'(l, r, L, R) as the graph which consists of all vertices of the given graph that are included in the segment [l, r] or in the segment [L, R] , and all edges of the given graph such that each of their endpoints belongs to one of these segments. In other words, to obtain G'(l, r, L, R) from the original graph, you have to remove all vertices i such that i notin [l, r] and i notin [L, R] , and all edges incident to these vertices. Calculate the sum of mathit{MM}(G(l, r, L, R)) over all tuples of integers (l, r, L, R) having 1 <= l <= r <= n and n+1 <= L <= R <= 2n . The first line contains one integer n ( 2 <= n <= 1500 ) -- the number of vertices in each part. Then 2n lines follow, each denoting an edge of the graph. The i -th line contains two integers x_i and y_i ( 1 <= x_i <= n ; n + 1 <= y_i <= 2n ) -- the endpoints of the i -th edge. There are no multiple edges in the given graph, and each vertex has exactly two incident edges. Print one integer -- the sum of mathit{MM}(G(l, r, L, R)) over all tuples of integers (l, r, L, R) having 1 <= l <= r <= n and n+1 <= L <= R <= 2n . "...

Tutorials

Educational Codeforces Round 124 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
149203962 Tyyyyyy E March 11, 2022, 3:01 a.m. OK GNU C++14 TESTS 61 31 102400
149173925 aaa2333333 E March 10, 2022, 4:57 p.m. OK GNU C++14 TESTS 61 62 307200
149200883 __Watcher E March 11, 2022, 1:46 a.m. OK GNU C++14 TESTS 61 93 102400
149197872 cp152 E March 11, 2022, 12:05 a.m. OK GNU C++14 TESTS 61 93 102400
149164085 cp152 E March 10, 2022, 4:24 p.m. OK GNU C++14 TESTS 61 93 102400
149181218 Serval E March 10, 2022, 6:05 p.m. OK GNU C++14 TESTS 61 93 204800
149163314 dlalswp25 E March 10, 2022, 4:22 p.m. OK GNU C++14 TESTS 61 93 307200
149164074 Timsei E March 10, 2022, 4:24 p.m. OK GNU C++14 TESTS 61 140 409600
149198380 Crying E March 11, 2022, 12:25 a.m. OK GNU C++14 TESTS 61 171 409600
149170866 Areus E March 10, 2022, 4:39 p.m. OK GNU C++14 TESTS 61 405 307200
149207505 gkc_chaitu E March 11, 2022, 4:09 a.m. OK GNU C++17 TESTS 61 46 204800
149198721 peti1234 E March 11, 2022, 12:37 a.m. OK GNU C++17 TESTS 61 46 204800
149200063 tokusakurai E March 11, 2022, 1:21 a.m. OK GNU C++17 TESTS 61 46 409600
149181020 0000601 E March 10, 2022, 6:03 p.m. OK GNU C++17 TESTS 61 46 409600
149179381 keta_tsimakuridze E March 10, 2022, 5:45 p.m. OK GNU C++17 TESTS 61 46 5836800
149200876 zech E March 11, 2022, 1:46 a.m. OK GNU C++17 TESTS 61 62 409600
149200661 zech E March 11, 2022, 1:39 a.m. OK GNU C++17 TESTS 61 62 409600
149197287 Omer223 E March 10, 2022, 11:42 p.m. OK GNU C++17 TESTS 61 62 409600
149196732 GeorgesStPierre E March 10, 2022, 11:24 p.m. OK GNU C++17 TESTS 61 62 409600
149176021 IgorI E March 10, 2022, 5:14 p.m. OK GNU C++17 TESTS 61 62 512000
149190874 Komeiji_Green E March 10, 2022, 8:27 p.m. OK GNU C++17 (64) TESTS 61 31 102400
149182213 Kude E March 10, 2022, 6:16 p.m. OK GNU C++17 (64) TESTS 61 31 102400
149195698 stevenkplus E March 10, 2022, 10:29 p.m. OK GNU C++17 (64) TESTS 61 31 204800
149198119 xzzduang E March 11, 2022, 12:15 a.m. OK GNU C++17 (64) TESTS 61 31 512000
149170361 jiangruizhang E March 10, 2022, 4:37 p.m. OK GNU C++17 (64) TESTS 61 31 4915200
149170091 haruki_K E March 10, 2022, 4:36 p.m. OK GNU C++17 (64) TESTS 61 46 614400
149164779 natsugiri E March 10, 2022, 4:25 p.m. OK GNU C++17 (64) TESTS 61 78 204800
149202302 fxhd E March 11, 2022, 2:25 a.m. OK GNU C++17 (64) TESTS 61 156 204800
149200555 kal013 E March 11, 2022, 1:36 a.m. OK GNU C++17 (64) TESTS 61 234 204800
149196290 Derbent E March 10, 2022, 10:49 p.m. OK GNU C++17 (64) TESTS 61 2215 819200
149201154 Jamey E March 11, 2022, 1:54 a.m. OK GNU C++20 (64) TESTS 61 31 102400
149197094 Jamey E March 10, 2022, 11:35 p.m. OK GNU C++20 (64) TESTS 61 31 102400
149166223 keta_tsimakuridze1 E March 10, 2022, 4:28 p.m. OK GNU C++20 (64) TESTS 61 31 8089600
149166478 physics0523 E March 10, 2022, 4:29 p.m. OK GNU C++20 (64) TESTS 61 46 204800
149173766 disastah E March 10, 2022, 4:56 p.m. OK GNU C++20 (64) TESTS 61 46 307200
149173989 foreverlastnig1202 E March 10, 2022, 4:58 p.m. OK GNU C++20 (64) TESTS 61 46 512000
149189416 A_G E March 10, 2022, 8 p.m. OK GNU C++20 (64) TESTS 61 62 204800
149194860 Tatsuyaaaa E March 10, 2022, 10:04 p.m. OK GNU C++20 (64) TESTS 61 78 307200
149170915 Yuu E March 10, 2022, 4:40 p.m. OK GNU C++20 (64) TESTS 61 78 409600
149172417 Bench0310 E March 10, 2022, 4:48 p.m. OK GNU C++20 (64) TESTS 61 93 102400
149178002 YahiaSherif E March 10, 2022, 5:30 p.m. OK Java 11 TESTS 61 467 0
149163577 LXl491214 E March 10, 2022, 4:23 p.m. OK MS C++ 2017 TESTS 61 436 307200
149170596 SPD_9X2 E March 10, 2022, 4:38 p.m. OK PyPy 3 TESTS 61 1060 10240000
149165084 bpdolson E March 10, 2022, 4:26 p.m. OK PyPy 3-64 TESTS 61 639 10956800

remove filters

Back to search problems