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 |
---|---|---|---|---|---|---|
1463 | Educational Codeforces Round 100 (Rated for Div. 2) | FINISHED | False | 7200 | 129137111 | Dec. 17, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1556 ) | E | Plan of Lectures | PROGRAMMING | dfs and similar ds graphs |
B"Ivan is a programming teacher. During the academic year, he plans to give n lectures on n different topics. Each topic should be used in exactly one lecture. Ivan wants to choose which topic will he explain during the 1 -st, 2 -nd, ..., n -th lecture -- formally, he wants to choose some permutation of integers from 1 to n (let's call this permutation q ). q_i is the index of the topic Ivan will explain during the i -th lecture. For each topic (except exactly one), there exists a prerequisite topic (for the topic i , the prerequisite topic is p_i ). Ivan cannot give a lecture on a topic before giving a lecture on its prerequisite topic. There exists at least one valid ordering of topics according to these prerequisite constraints. Ordering the topics correctly can help students understand the lectures better. Ivan has k special pairs of topics (x_i, y_i) such that he knows that the students will understand the y_i -th topic better if the lecture on it is conducted right after the lecture on the x_i -th topic. Ivan wants to satisfy the constraints on every such pair, that is, for every i in [1, k] , there should exist some j in [1, n - 1] such that q_j = x_i and q_{j + 1} = y_i . Now Ivan wants to know if there exists an ordering of topics that satisfies all these constraints, and if at least one exists, find any of them. The first line contains two integers n and k ( 2 <= n <= 3 cdot 10^5 , 1 <= k <= n - 1 ) -- the number of topics and the number of special pairs of topics, respectively. The second line contains n integers p_1 , p_2 , ..., p_n ( 0 <= p_i <= n ), where p_i is the prerequisite topic for the topic i (or p_i = 0 if the i -th topic has no prerequisite topics). Exactly one of these integers is 0 . At least one ordering of topics such that for every i$"... |
Educational Codeforces Round 100 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
101607284 | fishcathu. | E | Dec. 18, 2020, 4:43 a.m. | OK | GNU C++11 | TESTS | 65 | 124 | 8908800 | ||
101607215 | fishcathu. | E | Dec. 18, 2020, 4:41 a.m. | OK | GNU C++11 | TESTS | 65 | 124 | 29184000 | ||
101607156 | fishcathu. | E | Dec. 18, 2020, 4:40 a.m. | OK | GNU C++11 | TESTS | 65 | 139 | 8908800 | ||
101607354 | fishcathu. | E | Dec. 18, 2020, 4:44 a.m. | OK | GNU C++11 | TESTS | 65 | 155 | 8908800 | ||
101607086 | fishcathu. | E | Dec. 18, 2020, 4:38 a.m. | OK | GNU C++11 | TESTS | 65 | 155 | 9932800 | ||
101602174 | guoyifan | E | Dec. 18, 2020, 2:14 a.m. | OK | GNU C++11 | TESTS | 65 | 187 | 16384000 | ||
101572937 | Hello_zhr | E | Dec. 17, 2020, 4:22 p.m. | OK | GNU C++11 | TESTS | 65 | 218 | 43315200 | ||
101599898 | charlie_yan | E | Dec. 18, 2020, 12:21 a.m. | OK | GNU C++11 | TESTS | 65 | 234 | 36761600 | ||
101579585 | fzeovo | E | Dec. 17, 2020, 4:40 p.m. | OK | GNU C++11 | TESTS | 65 | 249 | 22323200 | ||
101583430 | AdelShakal | E | Dec. 17, 2020, 5:13 p.m. | OK | GNU C++11 | TESTS | 65 | 312 | 20480000 | ||
101571231 | cksberry | E | Dec. 17, 2020, 4:17 p.m. | OK | GNU C++14 | TESTS | 65 | 280 | 34508800 | ||
101589444 | Ankit_2399 | E | Dec. 17, 2020, 6:42 p.m. | OK | GNU C++14 | TESTS | 65 | 296 | 21708800 | ||
101604568 | Joysky | E | Dec. 18, 2020, 3:31 a.m. | OK | GNU C++14 | TESTS | 65 | 296 | 134144000 | ||
101582136 | SuperJ6 | E | Dec. 17, 2020, 4:59 p.m. | OK | GNU C++14 | TESTS | 65 | 326 | 16486400 | ||
101605215 | Joysky | E | Dec. 18, 2020, 3:49 a.m. | OK | GNU C++14 | TESTS | 65 | 327 | 134144000 | ||
101582506 | SuperJ6 | E | Dec. 17, 2020, 5:03 p.m. | OK | GNU C++14 | TESTS | 65 | 374 | 16486400 | ||
101592299 | ariloc | E | Dec. 17, 2020, 7:40 p.m. | OK | GNU C++14 | TESTS | 65 | 389 | 29798400 | ||
101593587 | sudoBug | E | Dec. 17, 2020, 8:12 p.m. | OK | GNU C++14 | TESTS | 65 | 390 | 20070400 | ||
101570893 | huyhoangk36chv | E | Dec. 17, 2020, 4:16 p.m. | OK | GNU C++14 | TESTS | 65 | 390 | 32768000 | ||
101580431 | _no0B | E | Dec. 17, 2020, 4:45 p.m. | OK | GNU C++14 | TESTS | 65 | 421 | 18841600 | ||
101570029 | LayCurse | E | Dec. 17, 2020, 4:14 p.m. | OK | GNU C++17 | TESTS | 65 | 124 | 121344000 | ||
101600808 | liangzihao | E | Dec. 18, 2020, 1:10 a.m. | OK | GNU C++17 | TESTS | 65 | 264 | 16486400 | ||
101610122 | Ali.Kh | E | Dec. 18, 2020, 5:39 a.m. | OK | GNU C++17 | TESTS | 65 | 280 | 24780800 | ||
101610113 | StelaYuri | E | Dec. 18, 2020, 5:39 a.m. | OK | GNU C++17 | TESTS | 65 | 295 | 15564800 | ||
101610799 | crystaalroo | E | Dec. 18, 2020, 5:48 a.m. | OK | GNU C++17 | TESTS | 65 | 295 | 19763200 | ||
101569898 | Bugman | E | Dec. 17, 2020, 4:14 p.m. | OK | GNU C++17 | TESTS | 65 | 296 | 30822400 | ||
101599980 | vjudge1 | E | Dec. 18, 2020, 12:25 a.m. | OK | GNU C++17 | TESTS | 65 | 296 | 36864000 | ||
101571747 | Hyperbolic | E | Dec. 17, 2020, 4:19 p.m. | OK | GNU C++17 | TESTS | 65 | 311 | 20070400 | ||
101605224 | 00001 | E | Dec. 18, 2020, 3:49 a.m. | OK | GNU C++17 | TESTS | 65 | 311 | 134144000 | ||
101609129 | Imagine_I | E | Dec. 18, 2020, 5:22 a.m. | OK | GNU C++17 | TESTS | 65 | 312 | 26726400 | ||
101600675 | AleisterCrowley | E | Dec. 18, 2020, 1:02 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 218 | 25804800 | ||
101580841 | ali_tavakoli | E | Dec. 17, 2020, 4:48 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 233 | 31027200 | ||
101570823 | saketh | E | Dec. 17, 2020, 4:16 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 249 | 23449600 | ||
101591752 | thatprogrammer | E | Dec. 17, 2020, 7:28 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 264 | 23142400 | ||
101608992 | fujang | E | Dec. 18, 2020, 5:19 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 264 | 32870400 | ||
101598269 | smax | E | Dec. 17, 2020, 10:53 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 280 | 28979200 | ||
101574030 | Khawlana-100 | E | Dec. 17, 2020, 4:25 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 295 | 38604800 | ||
101611622 | hello_codeforces | E | Dec. 18, 2020, 6 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 296 | 42291200 | ||
101610933 | hello_codeforces | E | Dec. 18, 2020, 5:50 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 296 | 45363200 | ||
101581492 | AleisterCrowley | E | Dec. 17, 2020, 4:54 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 311 | 28160000 | ||
101602043 | synapse | E | Dec. 18, 2020, 2:09 a.m. | OK | Go | TESTS | 65 | 576 | 24678400 | ||
101602356 | synapse | E | Dec. 18, 2020, 2:22 a.m. | OK | Go | TESTS | 65 | 592 | 24678400 | ||
101604185 | synapse | E | Dec. 18, 2020, 3:22 a.m. | OK | Go | TESTS | 65 | 592 | 43724800 | ||
101604078 | synapse | E | Dec. 18, 2020, 3:19 a.m. | OK | Go | TESTS | 65 | 608 | 24678400 | ||
101602636 | synapse | E | Dec. 18, 2020, 2:33 a.m. | OK | Go | TESTS | 65 | 608 | 24678400 | ||
101601342 | synapse | E | Dec. 18, 2020, 1:36 a.m. | OK | Go | TESTS | 65 | 638 | 24678400 | ||
101601069 | Apfeloxid | E | Dec. 18, 2020, 1:23 a.m. | OK | Java 11 | TESTS | 65 | 950 | 70553600 | ||
101596518 | mphillotry | E | Dec. 17, 2020, 9:34 p.m. | OK | Java 11 | TESTS | 65 | 1809 | 203468800 | ||
101594602 | subhamdtu | E | Dec. 17, 2020, 8:38 p.m. | OK | Java 8 | TESTS | 65 | 873 | 47616000 | ||
101594397 | subhamdtu | E | Dec. 17, 2020, 8:33 p.m. | OK | Java 8 | TESTS | 65 | 966 | 47616000 | ||
101594055 | subhamdtu | E | Dec. 17, 2020, 8:24 p.m. | OK | Java 8 | TESTS | 65 | 1154 | 64716800 | ||
101581004 | martins | E | Dec. 17, 2020, 4:50 p.m. | OK | Java 8 | TESTS | 65 | 1497 | 130662400 | ||
101607374 | magicrap1 | E | Dec. 18, 2020, 4:45 a.m. | OK | Java 8 | TESTS | 65 | 1856 | 216678400 | ||
101602408 | magicrap1 | E | Dec. 18, 2020, 2:24 a.m. | OK | Java 8 | TESTS | 65 | 1980 | 264294400 | ||
101598958 | magicrap1 | E | Dec. 17, 2020, 11:32 p.m. | OK | Java 8 | TESTS | 65 | 1996 | 215552000 | ||
101607266 | magicrap1 | E | Dec. 18, 2020, 4:42 a.m. | OK | Java 8 | TESTS | 65 | 1996 | 322048000 | ||
101607201 | magicrap1 | E | Dec. 18, 2020, 4:41 a.m. | OK | Java 8 | TESTS | 65 | 1996 | 322048000 | ||
101590783 | Megalitum | E | Dec. 17, 2020, 7:08 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1028 | 25907200 | ||
101590867 | Gravekper | E | Dec. 17, 2020, 7:10 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1123 | 30208000 | ||
101590809 | Gravekper | E | Dec. 17, 2020, 7:09 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1138 | 30208000 | ||
101582650 | 4eT_llpuyHblJl | E | Dec. 17, 2020, 5:04 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1262 | 41984000 | ||
101572622 | pajenegod | E | Dec. 17, 2020, 4:21 p.m. | OK | PyPy 2 | TESTS | 65 | 1902 | 107724800 | ||
101574136 | vegetable_chicken1234567 | E | Dec. 17, 2020, 4:25 p.m. | OK | PyPy 3 | TESTS | 65 | 920 | 72294400 | ||
101586394 | aberent | E | Dec. 17, 2020, 5:54 p.m. | OK | PyPy 3 | TESTS | 65 | 1185 | 61542400 | ||
101602921 | FlakeLCR | E | Dec. 18, 2020, 2:42 a.m. | OK | PyPy 3 | TESTS | 65 | 1247 | 96051200 | ||
101593309 | titia | E | Dec. 17, 2020, 8:04 p.m. | OK | PyPy 3 | TESTS | 65 | 1575 | 87142400 | ||
101603729 | FlakeLCR | E | Dec. 18, 2020, 3:09 a.m. | OK | PyPy 3 | TESTS | 65 | 1591 | 91238400 | ||
101569791 | PhilTheFish | E | Dec. 17, 2020, 4:14 p.m. | OK | PyPy 3 | TESTS | 65 | 1949 | 134656000 | ||
101573296 | cotton100pc | E | Dec. 17, 2020, 4:23 p.m. | OK | Rust | TESTS | 65 | 295 | 28672000 | ||
101570962 | kobae964 | E | Dec. 17, 2020, 4:17 p.m. | OK | Rust | TESTS | 65 | 545 | 23040000 |
Back to search problems