Codeforces Round 609 (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
1268 Codeforces Round 609 (Div. 1) FINISHED False 7200 154896899 Dec. 21, 2019, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 262 ) E Happy Cactus PROGRAMMING dp 3400

B"You are given a cactus graph, in this graph each edge lies on at most one simple cycle. It is given as m edges a_i, b_i , weight of i -th edge is i . Let's call a path in cactus increasing if the weights of edges on this path are increasing. Let's call a pair of vertices (u,v) happy if there exists an increasing path that starts in u and ends in v . For each vertex u find the number of other vertices v , such that pair (u,v) is happy. The first line of input contains two integers n,m ( 1 <= q n, m <= q 500 ,000 ): the number of vertices and edges in the given cactus. The next m lines contain a description of cactus edges, i -th of them contain two integers a_i, b_i ( 1 <= q a_i, b_i <= q n, a_i neq b_i ). It is guaranteed that there are no multiple edges and the graph is connected. Print n integers, required values for vertices 1,2, ldots,n . "...

Tutorials

Codeforces Round #609 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68446352 dysyn1314 E Jan. 9, 2020, 12:50 p.m. OK GNU C++11 TESTS 34 186 68096000 3400
68446205 dysyn1314 E Jan. 9, 2020, 12:46 p.m. OK GNU C++11 TESTS 34 187 68096000 3400
68402917 wang639026 E Jan. 8, 2020, 1:49 p.m. OK GNU C++11 TESTS 34 249 68096000 3400
67945923 frodakcin E Dec. 30, 2019, 5:16 a.m. OK GNU C++11 TESTS 34 264 64819200 3400
68470580 KarlCurry E Jan. 10, 2020, 1:11 a.m. OK GNU C++11 TESTS 34 264 68096000 3400
67684027 lhylhy E Dec. 27, 2019, 7:58 a.m. OK GNU C++11 TESTS 34 264 75878400 3400
67416662 WZYYN E Dec. 22, 2019, 10:07 a.m. OK GNU C++11 TESTS 34 265 68096000 3400
67945865 frodakcin E Dec. 30, 2019, 5:13 a.m. OK GNU C++11 TESTS 34 280 54886400 3400
67640064 cjy2003 E Dec. 26, 2019, 8:17 a.m. OK GNU C++11 TESTS 34 405 81817600 3400
67765157 frank3215 E Dec. 28, 2019, 3:07 a.m. OK GNU C++11 TESTS 34 405 86016000 3400
68646101 jerome_wei E Jan. 12, 2020, 9:07 a.m. OK GNU C++14 TESTS 34 327 77619200 3400
67488075 TadijaSebez E Dec. 23, 2019, 6:14 p.m. OK GNU C++14 TESTS 34 436 83968000 3400
67399704 jijiang E Dec. 22, 2019, 2:47 a.m. OK GNU C++14 TESTS 34 436 91136000 3400
67376813 Egor E Dec. 21, 2019, 3:16 p.m. OK GNU C++14 TESTS 34 436 104038400 3400
67397942 apiadu E Dec. 22, 2019, 1:20 a.m. OK GNU C++14 TESTS 34 483 94003200 3400
67405429 latte0119 E Dec. 22, 2019, 6:10 a.m. OK GNU C++14 TESTS 34 514 83251200 3400
69262854 furious_beast E Jan. 21, 2020, 5:37 p.m. OK GNU C++14 TESTS 34 514 88883200 3400
67390290 _LeMur_ E Dec. 21, 2019, 7:26 p.m. OK GNU C++14 TESTS 34 514 106393600 3400
68055628 DmitryGrigorev E Jan. 1, 2020, 10:17 p.m. OK GNU C++14 TESTS 34 561 76595200 3400
67379647 Benq E Dec. 21, 2019, 4:01 p.m. OK GNU C++14 TESTS 34 577 74752000 3400
67500927 RNS_CUS E Dec. 24, 2019, 4:33 a.m. OK GNU C++17 TESTS 34 343 86118400 3400
67419285 dimas.kovas E Dec. 22, 2019, 11:04 a.m. OK GNU C++17 TESTS 34 467 73011200 3400
67428883 ks3rr E Dec. 22, 2019, 2:31 p.m. OK GNU C++17 TESTS 34 467 88883200 3400
69556690 Shayan.P E Jan. 26, 2020, 9:06 a.m. OK GNU C++17 TESTS 34 467 110080000 3400
69556410 Shayan.P E Jan. 26, 2020, 9 a.m. OK GNU C++17 TESTS 34 482 109772800 3400
67454350 Twishkle.Aevdark E Dec. 23, 2019, 6:07 a.m. OK GNU C++17 TESTS 34 483 54988800 3400
67410584 mitpatelr1999mr E Dec. 22, 2019, 8:11 a.m. OK GNU C++17 TESTS 34 483 89088000 3400
68067768 thatprogrammer E Jan. 2, 2020, 8:45 a.m. OK GNU C++17 TESTS 34 529 83353600 3400
67467663 Kuroni E Dec. 23, 2019, 11:39 a.m. OK GNU C++17 TESTS 34 530 63078400 3400
68003522 FlowerOfSorrow E Dec. 31, 2019, 12:03 p.m. OK GNU C++17 TESTS 34 530 83968000 3400
67941253 Ahmad E Dec. 30, 2019, 1:05 a.m. OK Java 8 TESTS 34 1809 268390400 3400

remove filters

Back to search problems