Nebius Welcome Round (Div. 1 + 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
1804 Nebius Welcome Round (Div. 1 + Div. 2) FINISHED False 7200 58634662 March 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1495 ) E Routing PROGRAMMING bitmasks dp graphs

B"Ada operates a network that consists of n servers and m direct connections between them. Each direct connection between a pair of distinct servers allows bidirectional transmission of information between these two servers. Ada knows that these m direct connections allow to directly or indirectly transmit information between any two servers in this network. We say that server v is a neighbor of server u if there exists a direct connection between these two servers. Ada needs to configure her network's WRP (Weird Routing Protocol). For each server u she needs to select exactly one of its neighbors as an auxiliary server a(u) . After all a(u) are set, routing works as follows. Suppose server u wants to find a path to server v (different from u ). As you can see, this procedure either produces a correct path and finishes or keeps running forever. Thus, it is critically important for Ada to configure her network's WRP properly. Your goal is to assign an auxiliary server a(u) for each server u in the given network. Your assignment should make it possible to construct a path from any server u to any other server v using the aforementioned procedure. Or you should report that such an assignment doesn't exist. The first line of the input contains two integers n and m ( 2 <= q n <= q 20 , n - 1 <= q m <= q frac{n cdot (n - 1)}{2} ) -- the number of servers and the number of direct connections in the given network. Then follow m lines containing two integers u_i and v_i ( 1 <= q u_i, v_i <= q n , u_i ne v_i ) each, the i -th line describes the i -th direct connection. It is guaranteed that there is no more than one direct connection between any two servers. It is guaranteed that there is a direct or indirect route (consisting only of the given direct connections) between any two servers. If there is no way to assign a"...

Tutorials

Nebius Welcome Round Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
197130506 DmitriyAnikeyev E March 12, 2023, 4:34 p.m. OK C# 10 TESTS 97 1731 4096000
197161050 rainboy E March 12, 2023, 8:57 p.m. OK GNU C11 TESTS 97 280 25190400
197155300 DLUT_Zeratul E March 12, 2023, 8 p.m. OK GNU C++14 TESTS 97 46 4198400
197176913 for_sx_e_1 E March 13, 2023, 2:54 a.m. OK GNU C++14 TESTS 98 62 4198400
197168569 ITworker_Z E March 12, 2023, 11:28 p.m. OK GNU C++14 TESTS 97 109 8396800
197173357 grass8sheep E March 13, 2023, 1:35 a.m. OK GNU C++14 TESTS 98 109 16793600
197183878 2100031435klu E March 13, 2023, 4:48 a.m. OK GNU C++14 TESTS 98 109 16793600
197174304 hydd E March 13, 2023, 1:57 a.m. OK GNU C++14 TESTS 98 124 12595200
197140573 Write_Hape_Code E March 12, 2023, 5:59 p.m. OK GNU C++14 TESTS 97 124 89190400
197170256 Lynkcat E March 13, 2023, 12:17 a.m. OK GNU C++14 TESTS 97 155 4198400
197183258 1213James E March 13, 2023, 4:40 a.m. OK GNU C++14 TESTS 98 202 34816000
197135837 lavanya_28 E March 12, 2023, 5:31 p.m. OK GNU C++14 TESTS 97 249 7884800
197172780 friendless E March 13, 2023, 1:22 a.m. OK GNU C++17 TESTS 98 78 4198400
197127030 AliShahali1382 E March 12, 2023, 4:28 p.m. OK GNU C++17 TESTS 97 78 8396800
197174796 steven2022 E March 13, 2023, 2:09 a.m. OK GNU C++17 TESTS 98 124 4198400
197139926 bicsi E March 12, 2023, 5:54 p.m. OK GNU C++17 TESTS 97 140 4198400
197173669 tokusakurai E March 13, 2023, 1:42 a.m. OK GNU C++17 TESTS 98 140 4608000
197173270 tokusakurai E March 13, 2023, 1:33 a.m. OK GNU C++17 TESTS 98 140 4608000
197173985 tokusakurai E March 13, 2023, 1:49 a.m. OK GNU C++17 TESTS 98 140 4608000
197171245 mwen E March 13, 2023, 12:42 a.m. OK GNU C++17 TESTS 98 155 4198400
197172666 friendless E March 13, 2023, 1:19 a.m. OK GNU C++17 TESTS 98 156 4198400
197173402 tokusakurai E March 13, 2023, 1:36 a.m. OK GNU C++17 TESTS 98 156 4608000
197124152 YocyCraft E March 12, 2023, 4:22 p.m. OK GNU C++17 (64) TESTS 97 15 0
197172346 zwh2008 E March 13, 2023, 1:12 a.m. OK GNU C++17 (64) TESTS 98 77 44134400
197181683 353cerega E March 13, 2023, 4:17 a.m. OK GNU C++17 (64) TESTS 98 93 8396800
197186537 NAVYA_30710 E March 13, 2023, 5:25 a.m. OK GNU C++17 (64) TESTS 98 93 16793600
197169571 kuchibi E March 12, 2023, 11:59 p.m. OK GNU C++17 (64) TESTS 97 109 4198400
197175291 zhangboju E March 13, 2023, 2:21 a.m. OK GNU C++17 (64) TESTS 98 140 4198400
197123366 dognotlike E March 12, 2023, 4:20 p.m. OK GNU C++17 (64) TESTS 97 155 51814400
197165413 akifpatel E March 12, 2023, 10:08 p.m. OK GNU C++17 (64) TESTS 97 171 92467200
197146719 cuom1999 E March 12, 2023, 6:39 p.m. OK GNU C++17 (64) TESTS 97 171 96665600
197189628 YocyCraft E March 13, 2023, 6:02 a.m. OK GNU C++17 (64) TESTS 98 187 12595200
197185752 Gary2005 E March 13, 2023, 5:14 a.m. OK GNU C++20 (64) TESTS 98 31 8396800
197154407 mana E March 12, 2023, 7:51 p.m. OK GNU C++20 (64) TESTS 97 31 12595200
197152336 Tutis E March 12, 2023, 7:29 p.m. OK GNU C++20 (64) TESTS 97 46 8396800
197153505 Tutis E March 12, 2023, 7:41 p.m. OK GNU C++20 (64) TESTS 97 46 8396800
197151703 Tutis E March 12, 2023, 7:23 p.m. OK GNU C++20 (64) TESTS 97 46 8396800
197151523 Tutis E March 12, 2023, 7:21 p.m. OK GNU C++20 (64) TESTS 97 46 8396800
197151432 Tutis E March 12, 2023, 7:20 p.m. OK GNU C++20 (64) TESTS 97 62 8396800
197154172 mana E March 12, 2023, 7:48 p.m. OK GNU C++20 (64) TESTS 97 62 12595200
197128178 orz E March 12, 2023, 4:31 p.m. OK GNU C++20 (64) TESTS 97 78 7168000
197177868 Kuroni E March 13, 2023, 3:14 a.m. OK GNU C++20 (64) TESTS 98 78 8396800
197146651 GregStar E March 12, 2023, 6:38 p.m. OK PyPy 3-64 TESTS 97 1606 270950400
197142727 PythonIsGodlike E March 12, 2023, 6:11 p.m. OK PyPy 3-64 TESTS 97 1606 270950400
197125674 PyIsBestLang E March 12, 2023, 4:26 p.m. OK PyPy 3-64 TESTS 97 1699 270950400

remove filters

Back to search problems