Technocup 2019 - Elimination Round 4

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
1085 Technocup 2019 - Elimination Round 4 FINISHED False 7200 191867087 Dec. 23, 2018, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5569 ) D Minimum Diameter Tree PROGRAMMING constructive algorithms implementation trees 1700

B"You are given a tree (an undirected connected graph without cycles) and an integer s . Vanya wants to put weights on all edges of the tree so that all weights are non-negative real numbers and their sum is s . At the same time, he wants to make the diameter of the tree as small as possible. Let's define the diameter of a weighed tree as the maximum sum of the weights of the edges lying on the path between two some vertices of the tree. In other words, the diameter of a weighed tree is the length of the longest simple path in the tree, where length of a path is equal to the sum of weights over all edges in the path. Find the minimum possible diameter that Vanya can get. The first line contains two integer numbers n and s ( 2 <= q n <= q 10^5 , 1 <= q s <= q 10^9 ) -- the number of vertices in the tree and the sum of edge weights. Each of the following n xe2 x88 x921 lines contains two space-separated integer numbers a_i and b_i ( 1 <= q a_i, b_i <= q n , a_i neq b_i ) -- the indexes of vertices connected by an edge. The edges are undirected. It is guaranteed that the given edges form a tree. Print the minimum diameter of the tree that Vanya can get by placing some non-negative real weights on its edges with the sum equal to s . Your answer will be considered correct if its absolute or relative error does not exceed 10^{-6} . Formally, let your answer be a , and the jury's answer be b . Your answer is considered correct if frac {|a-b|} {max(1, b)} <= q 10^{-6} . In the first example it is necessary to put weights like this: It is easy to see that the diameter of this tree is 2 . It can be proved that it is the minimum possible diameter. In the second example it is necessary to put weights like this: "...

Tutorials

Technocup 2019 — Elimination Round 4 + Codeforces Round 528: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47430856 Pashechka D Dec. 23, 2018, 4:13 p.m. OK Clang++17 Diagnostics TESTS 36 826 1843200 1700
50661669 rr_ D March 1, 2019, 11:58 p.m. OK D TESTS 36 93 4198400 1700
47425827 ayatsevich D Dec. 23, 2018, 3:14 p.m. OK FPC TESTS 36 62 409600 1700
48284286 Bramble D Jan. 12, 2019, 9:32 a.m. OK GNU C11 TESTS 36 61 409600 1700
68914080 z7z_Eta D Jan. 16, 2020, 8:10 a.m. OK GNU C++11 TESTS 36 31 204800 1700
64856765 luogu_bot2 D Nov. 13, 2019, 11:47 p.m. OK GNU C++11 TESTS 36 31 409600 1700
55396888 wyy2004 D June 10, 2019, 12:11 p.m. OK GNU C++11 TESTS 36 31 409600 1700
55396847 wyy2004 D June 10, 2019, 12:10 p.m. OK GNU C++11 TESTS 36 31 409600 1700
50164892 luogu_bot4 D Feb. 19, 2019, 2:13 p.m. OK GNU C++11 TESTS 36 31 409600 1700
67011355 poaspoas D Dec. 16, 2019, 9:58 a.m. OK GNU C++11 TESTS 36 31 409600 1700
48534115 luogu_bot3 D Jan. 18, 2019, 1:26 p.m. OK GNU C++11 TESTS 36 31 409600 1700
47956292 Itst D Jan. 5, 2019, 6:23 a.m. OK GNU C++11 TESTS 36 31 409600 1700
49032269 miaokehao D Jan. 26, 2019, 11:45 p.m. OK GNU C++11 TESTS 36 31 409600 1700
64856794 luogu_bot4 D Nov. 13, 2019, 11:49 p.m. OK GNU C++11 TESTS 36 31 409600 1700
47478362 Wake D Dec. 25, 2018, 12:55 a.m. OK GNU C++14 TESTS 36 46 409600 1700
50505426 CodigoL D Feb. 25, 2019, 7:25 p.m. OK GNU C++14 TESTS 36 61 409600 1700
49397878 borametz D Feb. 3, 2019, 1:15 p.m. OK GNU C++14 TESTS 36 61 409600 1700
47783807 alvinvaja D Dec. 31, 2018, 9:35 a.m. OK GNU C++14 TESTS 36 61 409600 1700
58086828 a_solo_player D July 31, 2019, 3:57 p.m. OK GNU C++14 TESTS 36 62 409600 1700
64205213 ljk123 D Nov. 4, 2019, 12:41 p.m. OK GNU C++14 TESTS 36 62 409600 1700
63231133 TianSunXing D Oct. 23, 2019, 11:01 a.m. OK GNU C++14 TESTS 36 62 409600 1700
61535134 HouZAJ D Sept. 30, 2019, 5:55 a.m. OK GNU C++14 TESTS 36 62 409600 1700
58396366 _FlyingColor_ D Aug. 6, 2019, 3:47 p.m. OK GNU C++14 TESTS 36 62 409600 1700
53959124 vjudge1 D May 10, 2019, 1:14 p.m. OK GNU C++14 TESTS 36 62 409600 1700
61201131 pragmatism0220 D Sept. 24, 2019, 7:48 a.m. OK GNU C++17 TESTS 36 31 4608000 1700
47443785 ILoveU3000 D Dec. 24, 2018, 4:32 a.m. OK GNU C++17 TESTS 36 61 409600 1700
53965231 vjudge2 D May 10, 2019, 4:33 p.m. OK GNU C++17 TESTS 36 61 512000 1700
49989144 fffeyn D Feb. 16, 2019, 11:58 a.m. OK GNU C++17 TESTS 36 61 819200 1700
68049012 Mohd. D Jan. 1, 2020, 5:51 p.m. OK GNU C++17 TESTS 36 62 409600 1700
59075676 sdibt5 D Aug. 19, 2019, 7:02 a.m. OK GNU C++17 TESTS 36 62 409600 1700
57744447 Nakagawa.Kanon D July 25, 2019, 12:32 p.m. OK GNU C++17 TESTS 36 62 409600 1700
57698623 GeorgeRaouf D July 24, 2019, 5:12 p.m. OK GNU C++17 TESTS 36 62 409600 1700
56223307 adamos2468 D June 28, 2019, 10:36 a.m. OK GNU C++17 TESTS 36 62 409600 1700
69775296 Rahul_cpp D Jan. 29, 2020, 4:16 p.m. OK GNU C++17 TESTS 36 62 409600 1700
68593065 zhanyi_xiaolu D Jan. 11, 2020, 1:14 p.m. OK Java 11 TESTS 36 405 0 1700
49604119 revanthreddy85 D Feb. 7, 2019, 6:33 p.m. OK Java 8 TESTS 36 124 0 1700
63741897 potatmen D Oct. 29, 2019, 5:15 p.m. OK Java 8 TESTS 36 155 0 1700
60459499 vjvjain0 D Sept. 12, 2019, 7:46 p.m. OK Java 8 TESTS 36 155 0 1700
47438608 kusomushi D Dec. 23, 2018, 9:10 p.m. OK Java 8 TESTS 36 155 0 1700
47430704 4mda4mda D Dec. 23, 2018, 4:10 p.m. OK Java 8 TESTS 36 155 0 1700
47425246 iliamikado D Dec. 23, 2018, 3:11 p.m. OK Java 8 TESTS 36 155 0 1700
47421712 Daniil574 D Dec. 23, 2018, 2:52 p.m. OK Java 8 TESTS 36 156 0 1700
47548559 SevenDeadlySins D Dec. 27, 2018, 11:42 a.m. OK Java 8 TESTS 36 171 0 1700
47428713 MadKnightOfTheBrush D Dec. 23, 2018, 3:30 p.m. OK Java 8 TESTS 36 234 14438400 1700
47423695 rentacat45 D Dec. 23, 2018, 3:03 p.m. OK Java 8 TESTS 36 234 14540800 1700
59649902 og.kostya D Aug. 29, 2019, 7:44 a.m. OK Mono C# TESTS 36 93 3993600 1700
50483832 Mem D Feb. 25, 2019, 10:32 a.m. OK Mono C# TESTS 36 155 7065600 1700
47436192 yar.isaev47 D Dec. 23, 2018, 7:11 p.m. OK Mono C# TESTS 36 171 21299200 1700
54343361 vjudge3 D May 18, 2019, 11:20 a.m. OK MS C++ TESTS 36 46 409600 1700
54342666 vjudge1 D May 18, 2019, 11:03 a.m. OK MS C++ TESTS 36 46 409600 1700
53957068 vjudge3 D May 10, 2019, 12:21 p.m. OK MS C++ TESTS 36 46 409600 1700
53955737 vjudge4 D May 10, 2019, 11:48 a.m. OK MS C++ TESTS 36 46 409600 1700
54346823 vjudge2 D May 18, 2019, 12:52 p.m. OK MS C++ TESTS 36 46 409600 1700
54343610 vjudge3 D May 18, 2019, 11:26 a.m. OK MS C++ TESTS 36 46 409600 1700
54346653 vjudge1 D May 18, 2019, 12:47 p.m. OK MS C++ TESTS 36 46 409600 1700
59075593 sdibt2 D Aug. 19, 2019, 7:01 a.m. OK MS C++ TESTS 36 46 819200 1700
53955463 vjudge5 D May 10, 2019, 11:42 a.m. OK MS C++ TESTS 36 61 409600 1700
53870094 vjudge1 D May 8, 2019, 8:16 a.m. OK MS C++ TESTS 36 61 409600 1700
49689680 amolb89 D Feb. 10, 2019, 10:25 a.m. OK MS C++ 2017 TESTS 36 202 3686400 1700
47420179 l-_-l D Dec. 23, 2018, 2:44 p.m. OK PascalABC.NET TESTS 36 140 0 1700
47719827 OpKos D Dec. 30, 2018, 10:31 a.m. OK PascalABC.NET TESTS 36 155 3174400 1700
47421313 dymeon D Dec. 23, 2018, 2:49 p.m. OK PascalABC.NET TESTS 36 156 5222400 1700
47624544 Dispersion D Dec. 28, 2018, 2:26 p.m. OK PascalABC.NET TESTS 36 187 3174400 1700
60733075 nikeshthapa255 D Sept. 17, 2019, 4:26 p.m. OK PyPy 2 TESTS 36 374 9625600 1700
49157583 soumyasarkar1998 D Jan. 29, 2019, 2:15 p.m. OK PyPy 2 TESTS 36 779 9728000 1700
47431963 mathdude42 D Dec. 23, 2018, 4:35 p.m. OK PyPy 3 TESTS 36 873 8601600 1700
47423801 senchopens D Dec. 23, 2018, 3:03 p.m. OK PyPy 3 TESTS 36 889 8499200 1700
54344463 vjudge3 D May 18, 2019, 11:47 a.m. OK PyPy 3 TESTS 36 935 10342400 1700
49502489 artifexbm D Feb. 5, 2019, 3:54 p.m. OK PyPy 3 TESTS 36 936 11366400 1700
47440901 Naoki_M D Dec. 24, 2018, 12:39 a.m. OK PyPy 3 TESTS 36 967 16179200 1700
47438966 lollihunter D Dec. 23, 2018, 9:33 p.m. OK PyPy 3 TESTS 36 982 10137600 1700
47438960 lollihunter D Dec. 23, 2018, 9:32 p.m. OK PyPy 3 TESTS 36 982 10240000 1700
47438947 lollihunter D Dec. 23, 2018, 9:31 p.m. OK PyPy 3 TESTS 36 998 10035200 1700
47438881 lollihunter D Dec. 23, 2018, 9:28 p.m. OK PyPy 3 TESTS 36 998 10342400 1700
49066719 Narut D Jan. 27, 2019, 6:07 p.m. OK Python 3 TESTS 36 311 6656000 1700
47425057 GruzdevaDaria D Dec. 23, 2018, 3:10 p.m. OK Python 3 TESTS 36 343 921600 1700
48470188 M1T D Jan. 16, 2019, 7:40 p.m. OK Python 3 TESTS 36 343 7782400 1700
47419448 Al_Surkova D Dec. 23, 2018, 2:40 p.m. OK Python 3 TESTS 36 358 307200 1700
50256205 galim665 D Feb. 20, 2019, 7:51 p.m. OK Python 3 TESTS 36 358 409600 1700
47422767 Avagr D Dec. 23, 2018, 2:57 p.m. OK Python 3 TESTS 36 358 409600 1700
47421350 ndari D Dec. 23, 2018, 2:50 p.m. OK Python 3 TESTS 36 358 921600 1700
47427810 Delanary D Dec. 23, 2018, 3:26 p.m. OK Python 3 TESTS 36 373 921600 1700
47421070 Jurii D Dec. 23, 2018, 2:48 p.m. OK Python 3 TESTS 36 374 307200 1700
47413974 Airushik D Dec. 23, 2018, 2:15 p.m. OK Python 3 TESTS 36 374 6348800 1700

remove filters

Back to search problems