Codeforces Round 518 (Div. 1) [Thanks, Mail.Ru!]

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
1067 Codeforces Round 518 (Div. 1) [Thanks, Mail.Ru!] FINISHED False 7200 191424299 Oct. 24, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 454 ) E Random Forest Rank PROGRAMMING dp graph matchings math trees 2800

B"Let's define rank of undirected graph as rank of its adjacency matrix in mathbb{R}^{n x n} . Given a tree. Each edge of this tree will be deleted with probability 1/2 , all these deletions are independent. Let E be the expected rank of resulting forest. Find E cdot 2^{n-1} modulo 998244353 (it is easy to show that E cdot 2^{n-1} is an integer). First line of input contains n ( 1 <= n <= 5 cdot 10^{5} ) -- number of vertices. Next n-1 lines contains two integers u v ( 1 <= u, , , v <= n; , , u ne v ) -- indices of vertices connected by edge. It is guaranteed that given graph is a tree. Print one integer -- answer to the problem. "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46016004 liji E Nov. 21, 2018, 3:28 a.m. OK GNU C++11 TESTS 67 124 32256000 2800
48657265 ReaLNero1 E Jan. 21, 2019, 3:38 a.m. OK GNU C++11 TESTS 67 139 12185600 2800
46705095 luogu_bot1 E Dec. 7, 2018, 6:32 a.m. OK GNU C++11 TESTS 67 140 12185600 2800
46705073 klfly E Dec. 7, 2018, 6:31 a.m. OK GNU C++11 TESTS 67 140 12185600 2800
50277349 lzoilxy E Feb. 21, 2019, 10:54 a.m. OK GNU C++11 TESTS 67 140 24166400 2800
50277403 lzoilxy E Feb. 21, 2019, 10:56 a.m. OK GNU C++11 TESTS 67 156 24166400 2800
50277358 lzoilxy E Feb. 21, 2019, 10:54 a.m. OK GNU C++11 TESTS 67 156 24166400 2800
50277310 lzoilxy E Feb. 21, 2019, 10:52 a.m. OK GNU C++11 TESTS 67 156 26419200 2800
50277277 lzoilxy E Feb. 21, 2019, 10:51 a.m. OK GNU C++11 TESTS 67 171 32358400 2800
46446226 bestFy E Dec. 1, 2018, 1:35 p.m. OK GNU C++11 TESTS 67 202 12185600 2800
46566198 zhoujundong E Dec. 3, 2018, 11:47 p.m. OK GNU C++14 TESTS 67 265 14336000 2800
45787574 qiqi20021026 E Nov. 16, 2018, 3:38 a.m. OK GNU C++14 TESTS 67 265 84377600 2800
46685061 shaochengxi E Dec. 6, 2018, 1:40 p.m. OK GNU C++14 TESTS 67 280 12185600 2800
51322655 mayaohua2003 E March 15, 2019, 8:04 a.m. OK GNU C++14 TESTS 67 280 18227200 2800
44830812 dujvet E Oct. 25, 2018, 8:23 a.m. OK GNU C++14 TESTS 67 295 14233600 2800
46355430 yhx-12243 E Nov. 29, 2018, 8 a.m. OK GNU C++14 TESTS 67 296 14540800 2800
44946045 consecutivelimit E Oct. 27, 2018, 10:09 a.m. OK GNU C++14 TESTS 67 296 16076800 2800
45034634 zhangqingqi E Oct. 29, 2018, 6:53 a.m. OK GNU C++14 TESTS 67 312 18124800 2800
45179068 chielo E Nov. 1, 2018, 4:16 p.m. OK GNU C++14 TESTS 67 312 26624000 2800
47842366 TLE E Jan. 2, 2019, 12:46 p.m. OK GNU C++14 TESTS 67 327 34918400 2800
52134014 Trisolaris E April 1, 2019, 12:10 a.m. OK GNU C++17 TESTS 67 77 10342400 2800
52134028 Trisolaris E April 1, 2019, 12:11 a.m. OK GNU C++17 TESTS 67 93 10342400 2800
52135185 luogu_bot1 E April 1, 2019, 1:42 a.m. OK GNU C++17 TESTS 67 108 10342400 2800
45987816 tEMMIE.w. E Nov. 20, 2018, 7:53 a.m. OK GNU C++17 TESTS 67 295 22528000 2800
45413527 purple_bro E Nov. 7, 2018, 1:05 p.m. OK GNU C++17 TESTS 67 296 12288000 2800
62778281 ivan100sic E Oct. 17, 2019, 12:16 p.m. OK GNU C++17 TESTS 67 358 23859200 2800
44898257 FelixLim E Oct. 26, 2018, 7:43 a.m. OK GNU C++17 TESTS 67 389 17715200 2800
44808036 KADR E Oct. 24, 2018, 6:18 p.m. OK GNU C++17 TESTS 67 405 17408000 2800
55712244 H2SH2SO4O4O4 E June 18, 2019, 10:52 a.m. OK GNU C++17 TESTS 67 405 18022400 2800
44825222 tlwpdus E Oct. 25, 2018, 5:29 a.m. OK GNU C++17 TESTS 67 420 21708800 2800
67994395 luogu_bot2 E Dec. 31, 2019, 7:12 a.m. OK Java 8 TESTS 67 888 168652800 2800
67988553 dalt E Dec. 31, 2019, 2:06 a.m. OK Java 8 TESTS 67 888 168652800 2800
44804602 Lewin E Oct. 24, 2018, 6 p.m. OK Java 8 TESTS 67 1216 129945600 2800

remove filters

Back to search problems