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 |
---|---|---|---|---|---|---|
1583 | Technocup 2022 - Elimination Round 1 | FINISHED | False | 8100 | 97354499 | Oct. 17, 2021, 11:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2238 ) | E | Moment of Bloom | PROGRAMMING | constructive algorithms dfs and similar graph matchings graphs greedy |
B'She does her utmost to flawlessly carry out a person 's last rites and preserve the world 's balance of yin and yang. Hu Tao, being the little prankster she is, has tried to scare you with this graph problem! You are given a connected undirected graph of n nodes with m edges. You also have q queries. Each query consists of two nodes a and b . Initially, all edges in the graph have a weight of 0 . For each query, you must choose a simple path starting from a and ending at b . Then you add 1 to every edge along this path. Determine if it 's possible, after processing all q queries, for all edges in this graph to have an even weight. If so, output the choice of paths for each query. If it is not possible, determine the smallest number of extra queries you could add to make it possible. It can be shown that this number will not exceed 10^{18} under the given constraints. A simple path is defined as any path that does not visit a node more than once. An edge is said to have an even weight if its value is divisible by 2 . The first line contains two integers n and m ( 2 <= q n <= q 3 cdot 10^5 , n-1 <= q m <= q min{ <= ft( frac{n(n-1)}{2}, 3 cdot 10^5 right)} ). Each of the next m lines contains two integers x and y ( 1 <= q x, y <= q n , x neq y ) indicating an undirected edge between node x and y . The input will not contain self-loops or duplicate edges, and the provided graph will be connected. The next line contains a single integer q ( 1 <= q q <= q 3 cdot 10^5 ). Each of the next q lines contains two integers a and b ( 1 <= q a, b <= q n, a neq b ), the description of each query. It is guaranteed that nq <= q 3 cdot 10^5 . If it is possible to force all edge weights to be even, print "YES" on the first line, followed by 2q lines indicating the choice of path for each query in the same '... |
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
132302719 | SAMSans | E | Oct. 18, 2021, 3:15 a.m. | OK | GNU C++14 | TESTS | 43 | 77 | 21708800 | ||
132298307 | ACOIer | E | Oct. 18, 2021, 12:51 a.m. | OK | GNU C++14 | TESTS | 43 | 139 | 21913600 | ||
132296480 | ACOIer | E | Oct. 17, 2021, 11:24 p.m. | OK | GNU C++14 | TESTS | 43 | 171 | 21913600 | ||
132305719 | SuperGCD | E | Oct. 18, 2021, 4:15 a.m. | OK | GNU C++14 | TESTS | 43 | 202 | 15052800 | ||
132250274 | thematdev | E | Oct. 17, 2021, 12:42 p.m. | OK | GNU C++14 | TESTS | 43 | 342 | 21811200 | ||
132254964 | topovik | E | Oct. 17, 2021, 1 p.m. | OK | GNU C++14 | TESTS | 43 | 686 | 46387200 | ||
132260672 | FANAT_MORGENSHTERNA | E | Oct. 17, 2021, 1:18 p.m. | OK | GNU C++17 | TESTS | 43 | 248 | 26931200 | ||
132241851 | alexxela12345 | E | Oct. 17, 2021, 12:14 p.m. | OK | GNU C++17 | TESTS | 43 | 249 | 15564800 | ||
132287820 | goodjulian | E | Oct. 17, 2021, 7:07 p.m. | OK | GNU C++17 | TESTS | 43 | 249 | 17510400 | ||
132252813 | priemniygeniy | E | Oct. 17, 2021, 12:52 p.m. | OK | GNU C++17 | TESTS | 43 | 249 | 19865600 | ||
132281164 | p3rfect | E | Oct. 17, 2021, 5:28 p.m. | OK | GNU C++17 | TESTS | 43 | 264 | 35430400 | ||
132242572 | Kalashnikov | E | Oct. 17, 2021, 12:16 p.m. | OK | GNU C++17 | TESTS | 43 | 280 | 19251200 | ||
132259517 | eLteammate | E | Oct. 17, 2021, 1:15 p.m. | OK | GNU C++17 | TESTS | 43 | 295 | 21811200 | ||
132310027 | ace5 | E | Oct. 18, 2021, 5:34 a.m. | OK | GNU C++17 | TESTS | 43 | 311 | 29388800 | ||
132247220 | Dasha_Gnedko | E | Oct. 17, 2021, 12:32 p.m. | OK | GNU C++17 | TESTS | 43 | 327 | 69120000 | ||
132273162 | Alexander_Kozhevnikov | E | Oct. 17, 2021, 3:58 p.m. | OK | GNU C++17 | TESTS | 43 | 342 | 37376000 | ||
132287971 | valerikk | E | Oct. 17, 2021, 7:10 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 187 | 27750400 | ||
132253040 | MADKIRUS | E | Oct. 17, 2021, 12:53 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 311 | 29081600 | ||
132255524 | Mob_Psycho | E | Oct. 17, 2021, 1:02 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 311 | 32256000 | ||
132250848 | Waley | E | Oct. 17, 2021, 12:45 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 311 | 41574400 | ||
132281220 | Htmt | E | Oct. 17, 2021, 5:29 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 326 | 49971200 | ||
132261380 | oleh1421 | E | Oct. 17, 2021, 1:19 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 342 | 212889600 | ||
132292177 | Kotehok3 | E | Oct. 17, 2021, 8:39 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 358 | 27955200 | ||
132255794 | I_love_geom | E | Oct. 17, 2021, 1:03 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 389 | 86528000 | ||
132259298 | Ooops_no | E | Oct. 17, 2021, 1:14 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 499 | 41881600 | ||
132251288 | Pakhomovee | E | Oct. 17, 2021, 12:46 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 514 | 52940800 | ||
132233983 | Ormlis | E | Oct. 17, 2021, 11:51 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 265 | 35430400 | ||
132249073 | Yellowgood | E | Oct. 17, 2021, 12:38 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 280 | 37068800 | ||
132233817 | SomethingNew | E | Oct. 17, 2021, 11:51 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 295 | 33689600 | ||
132244133 | idontwannawin | E | Oct. 17, 2021, 12:21 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 327 | 46182400 | ||
132239219 | Mangooste | E | Oct. 17, 2021, 12:06 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 343 | 21401600 | ||
132244981 | Arayi | E | Oct. 17, 2021, 12:24 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 389 | 81408000 | ||
132243740 | I_HATE_CONSTRUCTIVES | E | Oct. 17, 2021, 12:20 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 888 | 25702400 | ||
132255091 | CloudKit | E | Oct. 17, 2021, 1 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 920 | 39424000 |
Back to search problems