MemSQL Start[c]UP 2.0 - Round 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
457 MemSQL Start[c]UP 2.0 - Round 2 FINISHED False 10800 368715623 Aug. 10, 2014, 5 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 121 ) E Flow Optimality PROGRAMMING constructive algorithms flows math 3200

There is a computer network consisting of n nodes numbered 1 through n . There are links in the network that connect pairs of nodes. A pair of nodes may have multiple links between them, but no node has a link to itself. Each link supports unlimited bandwidth (in either direction), however a link may only transmit in a single direction at any given time. The cost of sending data across a link is proportional to the square of the bandwidth. Specifically, each link has a positive weight, and the cost of sending data across the link is the weight times the square of the bandwidth. The network is connected (there is a series of links from any node to any other node), and furthermore designed to remain connected in the event of any single node failure. You needed to send data from node 1 to node n at a bandwidth of some positive number k . That is, you wish to assign a bandwidth to each link so that the bandwidth into a node minus the bandwidth out of a node is - k for node 1, k for node n , and 0 for all other nodes. The individual bandwidths do not need to be integers. Wishing to minimize the total cost, you drew a diagram of the network, then gave the task to an intern to solve. The intern claimed to have solved the task and written the optimal bandwidths on your diagram, but then spilled coffee on it, rendering much of it unreadable (including parts of the original diagram, and the value of k ). From the information available, determine if the intern's solution may have been optimal. That is, determine if there exists a valid network, total bandwidth, and optimal solution which is a superset of the given information. Furthermore, determine the efficiency of the intern's solution (if possible), where efficiency is defined as total cost divided by total bandwidth. Input will begin with two integers n and m ( 2 ≤ n ≤ 200000 ; 0 ≤ m ≤ 200000 ), the number of nodes and number of known links in the network, respectively. Following this are m lines with four integ

Tutorials

MemSQL Start[c]UP 2.0 Round 1 and 2 Editorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10916145 yts1999 E April 28, 2015, 7:30 a.m. OK GNU C++ TESTS 61 155 9318400 3200
40988127 ReaLNero1 E July 30, 2018, 9:45 p.m. OK GNU C++ TESTS 61 171 3788800 3200
11337910 Amr_Hassan E May 28, 2015, 7:22 p.m. OK GNU C++ TESTS 61 171 7884800 3200
9386806 Recos E Jan. 8, 2015, 2:35 p.m. OK GNU C++ TESTS 61 171 7987200 3200
8866506 ljcc E Nov. 27, 2014, 6:31 a.m. OK GNU C++ TESTS 61 171 7987200 3200
8866478 ljcc E Nov. 27, 2014, 6:26 a.m. OK GNU C++ TESTS 61 171 7987200 3200
8866453 ljcc E Nov. 27, 2014, 6:22 a.m. OK GNU C++ TESTS 61 171 7987200 3200
7570919 ljcc E Aug. 25, 2014, 6:52 a.m. OK GNU C++ TESTS 61 171 7987200 3200
7570332 ljcc E Aug. 25, 2014, 4 a.m. OK GNU C++ TESTS 61 171 7987200 3200
35873575 ______u______ E March 3, 2018, 7:34 a.m. OK GNU C++ TESTS 61 171 9932800 3200
10202134 pooyan10000 E March 8, 2015, 8:04 a.m. OK GNU C++0x TESTS 61 187 7884800 3200
7436864 ecnerwala E Aug. 12, 2014, 6:41 p.m. OK GNU C++0x TESTS 61 187 29900800 3200
57889089 lopare E July 28, 2019, 11:08 a.m. OK GNU C++11 TESTS 61 171 7884800 3200
10797216 I_love_Ender_Babal66 E April 20, 2015, 11:49 a.m. OK GNU C++11 TESTS 61 171 9932800 3200
17152217 freebsdx E April 4, 2016, 1:59 a.m. OK GNU C++11 TESTS 61 186 10035200 3200
11496012 motoko E June 8, 2015, 9:40 a.m. OK GNU C++11 TESTS 61 1279 6451200 3200
23531761 Ali.Pi E Jan. 4, 2017, 9:06 a.m. OK GNU C++14 TESTS 61 233 9932800 3200
69939938 gongsuidashen E Feb. 1, 2020, 5:46 a.m. OK GNU C++17 TESTS 61 217 3993600 3200
60591073 Benq E Sept. 15, 2019, 2:15 a.m. OK GNU C++17 TESTS 61 265 27750400 3200

remove filters

Back to search problems