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 |
|---|---|---|---|---|---|---|
| 852 | Bubble Cup X - Finals [Online Mirror] | FINISHED | False | 18000 | 271972823 | Sept. 3, 2017, 10 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1232 ) | D | Exploration plan | PROGRAMMING | binary search flows graph matchings shortest paths | 2400 |
The competitors of Bubble Cup X gathered after the competition and discussed what is the best way to get to know the host country and its cities. After exploring the map of Serbia for a while, the competitors came up with the following facts: the country has V cities which are indexed with numbers from 1 to V , and there are E bi-directional roads that connect the cites. Each road has a weight (the time needed to cross that road). There are N teams at the Bubble Cup and the competitors came up with the following plan: each of the N teams will start their journey in one of the V cities, and some of the teams share the starting position. They want to find the shortest time T , such that every team can move in these T minutes, and the number of different cities they end up in is at least K (because they will only get to know the cities they end up in). A team doesn't have to be on the move all the time, if they like it in a particular city, they can stay there and wait for the time to pass. Please help the competitors to determine the shortest time T so it's possible for them to end up in at least K different cities or print -1 if that is impossible no matter how they move. Note that there can exist multiple roads between some cities. The first line contains four integers: V , E , N and K (1 ≤ V ≤ 600, 1 ≤ E ≤ 20000, 1 ≤ N ≤ min ( V , 200), 1 ≤ K ≤ N ) , number of cities, number of roads, number of teams and the smallest number of different cities they need to end up in, respectively. The second line contains N integers, the cities where the teams start their journey. Next E lines contain information about the roads in following format: A i B i T i (1 ≤ A i , B i ≤ V , 1 ≤ T i ≤ 10000) , which means that there is a road connecting cities A i and B i , and you need T i minutes to cross that road. Output a single integer that represents the minimal time the teams can move for, such that they end up in at least K different cities or output -1 if there is no solu |
| Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 30044579 | vjudge1 | D | Sept. 3, 2017, 11:38 p.m. | OK | GNU C++ | TESTS | 44 | 77 | 13619200 | 2400 | |
| 30098510 | Logic_zys | D | Sept. 5, 2017, 11:59 a.m. | OK | GNU C++ | TESTS | 44 | 78 | 3174400 | 2400 | |
| 30034316 | Lowenicte Treeleaving 2676985892 | D | Sept. 3, 2017, 12:41 p.m. | OK | GNU C++ | TESTS | 44 | 78 | 28569600 | 2400 | |
| 30037043 | Blue_Sky. wings_forever | D | Sept. 3, 2017, 2:11 p.m. | OK | GNU C++ | TESTS | 44 | 93 | 3379200 | 2400 | |
| 30048984 | SoiMae | D | Sept. 4, 2017, 8 a.m. | OK | GNU C++ | TESTS | 44 | 93 | 11571200 | 2400 | |
| 30033120 | chenjb xj-jyw oipotato | D | Sept. 3, 2017, 12:05 p.m. | OK | GNU C++ | TESTS | 44 | 93 | 23244800 | 2400 | |
| 30036443 | kut_kjb1994 | D | Sept. 3, 2017, 1:48 p.m. | OK | GNU C++ | TESTS | 44 | 109 | 10137600 | 2400 | |
| 31630974 | vjudge2 | D | Oct. 23, 2017, 1:44 p.m. | OK | GNU C++ | TESTS | 44 | 109 | 12697600 | 2400 | |
| 41987337 | violet.evergarden | D | Aug. 23, 2018, 6:52 a.m. | OK | GNU C++ | TESTS | 44 | 124 | 2150400 | 2400 | |
| 32787771 | vjudge3 | D | Nov. 29, 2017, 6:09 p.m. | OK | GNU C++ | TESTS | 44 | 140 | 28774400 | 2400 | |
| 62540340 | xgzc | D | Oct. 14, 2019, 2:54 a.m. | OK | GNU C++11 | TESTS | 44 | 61 | 41984000 | 2400 | |
| 30034547 | Magolor F.Darcy dsyhy | D | Sept. 3, 2017, 12:47 p.m. | OK | GNU C++11 | TESTS | 44 | 62 | 13619200 | 2400 | |
| 30045543 | Light_Kiss | D | Sept. 4, 2017, 2:05 a.m. | OK | GNU C++11 | TESTS | 44 | 62 | 42598400 | 2400 | |
| 30045507 | Light_Kiss | D | Sept. 4, 2017, 2 a.m. | OK | GNU C++11 | TESTS | 44 | 62 | 42598400 | 2400 | |
| 52367573 | jxf378440404 | D | April 6, 2019, 3:24 a.m. | OK | GNU C++11 | TESTS | 44 | 77 | 3379200 | 2400 | |
| 31841020 | vjudge4 | D | Oct. 28, 2017, 2:27 p.m. | OK | GNU C++11 | TESTS | 44 | 78 | 6246400 | 2400 | |
| 47335324 | Bung | D | Dec. 21, 2018, 2:50 p.m. | OK | GNU C++11 | TESTS | 44 | 124 | 2867200 | 2400 | |
| 30617266 | braveTester chitanda | D | Sept. 22, 2017, 2:25 p.m. | OK | GNU C++11 | TESTS | 44 | 124 | 3174400 | 2400 | |
| 59612868 | tsingcbx | D | Aug. 28, 2019, 11:35 a.m. | OK | GNU C++11 | TESTS | 44 | 124 | 7577600 | 2400 | |
| 43921562 | luogu_bot5 | D | Oct. 7, 2018, 12:19 a.m. | OK | GNU C++11 | TESTS | 44 | 140 | 2048000 | 2400 | |
| 30035075 | sfiction J.T.J.L. | D | Sept. 3, 2017, 1:03 p.m. | OK | GNU C++14 | TESTS | 44 | 31 | 38604800 | 2400 | |
| 30035643 | Laurant | D | Sept. 3, 2017, 1:23 p.m. | OK | GNU C++14 | TESTS | 44 | 46 | 22323200 | 2400 | |
| 40979926 | ReaLNero1 | D | July 30, 2018, 5:18 p.m. | OK | GNU C++14 | TESTS | 44 | 46 | 38604800 | 2400 | |
| 30033764 | animeshf zscoder minimario | D | Sept. 3, 2017, 12:25 p.m. | OK | GNU C++14 | TESTS | 44 | 62 | 6451200 | 2400 | |
| 30090296 | vjudge2 | D | Sept. 5, 2017, 4:30 a.m. | OK | GNU C++14 | TESTS | 44 | 62 | 7065600 | 2400 | |
| 30034899 | Anadi tommek Rzepa | D | Sept. 3, 2017, 12:58 p.m. | OK | GNU C++14 | TESTS | 44 | 78 | 5017600 | 2400 | |
| 30050206 | Jester | D | Sept. 4, 2017, 9:35 a.m. | OK | GNU C++14 | TESTS | 44 | 78 | 7065600 | 2400 | |
| 31531938 | Reventon | D | Oct. 20, 2017, 11:59 a.m. | OK | GNU C++14 | TESTS | 44 | 78 | 8294400 | 2400 | |
| 30039791 | ComradeMike | D | Sept. 3, 2017, 4:45 p.m. | OK | GNU C++14 | TESTS | 44 | 78 | 9420800 | 2400 | |
| 30031259 | ko_osaga conflict OnionPringles | D | Sept. 3, 2017, 11:15 a.m. | OK | GNU C++14 | TESTS | 44 | 93 | 2560000 | 2400 | |
| 52347869 | vjudge3 | D | April 5, 2019, 1:24 p.m. | OK | GNU C++17 | TESTS | 44 | 78 | 3481600 | 2400 | |
| 44594434 | orzcyand1317 | D | Oct. 20, 2018, 12:05 p.m. | OK | GNU C++17 | TESTS | 44 | 78 | 6553600 | 2400 | |
| 52587147 | Trisolaris | D | April 11, 2019, 1:29 a.m. | OK | GNU C++17 | TESTS | 44 | 93 | 6246400 | 2400 | |
| 68238954 | Phortox | D | Jan. 5, 2020, 12:05 p.m. | OK | GNU C++17 | TESTS | 44 | 124 | 3379200 | 2400 | |
| 45462726 | maroonrk | D | Nov. 9, 2018, 2:34 a.m. | OK | GNU C++17 | TESTS | 44 | 140 | 13414400 | 2400 | |
| 61281071 | Mohammad_Kartoumeh | D | Sept. 25, 2019, 4:58 p.m. | OK | GNU C++17 | TESTS | 44 | 186 | 8806400 | 2400 | |
| 64080687 | acka1357 spectaclehong threepebbles | D | Nov. 2, 2019, 10:09 a.m. | OK | GNU C++17 | TESTS | 44 | 202 | 2867200 | 2400 | |
| 56263525 | cheetose | D | June 29, 2019, 9:01 a.m. | OK | GNU C++17 | TESTS | 44 | 202 | 3481600 | 2400 | |
| 50905831 | chinmay0906 | D | March 6, 2019, 8:01 p.m. | OK | GNU C++17 | TESTS | 44 | 202 | 3891200 | 2400 | |
| 64667118 | AC_AR | D | Nov. 11, 2019, 3:20 a.m. | OK | GNU C++17 | TESTS | 44 | 202 | 14643200 | 2400 | |
| 30051161 | mualanhlung017 | D | Sept. 4, 2017, 10:50 a.m. | OK | Java 8 | TESTS | 44 | 389 | 0 | 2400 | |
| 30691636 | Thomas_Ahle | D | Sept. 24, 2017, 10:24 p.m. | OK | Java 8 | TESTS | 44 | 763 | 0 | 2400 | |
| 30691665 | Thomas_Ahle | D | Sept. 24, 2017, 10:28 p.m. | OK | Java 8 | TESTS | 44 | 811 | 0 | 2400 | |
| 30038914 | ebaalhuis | D | Sept. 3, 2017, 3:42 p.m. | OK | Java 8 | TESTS | 44 | 967 | 0 | 2400 | |
| 30034074 | qwerty787788 | D | Sept. 3, 2017, 12:33 p.m. | OK | Java 8 | TESTS | 44 | 1045 | 16998400 | 2400 | |
| 58492454 | allin77 | D | Aug. 9, 2019, 10:31 a.m. | OK | Java 8 | TESTS | 44 | 1606 | 1126400 | 2400 | |
| 30036542 | DimonK | D | Sept. 3, 2017, 1:51 p.m. | OK | MS C++ | TESTS | 44 | 249 | 1740800 | 2400 | |
| 30037547 | natalia | D | Sept. 3, 2017, 2:32 p.m. | OK | MS C++ | TESTS | 44 | 358 | 1740800 | 2400 | |
| 59137635 | monggo1995 | D | Aug. 20, 2019, 1:14 p.m. | OK | MS C++ | TESTS | 44 | 514 | 9932800 | 2400 | |
| 58536722 | Spiritum | D | Aug. 10, 2019, 12:14 p.m. | OK | MS C++ 2017 | TESTS | 44 | 187 | 1945600 | 2400 |
Back to search problems