Technocup 2022 - Elimination Round 1

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 102711263 Oct. 17, 2021, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12447 ) B Omkar and Heavenly Tree PROGRAMMING constructive algorithms trees

B'Lord Omkar would like to have a tree with n nodes ( 3 <= n <= 10^5 ) and has asked his disciples to construct the tree. However, Lord Omkar has created m ( mathbf{1 <= m < n} ) restrictions to ensure that the tree will be as heavenly as possible. A tree with n nodes is an connected undirected graph with n nodes and n-1 edges. Note that for any two nodes, there is exactly one simple path between them, where a simple path is a path between two nodes that does not contain any node more than once. Here is an example of a tree: A restriction consists of 3 pairwise distinct integers, a , b , and c ( 1 <= a,b,c <= n ). It signifies that node b cannot lie on the simple path between node a and node c . Can you help Lord Omkar and become his most trusted disciple? You will need to find heavenly trees for multiple sets of restrictions. It can be shown that a heavenly tree will always exist for any set of restrictions under the given constraints. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 10^4 ). Description of the test cases follows. The first line of each test case contains two integers, n and m ( 3 <= q n <= q 10^5 , mathbf{1 <= q m < n} ), representing the size of the tree and the number of restrictions. The i -th of the next m lines contains three integers a_i , b_i , c_i ( 1 <= a_i, b_i, c_i <= n , a , b , c are distinct), signifying that node b_i cannot lie on the simple path between nodes a_i and c_i . It is guaranteed that the sum of n across all test cases will not exceed 10^5 . For each test case, output n-1 lines representing the n-1 edges in the tree. On each line, output two integers u and v ( 1 <= u, v <= n , u neq v ) signifying that there is an edge between'...

Tutorials

Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132219770 goncharovmike B Oct. 17, 2021, 11:19 a.m. OK GNU C++14 TESTS 30 93 409600
132217174 baidurik B Oct. 17, 2021, 11:15 a.m. OK GNU C++14 TESTS 30 108 102400
132223851 somebody179 B Oct. 17, 2021, 11:28 a.m. OK GNU C++14 TESTS 30 108 1228800
132274377 bojackduy B Oct. 17, 2021, 4:13 p.m. OK GNU C++14 TESTS 30 109 102400
132250341 justaperson. B Oct. 17, 2021, 12:43 p.m. OK GNU C++14 TESTS 30 109 102400
132227210 Max_Calincu B Oct. 17, 2021, 11:35 a.m. OK GNU C++14 TESTS 30 109 819200
132229177 alexz105 B Oct. 17, 2021, 11:39 a.m. OK GNU C++14 TESTS 30 124 102400
132279535 ahmeteren B Oct. 17, 2021, 5:05 p.m. OK GNU C++14 TESTS 30 124 409600
132300339 Originator-kumma B Oct. 18, 2021, 2:09 a.m. OK GNU C++14 TESTS 30 124 409600
132226789 Angelina_Kurepina B Oct. 17, 2021, 11:34 a.m. OK GNU C++14 TESTS 30 124 819200
132217813 salyg1n B Oct. 17, 2021, 11:16 a.m. OK GNU C++17 TESTS 30 93 102400
132311375 Maksim_P B Oct. 18, 2021, 5:54 a.m. OK GNU C++17 TESTS 30 93 102400
132274831 AlperenT B Oct. 17, 2021, 4:18 p.m. OK GNU C++17 TESTS 30 93 102400
132222796 teFlcN B Oct. 17, 2021, 11:26 a.m. OK GNU C++17 TESTS 30 93 204800
132219188 Azakarka B Oct. 17, 2021, 11:18 a.m. OK GNU C++17 TESTS 30 108 102400
132226428 U2004 B Oct. 17, 2021, 11:33 a.m. OK GNU C++17 TESTS 30 108 102400
132219358 eLteammate B Oct. 17, 2021, 11:19 a.m. OK GNU C++17 TESTS 30 108 102400
132217368 AndreyC B Oct. 17, 2021, 11:15 a.m. OK GNU C++17 TESTS 30 108 102400
132309868 Kamil-Jan B Oct. 18, 2021, 5:32 a.m. OK GNU C++17 TESTS 30 108 204800
132249568 negan53 B Oct. 17, 2021, 12:40 p.m. OK GNU C++17 TESTS 30 108 204800
132226998 dimss B Oct. 17, 2021, 11:34 a.m. OK GNU C++17 (64) TESTS 30 62 0
132217293 DmitryLzr B Oct. 17, 2021, 11:15 a.m. OK GNU C++17 (64) TESTS 30 62 102400
132227071 xyz. B Oct. 17, 2021, 11:34 a.m. OK GNU C++17 (64) TESTS 30 77 0
132279803 Tap0k B Oct. 17, 2021, 5:08 p.m. OK GNU C++17 (64) TESTS 30 77 0
132250100 vlad_1028 B Oct. 17, 2021, 12:42 p.m. OK GNU C++17 (64) TESTS 30 77 0
132246278 grdkrll B Oct. 17, 2021, 12:29 p.m. OK GNU C++17 (64) TESTS 30 77 0
132243581 Hectonit B Oct. 17, 2021, 12:20 p.m. OK GNU C++17 (64) TESTS 30 77 0
132241310 MrGlaz B Oct. 17, 2021, 12:13 p.m. OK GNU C++17 (64) TESTS 30 77 0
132237173 Temo4ka B Oct. 17, 2021, noon OK GNU C++17 (64) TESTS 30 77 0
132235644 anya_matskevich B Oct. 17, 2021, 11:56 a.m. OK GNU C++17 (64) TESTS 30 77 0
132214498 Mangooste B Oct. 17, 2021, 11:11 a.m. OK GNU C++20 (64) TESTS 30 46 0
132298219 StRabbit B Oct. 18, 2021, 12:47 a.m. OK GNU C++20 (64) TESTS 30 46 409600
132219278 andrey27sm B Oct. 17, 2021, 11:18 a.m. OK GNU C++20 (64) TESTS 30 46 409600
132219141 a.rzhewin B Oct. 17, 2021, 11:18 a.m. OK GNU C++20 (64) TESTS 30 61 0
132288578 mingoster1337 B Oct. 17, 2021, 7:20 p.m. OK GNU C++20 (64) TESTS 30 61 0
132220178 eyakm1 B Oct. 17, 2021, 11:20 a.m. OK GNU C++20 (64) TESTS 30 61 409600
132226557 gerasikov.fml31 B Oct. 17, 2021, 11:33 a.m. OK GNU C++20 (64) TESTS 30 62 0
132231681 D_Dima B Oct. 17, 2021, 11:45 a.m. OK GNU C++20 (64) TESTS 30 62 0
132228569 makcvim B Oct. 17, 2021, 11:38 a.m. OK GNU C++20 (64) TESTS 30 62 0
132226437 ilyakrasnovv B Oct. 17, 2021, 11:33 a.m. OK GNU C++20 (64) TESTS 30 62 0
132256330 g0dzilla B Oct. 17, 2021, 1:05 p.m. OK Java 11 TESTS 30 1996 0
132310229 g906360 B Oct. 18, 2021, 5:37 a.m. OK Java 8 TESTS 30 171 0
132236940 ElizaBest B Oct. 17, 2021, noon OK MS C++ 2017 TESTS 30 358 409600
132228474 Mamart B Oct. 17, 2021, 11:37 a.m. OK MS C++ 2017 TESTS 30 358 819200
132232103 Van9Lebed B Oct. 17, 2021, 11:46 a.m. OK MS C++ 2017 TESTS 30 358 3481600
132248947 Mortelman B Oct. 17, 2021, 12:38 p.m. OK MS C++ 2017 TESTS 30 373 409600
132226808 Rastowerin B Oct. 17, 2021, 11:34 a.m. OK MS C++ 2017 TESTS 30 373 4403200
132234232 ArtemCh B Oct. 17, 2021, 11:52 a.m. OK MS C++ 2017 TESTS 30 374 409600
132248599 setday B Oct. 17, 2021, 12:36 p.m. OK MS C++ 2017 TESTS 30 374 409600
132226173 timofeycherlyonok B Oct. 17, 2021, 11:32 a.m. OK MS C++ 2017 TESTS 30 389 0
132245498 kirill.kligunov B Oct. 17, 2021, 12:26 p.m. OK MS C++ 2017 TESTS 30 390 409600
132233852 Xeniya B Oct. 17, 2021, 11:51 a.m. OK MS C++ 2017 TESTS 30 405 3276800
132235227 reosfire B Oct. 17, 2021, 11:54 a.m. OK .NET Core C# TESTS 30 436 7577600
132283001 batnik B Oct. 17, 2021, 5:54 p.m. OK PyPy 3 TESTS 30 405 19251200
132242263 Skillful_Wanderer B Oct. 17, 2021, 12:15 p.m. OK PyPy 3 TESTS 30 514 12697600
132243398 secret.anry B Oct. 17, 2021, 12:19 p.m. OK PyPy 3 TESTS 30 1045 10547200
132275171 ablearthy B Oct. 17, 2021, 4:22 p.m. OK PyPy 3 TESTS 30 1045 10649600
132219812 tomak B Oct. 17, 2021, 11:19 a.m. OK PyPy 3 TESTS 30 1091 10547200
132220312 BratAhmet B Oct. 17, 2021, 11:20 a.m. OK PyPy 3 TESTS 30 1091 11571200
132237854 _Shavel_ B Oct. 17, 2021, 12:02 p.m. OK PyPy 3 TESTS 30 1092 10649600
132231249 Sokol080808 B Oct. 17, 2021, 11:44 a.m. OK PyPy 3 TESTS 30 1092 13312000
132224765 KabirIvan B Oct. 17, 2021, 11:30 a.m. OK PyPy 3 TESTS 30 1122 10752000
132222125 vl342 B Oct. 17, 2021, 11:24 a.m. OK PyPy 3 TESTS 30 1122 11161600
132259134 _heqzagone_ B Oct. 17, 2021, 1:14 p.m. OK PyPy 3-64 TESTS 30 452 11776000
132233860 Arsen4ikVar B Oct. 17, 2021, 11:51 a.m. OK PyPy 3-64 TESTS 30 966 15462400
132228162 darkeer B Oct. 17, 2021, 11:37 a.m. OK PyPy 3-64 TESTS 30 1076 13824000
132246891 mikeeedanilov B Oct. 17, 2021, 12:31 p.m. OK PyPy 3-64 TESTS 30 1091 14438400
132236558 nekstas B Oct. 17, 2021, 11:58 a.m. OK PyPy 3-64 TESTS 30 1107 13824000
132247877 dimasik06 B Oct. 17, 2021, 12:34 p.m. OK PyPy 3-64 TESTS 30 1107 14131200
132231963 gerk_ B Oct. 17, 2021, 11:46 a.m. OK PyPy 3-64 TESTS 30 1122 13107200
132236946 Neketman B Oct. 17, 2021, noon OK PyPy 3-64 TESTS 30 1153 13824000
132235276 Tedor B Oct. 17, 2021, 11:55 a.m. OK PyPy 3-64 TESTS 30 1216 14745600
132230614 Vlad_cool B Oct. 17, 2021, 11:43 a.m. OK Python 3 TESTS 30 514 2150400
132224464 gazeevaarina B Oct. 17, 2021, 11:29 a.m. OK Python 3 TESTS 30 546 716800
132238380 prekrasnayapolyachka B Oct. 17, 2021, 12:04 p.m. OK Python 3 TESTS 30 561 716800
132231763 nik.danilov B Oct. 17, 2021, 11:45 a.m. OK Python 3 TESTS 30 561 716800
132231452 Dark_Andrew B Oct. 17, 2021, 11:45 a.m. OK Python 3 TESTS 30 561 716800
132226608 poiuytreeewq B Oct. 17, 2021, 11:33 a.m. OK Python 3 TESTS 30 561 716800
132229601 Alkis B Oct. 17, 2021, 11:40 a.m. OK Python 3 TESTS 30 561 4505600
132221254 DimaLahtin B Oct. 17, 2021, 11:23 a.m. OK Python 3 TESTS 30 576 716800
132232181 suroptimist B Oct. 17, 2021, 11:46 a.m. OK Python 3 TESTS 30 577 716800
132224213 EgorFarafonov B Oct. 17, 2021, 11:29 a.m. OK Python 3 TESTS 30 577 921600
132300039 laid_to_rest B Oct. 18, 2021, 1:58 a.m. OK Scala TESTS 30 1512 19046400

remove filters

Back to search problems