Educational Codeforces Round 134 (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
1721 Educational Codeforces Round 134 (Rated for Div. 2) FINISHED False 7200 75655462 Aug. 27, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 413 ) F Matching Reduction PROGRAMMING graph matchings interactive

B'You are given a bipartite graph with n_1 vertices in the first part, n_2 vertices in the second part, and m edges. The maximum matching in this graph is the maximum possible (by size) subset of edges of this graph such that no vertex is incident to more than one chosen edge. You have to process two types of queries to this graph: Note that you should solve the problem in online mode. It means that you can 't read the whole input at once. You can read each query only after writing the answer for the last query. Use functions fflush in C++ and BufferedWriter.flush in Java languages after each writing in your program. The first line contains four integers n_1 , n_2 , m and q ( 1 <= n_1, n_2 <= 2 cdot 10^5 ; 1 <= m <= min(n_1 cdot n_2, 2 cdot 10^5) ; 1 <= q <= 2 cdot 10^5 ). Then m lines follow. The i -th of them contains two integers x_i and y_i ( 1 <= x_i <= n_1 ; 1 <= y_i <= n_2 ) meaning that the i -th edge connects the vertex x_i in the first part and the vertex y_i in the second part. There are no pairs of vertices that are connected by more than one edge. Then q lines follow. The i -th of them contains one integer, 1 or 2 , denoting the i -th query. Additional constraints on queries: For a query of type 1 , print the answer in three lines as follows: For a query of type 2 , print the answer in two lines as follows: After printing the answer to a query, don 't forget to flush the output. In this problem, you may receive the verdict "Idleness Limit Exceeded" since it is in online mode. If it happens, it means that either the output format is wrong, or you don 't meet some constraint of the problem. You may treat this verdict as "Wrong Answer". For your convenience, the output for queries in the example is separated by the line ===. Don 't print this line in your program, it is done only to make sure that it'...

Tutorials

106416

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
169925365 L7-56 F Aug. 28, 2022, 1:46 a.m. OK GNU C++14 TESTS 54 1263 49459200
169893694 dai F Aug. 27, 2022, 4:47 p.m. OK GNU C++14 TESTS 54 1341 27852800
169894715 using233 F Aug. 27, 2022, 4:53 p.m. OK GNU C++14 TESTS 54 1341 42291200
169887978 phtniit4cnround F Aug. 27, 2022, 4:30 p.m. OK GNU C++14 TESTS 54 2105 115712000
169927461 A.I.S F Aug. 28, 2022, 2:29 a.m. OK GNU C++14 TESTS 54 2121 79155200
169927165 danxmz2006 F Aug. 28, 2022, 2:23 a.m. OK GNU C++17 TESTS 54 1326 28467200
169898455 Hasan0540 F Aug. 27, 2022, 5:19 p.m. OK GNU C++17 TESTS 54 1497 44851200
169897566 Hasan0540 F Aug. 27, 2022, 5:11 p.m. OK GNU C++17 TESTS 54 1497 44851200
169936536 ih_safy F Aug. 28, 2022, 5:25 a.m. OK GNU C++17 TESTS 54 1606 60825600
169898312 infurnity F Aug. 27, 2022, 5:17 p.m. OK GNU C++17 TESTS 54 1684 350924800
169894912 kamoh_8 F Aug. 27, 2022, 4:54 p.m. OK GNU C++17 TESTS 54 1699 49664000
169919871 WindFromTmw F Aug. 27, 2022, 10:52 p.m. OK GNU C++17 TESTS 54 1809 79052800
169890280 huge_waxberry F Aug. 27, 2022, 4:34 p.m. OK GNU C++17 TESTS 54 1887 137420800
169889729 huge_waxberry F Aug. 27, 2022, 4:33 p.m. OK GNU C++17 TESTS 54 1933 141516800
169931005 kk19212 F Aug. 28, 2022, 3:39 a.m. OK GNU C++17 TESTS 54 2449 71680000
169908680 eriksuenderhauf F Aug. 27, 2022, 7:03 p.m. OK GNU C++17 (64) TESTS 54 998 50073600
169897102 haruki_K F Aug. 27, 2022, 5:08 p.m. OK GNU C++17 (64) TESTS 54 1185 30617600
169935539 Raven7959 F Aug. 28, 2022, 5:10 a.m. OK GNU C++17 (64) TESTS 54 1403 71168000
169922077 MateoCV F Aug. 28, 2022, 12:11 a.m. OK GNU C++17 (64) TESTS 54 1418 71168000
169930669 WHC-MIK-7521X F Aug. 28, 2022, 3:31 a.m. OK GNU C++17 (64) TESTS 54 1699 66150400
169927802 triple__a F Aug. 28, 2022, 2:35 a.m. OK GNU C++17 (64) TESTS 54 1996 104960000
169895182 kimoyami F Aug. 27, 2022, 4:56 p.m. OK GNU C++17 (64) TESTS 54 2292 87449600
169894668 A_G F Aug. 27, 2022, 4:53 p.m. OK GNU C++20 (64) TESTS 54 1138 13414400
169908303 wangyi.wukun F Aug. 27, 2022, 6:58 p.m. OK GNU C++20 (64) TESTS 54 1216 46796800
169909809 wangyi.wukun F Aug. 27, 2022, 7:19 p.m. OK GNU C++20 (64) TESTS 54 1247 48435200
169908972 wangyi.wukun F Aug. 27, 2022, 7:06 p.m. OK GNU C++20 (64) TESTS 54 1278 49459200
169910006 wangyi.wukun F Aug. 27, 2022, 7:22 p.m. OK GNU C++20 (64) TESTS 54 1325 48640000
169904922 wangyi.wukun F Aug. 27, 2022, 6:19 p.m. OK GNU C++20 (64) TESTS 54 1356 46796800
169901876 huangxiaohua F Aug. 27, 2022, 5:48 p.m. OK GNU C++20 (64) TESTS 54 1388 107520000
169927054 win10 F Aug. 28, 2022, 2:21 a.m. OK GNU C++20 (64) TESTS 54 1668 52224000
169935836 Forza_Ferrari F Aug. 28, 2022, 5:14 a.m. OK GNU C++20 (64) TESTS 54 1669 158105600
169924664 xay5421 F Aug. 28, 2022, 1:33 a.m. OK GNU C++20 (64) TESTS 54 1762 83660800

remove filters

Back to search problems