Educational Codeforces Round 105 (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
1494 Educational Codeforces Round 105 (Rated for Div. 2) FINISHED False 7200 122483663 March 2, 2021, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1872 ) E A-Z Graph PROGRAMMING constructive algorithms data structures graphs

B"You are given a directed graph consisting of n vertices. Each directed edge (or arc) labeled with a single character. Initially, the graph is empty. You should process m queries with it. Each query is one of three types: The first line contains two integers n and m ( 2 <= n <= 2 cdot 10^5 ; 1 <= m <= 2 cdot 10^5 ) -- the number of vertices in the graph and the number of queries. The next m lines contain queries -- one per line. Each query is one of three types: It's guaranteed that you don't add multiple edges and erase only existing edges. Also, there is at least one query of the third type. For each query of the third type, print YES if there exist the sequence v_1, v_2, ... , v_k described above, or NO otherwise. In the first query of the third type k = 3 , we can, for example, choose a sequence [1, 2, 3] , since 1 xrightarrow{ text{a}} 2 xrightarrow{ text{b}} 3 and 3 xrightarrow{ text{a}} 2 xrightarrow{ text{b}} 1 . In the second query of the third type k = 2 , and we can't find sequence p_1, p_2 such that arcs (p_1, p_2) and (p_2, p_1) have the same characters. In the third query of the third type, we can, for example, choose a sequence [1, 2, 3, 2, 1] , where 1 xrightarrow{ text{a}} 2 xrightarrow{ text{b}} 3 xrightarrow{ text{d}} 2 xrightarrow{ text{c}} 1 . "...

Tutorials

Educational Codeforces Round 105 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
108938664 xh092113 E March 2, 2021, 4:33 p.m. OK GNU C++11 TESTS 22 77 8089600
108947285 2018LZY E March 2, 2021, 5:03 p.m. OK GNU C++11 TESTS 22 124 11264000
108966799 vandoor E March 3, 2021, 1:16 a.m. OK GNU C++11 TESTS 22 140 4198400
108937401 allfadeaway E March 2, 2021, 4:30 p.m. OK GNU C++11 TESTS 22 140 6451200
108970628 heguangfu E March 3, 2021, 3:35 a.m. OK GNU C++11 TESTS 22 140 8089600
108948232 George_Plover E March 2, 2021, 5:11 p.m. OK GNU C++11 TESTS 22 156 10342400
108936204 anodiebird E March 2, 2021, 4:26 p.m. OK GNU C++11 TESTS 22 156 11264000
108939188 Lusterdawn E March 2, 2021, 4:34 p.m. OK GNU C++11 TESTS 22 171 11264000
108942624 RUI_R E March 2, 2021, 4:41 p.m. OK GNU C++11 TESTS 22 218 4096000
108970614 abcdhhhh E March 3, 2021, 3:34 a.m. OK GNU C++11 TESTS 22 249 4096000
108943149 markitos E March 2, 2021, 4:42 p.m. OK GNU C++14 TESTS 22 139 7168000
108962617 antguz E March 2, 2021, 9:28 p.m. OK GNU C++14 TESTS 22 139 8294400
108962023 Graphter E March 2, 2021, 9:08 p.m. OK GNU C++14 TESTS 22 140 9011200
108955447 rainnoob E March 2, 2021, 6:44 p.m. OK GNU C++14 TESTS 22 171 6041600
108955350 NaimSS E March 2, 2021, 6:42 p.m. OK GNU C++14 TESTS 22 171 11468800
108946677 blackcaps E March 2, 2021, 4:58 p.m. OK GNU C++14 TESTS 22 187 13107200
108969611 nandonathaniel E March 3, 2021, 3:06 a.m. OK GNU C++14 TESTS 22 202 4198400
108964823 jerdno E March 2, 2021, 11:19 p.m. OK GNU C++14 TESTS 22 202 4198400
108959370 Peti E March 2, 2021, 7:57 p.m. OK GNU C++14 TESTS 22 202 4198400
108942501 _dg_ E March 2, 2021, 4:41 p.m. OK GNU C++14 TESTS 22 202 4198400

remove filters

Back to search problems