Educational Codeforces Round 50 (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
1036 Educational Codeforces Round 50 (Rated for Div. 2) FINISHED False 7200 195492299 Sept. 7, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 381 ) G Sources and Sinks PROGRAMMING bitmasks brute force dfs and similar 2800

B'You are given an acyclic directed graph, consisting of n vertices and m edges. The graph contains no multiple edges and no self-loops. The vertex is called a source if it has no incoming edges. The vertex is called a sink if it has no outgoing edges. These definitions imply that some vertices can be both source and sink. The number of sources in the given graph is equal to the number of sinks in it, and each of these numbers doesn 't exceed 20 . The following algorithm is applied to the graph: At the end you check if the graph becomes strongly connected (that is, any vertex is reachable from any other vertex). Your task is to check that the graph becomes strongly connected no matter the choice of sources and sinks on the second step of the algorithm. The first line contains two integers n and m ( 1 <= n, m <= 10^6 ) -- the number of vertices and the number of edges in the graph, respectively. Each of the next m lines contains two integers v_i, u_i ( 1 <= v_i, u_i <= n , v_i ne u_i ) -- the description of the i -th edge of the original graph. It is guaranteed that the number of sources and the number of sinks in the graph are the same and they don 't exceed 20 . It is guaranteed that the given graph contains no multiple edges. It is guaranteed that the graph contains no cycles. Print "YES" if the graph becomes strongly connected no matter the choice of sources and sinks on the second step of the algorithm. Otherwise print "NO". '...

Tutorials

61727

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42752332 ljt12138 G Sept. 11, 2018, 3:32 a.m. OK GNU C++11 TESTS 70 202 28057600 2800
44751681 ReaLNero1 G Oct. 23, 2018, 8:18 p.m. OK GNU C++11 TESTS 70 311 28467200 2800
43023066 00zj G Sept. 18, 2018, 6:46 a.m. OK GNU C++11 TESTS 70 358 28774400 2800
43224278 tritanngo99 G Sept. 21, 2018, 8:09 p.m. OK GNU C++11 TESTS 70 373 28569600 2800
65732860 luhong G Nov. 26, 2019, 6:11 a.m. OK GNU C++11 TESTS 70 374 72396800 2800
43167943 PiCaHor G Sept. 21, 2018, 6:24 a.m. OK GNU C++11 TESTS 70 389 28774400 2800
42756827 251 G Sept. 11, 2018, 7:48 a.m. OK GNU C++11 TESTS 70 389 84582400 2800
42827644 251 G Sept. 13, 2018, 11:16 a.m. OK GNU C++11 TESTS 70 405 84582400 2800
42751969 Democy G Sept. 11, 2018, 3:10 a.m. OK GNU C++11 TESTS 70 483 92160000 2800
60445732 Kloze G Sept. 12, 2019, 2:05 p.m. OK GNU C++11 TESTS 70 514 80998400 2800
46046992 pr3pony G Nov. 22, 2018, 3:24 a.m. OK GNU C++14 TESTS 70 561 72294400 2800
43020556 zhangqingqi G Sept. 18, 2018, 4:22 a.m. OK GNU C++14 TESTS 70 576 88473600 2800
42662025 antguz G Sept. 8, 2018, 5:16 a.m. OK GNU C++14 TESTS 70 608 90419200 2800
44164850 gs18115 G Oct. 12, 2018, midnight OK GNU C++14 TESTS 70 623 37376000 2800
42716782 eidan G Sept. 9, 2018, 7:45 p.m. OK GNU C++14 TESTS 70 623 84275200 2800
42740614 NamikazeBoruto G Sept. 10, 2018, 4:03 p.m. OK GNU C++14 TESTS 70 638 96563200 2800
42786108 Marckess G Sept. 12, 2018, 4:24 a.m. OK GNU C++14 TESTS 70 639 84275200 2800
48406284 DeletedAccount90083864 G Jan. 15, 2019, 4:06 a.m. OK GNU C++14 TESTS 70 670 36454400 2800
42815013 kmjp G Sept. 13, 2018, 12:35 a.m. OK GNU C++14 TESTS 70 670 40550400 2800
42739930 ShadowLight G Sept. 10, 2018, 3:41 p.m. OK GNU C++14 TESTS 70 670 88268800 2800
64188330 pootis G Nov. 4, 2019, 6:29 a.m. OK GNU C++17 TESTS 70 482 44339200 2800
50155491 pschuprikov G Feb. 19, 2019, 9:47 a.m. OK GNU C++17 TESTS 70 545 68505600 2800
49561632 Minnakhmetov G Feb. 7, 2019, 12:50 p.m. OK GNU C++17 TESTS 70 545 91750400 2800
68080685 hjk1030 G Jan. 2, 2020, 2:16 p.m. OK GNU C++17 TESTS 70 561 76288000 2800
64455462 9baka_Cirno G Nov. 7, 2019, 8:34 a.m. OK GNU C++17 TESTS 70 592 72192000 2800
52792955 Medeowex G April 15, 2019, 6:33 p.m. OK GNU C++17 TESTS 70 624 85196800 2800
42658483 chenyeyuan G Sept. 8, 2018, 1:44 a.m. OK GNU C++17 TESTS 70 638 104652800 2800
42717272 ThePontiacBandit G Sept. 9, 2018, 8:09 p.m. OK GNU C++17 TESTS 70 670 94310400 2800
54263107 tfg G May 17, 2019, 3:43 a.m. OK GNU C++17 TESTS 70 717 45875200 2800
42650175 vhnvn G Sept. 7, 2018, 6:02 p.m. OK GNU C++17 TESTS 70 779 72806400 2800
56823950 7dan G July 11, 2019, 2:48 a.m. OK Java 8 TESTS 70 1060 43622400 2800
58522698 allin77 G Aug. 10, 2019, 5:43 a.m. OK Java 8 TESTS 70 3977 370483200 2800
42767790 olya-chuchuk G Sept. 11, 2018, 2 p.m. OK Java 8 TESTS 70 4274 129024000 2800
42827197 xodiac G Sept. 13, 2018, 11:01 a.m. OK Java 8 TESTS 70 6785 191692800 2800
58541430 Spiritum G Aug. 10, 2019, 2:23 p.m. OK MS C++ 2017 TESTS 70 3540 80998400 2800

remove filters

Back to search problems