Codeforces Round 480 (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
980 Codeforces Round 480 (Div. 2) FINISHED False 7200 211733723 May 8, 2018, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1960 ) E The Number Games PROGRAMMING data structures greedy trees 2300

B'The nation of Panel holds an annual show called The Number Games, where each district in the nation will be represented by one contestant. The nation has n districts numbered from 1 to n , each district has exactly one path connecting it to every other district. The number of fans of a contestant from district i is equal to 2^i . This year, the president decided to reduce the costs. He wants to remove k contestants from the games. However, the districts of the removed contestants will be furious and will not allow anyone to cross through their districts. The president wants to ensure that all remaining contestants are from districts that can be reached from one another. He also wishes to maximize the total number of fans of the participating contestants. Which contestants should the president remove? The first line of input contains two integers n and k ( 1 <= q k < n <= q 10^6 ) -- the number of districts in Panel, and the number of contestants the president wishes to remove, respectively. The next n-1 lines each contains two integers a and b ( 1 <= q a, b <= q n , a ne b ), that describe a road that connects two different districts a and b in the nation. It is guaranteed that there is exactly one path between every two districts. Print k space-separated integers: the numbers of the districts of which the contestants should be removed, in increasing order of district number. In the first sample, the maximum possible total number of fans is 2^2 + 2^5 + 2^6 = 100 . We can achieve it by removing the contestants of the districts 1, 3, and 4. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40826457 vjudge5 E July 27, 2018, 3:18 a.m. OK FPC TESTS 74 2791 150220800 2300
38051673 bestFy E May 8, 2018, 6:34 p.m. OK GNU C++ TESTS 74 560 79564800 2300
42136373 luogu_bot1 E Aug. 27, 2018, 12:27 a.m. OK GNU C++ TESTS 74 623 63897600 2300
42136394 vjudge5 E Aug. 27, 2018, 12:29 a.m. OK GNU C++ TESTS 74 639 63795200 2300
40224303 vjudge4 E July 12, 2018, 8:07 a.m. OK GNU C++ TESTS 74 655 84070400 2300
39767234 xiaosao E June 29, 2018, 11:54 a.m. OK GNU C++ TESTS 74 655 84070400 2300
38151445 aszwz E May 13, 2018, 3:29 a.m. OK GNU C++ TESTS 74 670 80384000 2300
40224120 TristeanimaCZY E July 12, 2018, 8:02 a.m. OK GNU C++ TESTS 74 670 84070400 2300
38970161 luogu_bot5 E June 5, 2018, 1:38 p.m. OK GNU C++ TESTS 74 670 87654400 2300
38908365 vjudge5 E June 3, 2018, 3:36 a.m. OK GNU C++ TESTS 74 732 88473600 2300
38355431 Maniac_Wallnut E May 17, 2018, 4:34 p.m. OK GNU C++ TESTS 74 748 117657600 2300
50637798 luogu_bot3 E March 1, 2019, 12:34 p.m. OK GNU C++11 TESTS 74 296 99942400 2300
52559589 luogu_bot4 E April 10, 2019, 9:36 a.m. OK GNU C++11 TESTS 74 311 99942400 2300
50637751 luogu_bot5 E March 1, 2019, 12:33 p.m. OK GNU C++11 TESTS 74 358 99942400 2300
55227039 hello_world2005 E June 7, 2019, 2:38 a.m. OK GNU C++11 TESTS 74 374 80896000 2300
52082769 wasa855 E March 31, 2019, 12:54 p.m. OK GNU C++11 TESTS 74 374 89088000 2300
59602450 luogu_bot1 E Aug. 28, 2019, 7 a.m. OK GNU C++11 TESTS 74 389 92057600 2300
47102785 _23333 E Dec. 16, 2018, 11:32 a.m. OK GNU C++11 TESTS 74 389 92057600 2300
64457587 luogu_bot2 E Nov. 7, 2019, 9:13 a.m. OK GNU C++11 TESTS 74 389 97075200 2300
63658960 luogu_bot2 E Oct. 28, 2019, 1:32 p.m. OK GNU C++11 TESTS 74 405 73113600 2300
47536229 COLINGAO E Dec. 27, 2018, 2 a.m. OK GNU C++11 TESTS 74 436 53555200 2300
38059850 xy961218 E May 9, 2018, 3:46 a.m. OK GNU C++14 TESTS 74 421 72601600 2300
40932179 ReaLNero1 E July 30, 2018, 1:37 a.m. OK GNU C++14 TESTS 74 452 69222400 2300
38484818 emma E May 21, 2018, 1:39 p.m. OK GNU C++14 TESTS 74 748 112537600 2300
38059792 xy961218 E May 9, 2018, 3:41 a.m. OK GNU C++14 TESTS 74 795 72396800 2300
38120251 ToToT E May 11, 2018, 5:23 p.m. OK GNU C++14 TESTS 74 810 71680000 2300
38076021 alwerty E May 9, 2018, 3:36 p.m. OK GNU C++14 TESTS 74 810 71680000 2300
38211826 abc473848880 E May 14, 2018, 10:49 a.m. OK GNU C++14 TESTS 74 811 76390400 2300
38050507 calabash_boy E May 8, 2018, 6:15 p.m. OK GNU C++14 TESTS 74 811 117555200 2300
38064389 Jupitercal E May 9, 2018, 7:50 a.m. OK GNU C++14 TESTS 74 857 93491200 2300
38075149 alwerty E May 9, 2018, 2:58 p.m. OK GNU C++14 TESTS 74 873 71577600 2300
44400064 vjudge2 E Oct. 16, 2018, 12:25 p.m. OK GNU C++17 TESTS 74 670 84377600 2300
38403183 OO_I_LOVE_YZQ__OO E May 18, 2018, 2:32 p.m. OK GNU C++17 TESTS 74 686 93286400 2300
38403151 OO_I_LOVE_YZQ__OO E May 18, 2018, 2:31 p.m. OK GNU C++17 TESTS 74 732 93593600 2300
38045124 KellyL E May 8, 2018, 4:40 p.m. OK GNU C++17 TESTS 74 826 77516800 2300
38121178 ToToT E May 11, 2018, 6:15 p.m. OK GNU C++17 TESTS 74 842 71680000 2300
38120988 ToToT E May 11, 2018, 6:05 p.m. OK GNU C++17 TESTS 74 858 71680000 2300
38121255 ToToT E May 11, 2018, 6:20 p.m. OK GNU C++17 TESTS 74 873 71680000 2300
38120915 ToToT E May 11, 2018, 6:01 p.m. OK GNU C++17 TESTS 74 888 71680000 2300
38084718 Wavator E May 10, 2018, 4:31 a.m. OK GNU C++17 TESTS 74 889 76390400 2300
38120867 ToToT E May 11, 2018, 5:58 p.m. OK GNU C++17 TESTS 74 935 71577600 2300
67861645 ZeyadKhattab E Dec. 29, 2019, 8:21 a.m. OK Java 11 TESTS 74 2869 238489600 2300
38254898 7dan E May 15, 2018, 3:22 a.m. OK Java 8 TESTS 74 1294 155955200 2300
38039562 uwi E May 8, 2018, 4:08 p.m. OK Java 8 TESTS 74 1403 181760000 2300
38056787 _kharouba E May 8, 2018, 11:44 p.m. OK Java 8 TESTS 74 1465 165478400 2300
38204064 Sharon E May 14, 2018, 2:34 a.m. OK Java 8 TESTS 74 1591 237977600 2300
38565613 Kharouba E May 23, 2018, 2:50 p.m. OK Java 8 TESTS 74 1637 186675200 2300
38056809 _kharouba E May 8, 2018, 11:46 p.m. OK Java 8 TESTS 74 1700 209305600 2300
38097823 flyman3046 E May 10, 2018, 5:08 p.m. OK Java 8 TESTS 74 1731 256102400 2300
38054800 hiromi_ayase E May 8, 2018, 8:34 p.m. OK Java 8 TESTS 74 1809 182169600 2300
38077654 Ahmad E May 9, 2018, 5:02 p.m. OK Java 8 TESTS 74 1825 268390400 2300
38077772 Ahmad E May 9, 2018, 5:09 p.m. OK Java 8 TESTS 74 1886 268390400 2300
44464883 vjudge3 E Oct. 18, 2018, 12:43 a.m. OK MS C++ TESTS 74 577 76083200 2300
44475695 vjudge5 E Oct. 18, 2018, 8:50 a.m. OK MS C++ TESTS 74 624 76083200 2300
44399724 vjudge4 E Oct. 16, 2018, 12:18 p.m. OK MS C++ TESTS 74 624 76083200 2300
43999728 vjudge1 E Oct. 8, 2018, 1:09 p.m. OK MS C++ TESTS 74 779 128307200 2300
44435172 vjudge3 E Oct. 17, 2018, 9:36 a.m. OK MS C++ TESTS 74 951 136192000 2300
38402115 wj2dy E May 18, 2018, 1:02 p.m. OK MS C++ TESTS 74 1029 80588800 2300
47317883 vjudge5 E Dec. 21, 2018, 5:39 a.m. OK MS C++ TESTS 74 1076 157286400 2300
44467015 vjudge3 E Oct. 18, 2018, 3:21 a.m. OK MS C++ TESTS 74 1091 133222400 2300
44464969 vjudge5 E Oct. 18, 2018, 12:50 a.m. OK MS C++ TESTS 74 1091 141209600 2300
44465215 vjudge4 E Oct. 18, 2018, 1:07 a.m. OK MS C++ TESTS 74 1138 129228800 2300
63708124 vjudge5 E Oct. 29, 2019, 9:05 a.m. OK MS C++ 2017 TESTS 74 1559 176332800 2300
63707995 vjudge4 E Oct. 29, 2019, 9:03 a.m. OK MS C++ 2017 TESTS 74 1762 205414400 2300
38104208 Ehzyo E May 11, 2018, 2:53 a.m. OK PyPy 2 TESTS 74 1949 152883200 2300

remove filters

Back to search problems