Codeforces Round 427 (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
835 Codeforces Round 427 (Div. 2) FINISHED False 7200 230311499 July 31, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1075 ) F Roads in the Kingdom PROGRAMMING dfs and similar dp graphs trees 2400

B"In the Kingdom K., there are n towns numbered with integers from 1 to n. The towns are connected by n bi-directional roads numbered with integers from 1 to n. The i-th road connects the towns ui and vi and its length is li. There is no more than one road between two towns. Also, there are no roads that connect the towns with itself. Let's call the inconvenience of the roads the maximum of the shortest distances between all pairs of towns. Because of lack of money, it was decided to close down one of the roads so that after its removal it is still possible to reach any town from any other. You have to find the minimum possible inconvenience of the roads after closing down one of the roads. The first line contains the integer n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the number of towns and roads. The next n lines contain the roads description. The i-th from these lines contains three integers ui, vi, li (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui, xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the numbers of towns connected by the i-th road and the length of the i-th road. No road connects a town to itself, no two roads connect the same towns. It's guaranteed that it's always possible to close down one of the roads so that all the towns are still reachable from each other. Print a single integer -- the minimum possible inconvenience of the roads after the refusal from one of the roads. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33710548 Worldwide_D F Dec. 28, 2017, 12:31 p.m. OK GNU C++ TESTS 70 78 39628800 2400
42144322 vjudge3 F Aug. 27, 2018, 7:54 a.m. OK GNU C++ TESTS 70 93 32768000 2400
29128424 CSTCurry F Aug. 2, 2017, 11:36 a.m. OK GNU C++ TESTS 70 109 33689600 2400
29090284 xiejun F Aug. 1, 2017, 6:55 a.m. OK GNU C++ TESTS 70 139 32051200 2400
29551431 dasinlsb F Aug. 18, 2017, 10:36 a.m. OK GNU C++ TESTS 70 140 33587200 2400
41982464 vjudge4 F Aug. 23, 2018, 3:02 a.m. OK GNU C++ TESTS 70 140 34816000 2400
29286348 hohomu F Aug. 8, 2017, 1:40 p.m. OK GNU C++ TESTS 70 140 37273600 2400
41982434 Serval F Aug. 23, 2018, 3:01 a.m. OK GNU C++ TESTS 70 155 34816000 2400
29239783 Allunlimited F Aug. 6, 2017, 11:25 a.m. OK GNU C++ TESTS 70 155 41779200 2400
29271581 smog F Aug. 7, 2017, 7:24 p.m. OK GNU C++ TESTS 70 156 48640000 2400
60799933 rainboy F Sept. 18, 2019, 5:03 p.m. OK GNU C11 TESTS 70 139 23244800 2400
55732735 luogu_bot2 F June 18, 2019, 11:41 p.m. OK GNU C++11 TESTS 70 62 17305600 2400
61115880 Sakura_Kaka F Sept. 23, 2019, 12:51 p.m. OK GNU C++11 TESTS 70 62 19353600 2400
62093647 luogu_bot4 F Oct. 8, 2019, 6:44 a.m. OK GNU C++11 TESTS 70 62 19865600 2400
46666818 sunshiness F Dec. 6, 2018, 3:08 a.m. OK GNU C++11 TESTS 70 62 25804800 2400
58698737 REM_002 F Aug. 13, 2019, 7:04 a.m. OK GNU C++11 TESTS 70 62 25804800 2400
50342411 flora715 F Feb. 23, 2019, 3:35 a.m. OK GNU C++11 TESTS 70 62 25907200 2400
44729438 Captain_Paul F Oct. 23, 2018, 9:43 a.m. OK GNU C++11 TESTS 70 62 26521600 2400
44729591 Captain_Paul F Oct. 23, 2018, 9:47 a.m. OK GNU C++11 TESTS 70 62 26521600 2400
60996758 luogu_bot1 F Sept. 21, 2019, 8:55 a.m. OK GNU C++11 TESTS 70 62 26624000 2400
57989137 luogu_bot5 F July 30, 2019, 12:32 p.m. OK GNU C++11 TESTS 70 62 27852800 2400
45239967 Lu_J F Nov. 3, 2018, 11:10 a.m. OK GNU C++14 TESTS 70 139 113971200 2400
29196395 MikeZ F Aug. 4, 2017, 2:23 p.m. OK GNU C++14 TESTS 70 171 38604800 2400
29196351 MikeZ F Aug. 4, 2017, 2:22 p.m. OK GNU C++14 TESTS 70 186 38604800 2400
30409589 The_Unbeatable F Sept. 17, 2017, 4:47 a.m. OK GNU C++14 TESTS 70 187 20480000 2400
30827948 chrisfsj2051 F Sept. 29, 2017, 12:22 p.m. OK GNU C++14 TESTS 70 187 45977600 2400
30827842 chrisfsj2051 F Sept. 29, 2017, 12:19 p.m. OK GNU C++14 TESTS 70 187 45977600 2400
49401729 Acheing F Feb. 3, 2019, 3:07 p.m. OK GNU C++14 TESTS 70 187 50892800 2400
58574304 xuzihao F Aug. 11, 2019, 11:40 a.m. OK GNU C++14 TESTS 70 187 213196800 2400
46346547 Minnakhmetov F Nov. 28, 2018, 6:28 p.m. OK GNU C++14 TESTS 70 202 28160000 2400
45681333 T.V_N F Nov. 13, 2018, 3:32 p.m. OK GNU C++14 TESTS 70 202 32153600 2400
67266298 vjudge2 F Dec. 20, 2019, 6:20 a.m. OK GNU C++17 TESTS 70 155 27955200 2400
69943890 vjudge2 F Feb. 1, 2020, 7 a.m. OK GNU C++17 TESTS 70 171 32972800 2400
41981580 HappyEnd F Aug. 23, 2018, 2:10 a.m. OK GNU C++17 TESTS 70 202 19456000 2400
46939475 kongroo F Dec. 12, 2018, 3:43 p.m. OK GNU C++17 TESTS 70 202 32972800 2400
46939234 kongroo F Dec. 12, 2018, 3:35 p.m. OK GNU C++17 TESTS 70 202 32972800 2400
44350458 NiceBaseballCoder F Oct. 15, 2018, 9:50 a.m. OK GNU C++17 TESTS 70 202 35123200 2400
45318627 lqs2015 F Nov. 5, 2018, 9:24 a.m. OK GNU C++17 TESTS 70 202 54886400 2400
60354749 Lucina F Sept. 10, 2019, 3:41 p.m. OK GNU C++17 TESTS 70 217 44236800 2400
60355079 Lucina F Sept. 10, 2019, 3:49 p.m. OK GNU C++17 TESTS 70 217 44339200 2400
60355024 Lucina F Sept. 10, 2019, 3:48 p.m. OK GNU C++17 TESTS 70 218 38502400 2400
29187567 cycleke F Aug. 4, 2017, 7:52 a.m. OK Java 8 TESTS 70 390 66867200 2400
29073468 uwi F July 31, 2017, 4:20 p.m. OK Java 8 TESTS 70 826 135577600 2400
29501693 donli F Aug. 16, 2017, 9:39 a.m. OK Java 8 TESTS 70 826 192819200 2400
60799930 Dukkha F Sept. 18, 2019, 5:03 p.m. OK Java 8 TESTS 70 904 34201600 2400
29246351 mikcorer F Aug. 6, 2017, 5:33 p.m. OK Java 8 TESTS 70 1107 167936000 2400
29149746 PrakharJain F Aug. 3, 2017, 8:09 a.m. OK Java 8 TESTS 70 1216 192409600 2400
30169850 dalt F Sept. 7, 2017, 1:53 a.m. OK Java 8 TESTS 70 1450 232755200 2400
29127878 fetetriste F Aug. 2, 2017, 11:15 a.m. OK Java 8 TESTS 70 1481 266342400 2400
30170049 dalt F Sept. 7, 2017, 2:08 a.m. OK Java 8 TESTS 70 1528 232652800 2400
29320464 mualanhlung017 F Aug. 10, 2017, 7:40 a.m. OK Java 8 TESTS 70 1668 98099200 2400
52632679 vjudge1 F April 12, 2019, 8:04 a.m. OK MS C++ TESTS 70 155 34816000 2400
58534687 vjudge3 F Aug. 10, 2019, 11:18 a.m. OK MS C++ TESTS 70 218 28876800 2400
52623197 vjudge5 F April 12, 2019, 12:12 a.m. OK MS C++ TESTS 70 233 81817600 2400
29364717 achudov89 F Aug. 11, 2017, 10:28 p.m. OK MS C++ TESTS 70 234 44748800 2400
29113062 williamyaoh F Aug. 2, 2017, 12:31 a.m. OK Rust TESTS 70 702 32768000 2400

remove filters

Back to search problems