Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 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
1599 Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) FINISHED False 14400 98052899 Oct. 9, 2021, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 121 ) I Desert PROGRAMMING data structures graphs

B"You are given an undirected graph of N nodes and M edges, E_1, E_2, ... E_M . A connected graph is a cactus if each of it's edges belogs to at most one simple cycle. A graph is a desert if each of it's connected components is a cactus. Find the number of pairs (L, R) , ( 1 <= q L <= q R <= q M ) such that, if we delete all the edges except for E_L, E_{L+1}, ... E_R , the graph is a desert. The first line contains two integers N and M ( 2 <= q N <= q 2.5 x 10^5 , 1 <= q M <= q 5 x 10^5 ). Each of the next M lines contains two integers. The i -th line describes the i -th edge. It contains integers U_i and V_i , the nodes connected by the i -th edge ( E_i=(U_i, V_i) ). It is guaranteed that 1 <= q U_i, V_i <= q N and U_i neq V_i . The output contains one integer number xe2 x80 x93 the answer. In the second example: Graphs for pairs (1, 1) , (2, 2) and (3, 3) are deserts because they don't have any cycles. Graphs for pairs (1, 2) and (2, 3) have one cycle of length 2 so they are deserts. "...

Tutorials

BubbleCup2021.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
131321341 MoRanSky A.K.E.E. Fulisike I Oct. 9, 2021, 11:45 a.m. OK GNU C++14 TESTS 50 1029 35328000
131326711 Cornflakes leapfrog DPair I Oct. 9, 2021, 12:33 p.m. OK GNU C++14 TESTS 50 1590 59904000
131327380 Y25t xwp zhang0617 I Oct. 9, 2021, 12:39 p.m. OK GNU C++17 TESTS 50 889 43827200
131330065 Cirno_9baka ChthollyNotaSeniorious JeovaSantusUnus I Oct. 9, 2021, 1:03 p.m. OK GNU C++17 TESTS 50 982 47820800
131323083 xay5421 LJC00118 I Oct. 9, 2021, 11:58 a.m. OK GNU C++17 TESTS 50 1123 31846400
131370137 froggyzhang I Oct. 10, 2021, 12:27 a.m. OK GNU C++17 (64) TESTS 50 733 44441600
131320589 yz6205 AhoCorasick Comet_Honeymoon I Oct. 9, 2021, 11:39 a.m. OK GNU C++17 (64) TESTS 50 748 65024000
131336523 _yui_ I Oct. 9, 2021, 2:09 p.m. OK GNU C++17 (64) TESTS 50 1028 90726400
131320009 HJKL1018 Forever_Pursuit George1123 I Oct. 9, 2021, 11:34 a.m. OK GNU C++17 (64) TESTS 50 1029 34406400
131330881 OIerwanhong I Oct. 9, 2021, 1:11 p.m. OK GNU C++17 (64) TESTS 50 1060 73420800
131324833 orzdevinwang I Oct. 9, 2021, 12:14 p.m. OK GNU C++17 (64) TESTS 50 1153 57446400
131331041 tzxydby I Oct. 9, 2021, 1:13 p.m. OK GNU C++17 (64) TESTS 50 1278 48435200
131344282 He_Ren I Oct. 9, 2021, 3:38 p.m. OK GNU C++17 (64) TESTS 50 1356 44953600
131323502 lindongli2004 qazswedx2 Chameleon216 I Oct. 9, 2021, 12:01 p.m. OK GNU C++17 (64) TESTS 50 1684 115200000
131332777 generic_placeholder_name I Oct. 9, 2021, 1:31 p.m. OK MS C++ 2017 TESTS 50 1387 55296000
131316801 Mike4235 HollwoQ_Pelw Pichu I Oct. 9, 2021, 11:07 a.m. OK MS C++ 2017 TESTS 50 1388 58470400

remove filters

Back to search problems