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 |
---|---|---|---|---|---|---|
1218 | Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] | FINISHED | False | 18000 | 168884687 | Sept. 15, 2019, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 160 ) | A | BubbleReactor | PROGRAMMING | dp graphs | 2800 |
B"You are in charge of the BubbleReactor. It consists of N BubbleCores connected with N lines of electrical wiring. Each electrical wiring connects two distinct BubbleCores. There are no BubbleCores connected with more than one line of electrical wiring. Your task is to start the BubbleReactor by starting each BubbleCore. In order for a BubbleCore to be started it needs to be receiving power from a directly connected BubbleCore which is already started. However, you can kick-start one BubbleCore manually without needing power. It is guaranteed that all BubbleCores can be started. Before the BubbleCore boot up procedure its potential is calculated as the number of BubbleCores it can power on (the number of inactive BubbleCores which are connected to it directly or with any number of inactive BubbleCores in between, itself included) Start the BubbleReactor so that the sum of all BubbleCores' potentials is maximum. First line contains one integer N (3 <= q N <= q 15.000) , the number of BubbleCores. The following N lines contain two integers U, V (0 <= q U neq V < N) denoting that there exists electrical wiring between BubbleCores U and V . Single integer, the maximum sum of all BubbleCores' potentials. If we start by kickstarting BubbleCup 8 and then turning on cores 7, 2, 1, 3, 0, 9, 4, 5, 6 in that order we get potentials 10 + 9 + 8 + 7 + 6 + 5 + 1 + 3 + 1 + 1 = 51 "... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
63054591 | zyt1253679098 | A | Oct. 21, 2019, 5:30 a.m. | OK | GNU C++11 | TESTS | 37 | 451 | 1433600 | 2800 | |
60744823 | Merit-xyq | A | Sept. 18, 2019, 12:13 a.m. | OK | GNU C++11 | TESTS | 37 | 530 | 2252800 | 2800 | |
60735552 | BigBag | A | Sept. 17, 2019, 5:20 p.m. | OK | GNU C++11 | TESTS | 37 | 530 | 2252800 | 2800 | |
60823741 | AutumnKite | A | Sept. 19, 2019, 2:26 a.m. | OK | GNU C++11 | TESTS | 37 | 576 | 1433600 | 2800 | |
60769228 | duxing201606 | A | Sept. 18, 2019, 12:06 p.m. | OK | GNU C++11 | TESTS | 37 | 576 | 8396800 | 2800 | |
63071697 | vjudge2 | A | Oct. 21, 2019, 12:34 p.m. | OK | GNU C++11 | TESTS | 37 | 623 | 3276800 | 2800 | |
61527275 | zhouzhuan | A | Sept. 29, 2019, 11:58 p.m. | OK | GNU C++11 | TESTS | 37 | 623 | 6963200 | 2800 | |
64281053 | Binary_Search_Tree | A | Nov. 5, 2019, 1:50 a.m. | OK | GNU C++11 | TESTS | 37 | 966 | 61542400 | 2800 | |
60926419 | pufanyi | A | Sept. 20, 2019, 12:25 p.m. | OK | GNU C++11 | TESTS | 37 | 1326 | 1638400 | 2800 | |
61113637 | _LeMur_ | A | Sept. 23, 2019, 12:09 p.m. | OK | GNU C++14 | TESTS | 37 | 779 | 2764800 | 2800 | |
61687249 | Jupitercal | A | Oct. 2, 2019, 4:24 a.m. | OK | GNU C++14 | TESTS | 37 | 826 | 3174400 | 2800 | |
61686670 | Jupitercal | A | Oct. 2, 2019, 4:09 a.m. | OK | GNU C++14 | TESTS | 37 | 826 | 18739200 | 2800 | |
60682827 | krijgertje | A | Sept. 16, 2019, 2:28 p.m. | OK | GNU C++14 | TESTS | 37 | 889 | 1740800 | 2800 | |
60647472 | zscoder gamegame Reyna | A | Sept. 15, 2019, 5:43 p.m. | OK | GNU C++14 | TESTS | 37 | 1029 | 3174400 | 2800 | |
60966454 | wakaka | A | Sept. 21, 2019, 7:08 a.m. | OK | GNU C++14 | TESTS | 37 | 1091 | 2150400 | 2800 | |
61083502 | jarin_rafa | A | Sept. 22, 2019, 5:20 p.m. | OK | GNU C++14 | TESTS | 37 | 1123 | 2252800 | 2800 | |
60717376 | Hasan0540 | A | Sept. 17, 2019, 11:12 a.m. | OK | GNU C++14 | TESTS | 37 | 1138 | 2252800 | 2800 | |
60645112 | Denisson ShadowLight DmitryGrigorev | A | Sept. 15, 2019, 4:49 p.m. | OK | GNU C++14 | TESTS | 37 | 1216 | 1945600 | 2800 | |
60691038 | spj_29 | A | Sept. 16, 2019, 5:21 p.m. | OK | GNU C++14 | TESTS | 37 | 1435 | 2867200 | 2800 | |
60645277 | KAN Um_nik | A | Sept. 15, 2019, 4:53 p.m. | OK | GNU C++17 | TESTS | 37 | 264 | 1740800 | 2800 | |
60648494 | 300iq MiFaFaOvO | A | Sept. 15, 2019, 6:06 p.m. | OK | GNU C++17 | TESTS | 37 | 390 | 2457600 | 2800 | |
60647927 | Nebuchadnezzar kraborak cdkrot | A | Sept. 15, 2019, 5:53 p.m. | OK | GNU C++17 | TESTS | 37 | 811 | 2457600 | 2800 | |
62072892 | rui-de | A | Oct. 7, 2019, 5:16 p.m. | OK | GNU C++17 | TESTS | 37 | 826 | 9523200 | 2800 | |
60909643 | BrendanOh | A | Sept. 20, 2019, 5:08 a.m. | OK | GNU C++17 | TESTS | 37 | 841 | 2867200 | 2800 | |
60747568 | AuqaKyz | A | Sept. 18, 2019, 3:20 a.m. | OK | GNU C++17 | TESTS | 37 | 842 | 2867200 | 2800 | |
65506501 | sincerity | A | Nov. 21, 2019, 11:12 p.m. | OK | GNU C++17 | TESTS | 37 | 998 | 2048000 | 2800 | |
64068256 | chenyeyuan | A | Nov. 2, 2019, 6:33 a.m. | OK | GNU C++17 | TESTS | 37 | 1045 | 1945600 | 2800 | |
60697324 | the_art_of_war Farhod_Farmon | A | Sept. 16, 2019, 8:24 p.m. | OK | GNU C++17 | TESTS | 37 | 1060 | 2355200 | 2800 | |
60644627 | nikolapesic2802 | A | Sept. 15, 2019, 4:39 p.m. | OK | GNU C++17 | TESTS | 37 | 1107 | 3788800 | 2800 |
Back to search problems