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 |
| 773
|
VK Cup 2017 - Round 3 |
FINISHED |
False |
10800 |
282320085 |
May 7, 2017, 3:45 p.m. |
Problems
In the country of Never, there are n cities and a well-developed road system. There is exactly one bidirectional road between every pair of cities, thus, there are as many as roads! No two roads intersect, and no road passes through intermediate cities. The art of building tunnels and bridges has been mastered by Neverians. An independent committee has evaluated each road of Never with a positive integer called the perishability of the road. The lower the road's perishability is, the more pleasant it is to drive through this road. It's the year of transport in Never. It has been decided to build a museum of transport in one of the cities, and to set a single signpost directing to some city (not necessarily the one with the museum) in each of the other cities. The signposts must satisfy the following important condition: if any Neverian living in a city without the museum starts travelling from that city following the directions of the signposts, then this person will eventually arrive in the city with the museum. Neverians are incredibly positive-minded. If a Neverian travels by a route consisting of several roads, he considers the perishability of the route to be equal to the smallest perishability of all the roads in this route. The government of Never has not yet decided where to build the museum, so they consider all n possible options. The most important is the sum of perishabilities of the routes to the museum city from all the other cities of Never, if the travelers strictly follow the directions of the signposts. The government of Never cares about their citizens, so they want to set the signposts in a way which minimizes this sum. Help them determine the minimum possible sum for all n possible options of the city where the museum can be built. The first line contains a single integer n ( 2 ≤ n ≤ 2000 ) — the number of cities in Never. The following n - 1 lines contain the description of the road network. The i -th of these lines contains n - i int |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
27468430 |
ddddddpppppp |
D |
May 31, 2017, 2 p.m. |
OK |
GNU C++ |
TESTS |
42 |
124 |
17715200 |
|
2700 |
|
40982290 |
ReaLNero1 |
D |
July 30, 2018, 6:21 p.m. |
OK |
GNU C++ |
TESTS |
42 |
155 |
17715200 |
|
2700 |
|
35908448 |
zhoudong |
D |
March 4, 2018, 6:38 a.m. |
OK |
GNU C++ |
TESTS |
42 |
187 |
34508800 |
|
2700 |
|
27578394 |
XuYipei |
D |
June 5, 2017, 8:08 a.m. |
OK |
GNU C++ |
TESTS |
42 |
187 |
72704000 |
|
2700 |
|
36523503 |
TimeLimitExceed |
D |
March 23, 2018, 7:36 a.m. |
OK |
GNU C++ |
TESTS |
42 |
312 |
54067200 |
|
2700 |
|
27328095 |
Awner |
D |
May 25, 2017, 2:22 a.m. |
OK |
GNU C++ |
TESTS |
42 |
452 |
15974400 |
|
2700 |
|
27356455 |
krijgertje |
D |
May 26, 2017, 1:31 p.m. |
OK |
GNU C++ |
TESTS |
42 |
452 |
16281600 |
|
2700 |
|
34142564 |
Spylft |
D |
Jan. 13, 2018, 2:07 p.m. |
OK |
GNU C++ |
TESTS |
42 |
452 |
18227200 |
|
2700 |
|
41245382 |
luogu_bot1 |
D |
Aug. 5, 2018, 12:48 p.m. |
OK |
GNU C++ |
TESTS |
42 |
468 |
16179200 |
|
2700 |
|
26937426 |
SergeiFedorov |
D |
May 7, 2017, 5:23 p.m. |
OK |
GNU C++ |
TESTS |
42 |
514 |
32768000 |
|
2700 |
|
50809797 |
shierjie |
D |
March 5, 2019, 8 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
124 |
15872000 |
|
2700 |
|
38604357 |
skylee |
D |
May 25, 2018, 8:55 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
155 |
15872000 |
|
2700 |
|
56068731 |
hankeke |
D |
June 26, 2019, 9:17 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
155 |
16179200 |
|
2700 |
|
50869992 |
Rachel_in |
D |
March 6, 2019, 12:18 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
155 |
200908800 |
|
2700 |
|
50809350 |
QAQ_yyy_qwq |
D |
March 5, 2019, 7:43 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
155 |
201728000 |
|
2700 |
|
35953660 |
yugao |
D |
March 5, 2018, 12:57 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
156 |
18022400 |
|
2700 |
|
50820350 |
crpboy |
D |
March 5, 2019, 1:17 p.m. |
OK |
GNU C++11 |
TESTS |
42 |
156 |
32563200 |
|
2700 |
|
50824442 |
luogu_bot5 |
D |
March 5, 2019, 2:59 p.m. |
OK |
GNU C++11 |
TESTS |
42 |
156 |
74547200 |
|
2700 |
|
50811153 |
xuxuxuxuxu |
D |
March 5, 2019, 8:51 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
156 |
74547200 |
|
2700 |
|
53708121 |
Libitina |
D |
May 3, 2019, 2:13 p.m. |
OK |
GNU C++11 |
TESTS |
42 |
156 |
201728000 |
|
2700 |
|
56148392 |
NotNight |
D |
June 27, 2019, 7:16 a.m. |
OK |
GNU C++14 |
TESTS |
42 |
546 |
16179200 |
|
2700 |
|
26937645 |
zemen Zlobober |
D |
May 7, 2017, 5:26 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
608 |
16179200 |
|
2700 |
|
26940268 |
ershov.stanislav aid |
D |
May 7, 2017, 5:58 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
623 |
19456000 |
|
2700 |
|
26938999 |
YakutovDmitriy Nebuchadnezzar |
D |
May 7, 2017, 5:42 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
638 |
16384000 |
|
2700 |
|
31935427 |
zhangzy |
D |
Oct. 31, 2017, 11:35 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
654 |
16179200 |
|
2700 |
|
27346669 |
chenzezheng |
D |
May 26, 2017, 12:37 a.m. |
OK |
GNU C++14 |
TESTS |
42 |
654 |
16179200 |
|
2700 |
|
68219609 |
bjn.revolution |
D |
Jan. 5, 2020, 3:37 a.m. |
OK |
GNU C++14 |
TESTS |
42 |
655 |
32460800 |
|
2700 |
|
26998415 |
MadNick |
D |
May 10, 2017, 2:48 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
670 |
16179200 |
|
2700 |
|
26977140 |
data_h |
D |
May 9, 2017, 3:12 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
670 |
16179200 |
|
2700 |
|
69257442 |
bjn |
D |
Jan. 21, 2020, 4:03 p.m. |
OK |
GNU C++14 |
TESTS |
42 |
670 |
32256000 |
|
2700 |
|
64523459 |
Qingyu |
D |
Nov. 8, 2019, 1:02 p.m. |
OK |
GNU C++17 |
TESTS |
42 |
140 |
75571200 |
|
2700 |
|
48921157 |
zhangqingqi |
D |
Jan. 25, 2019, 7:55 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
577 |
36864000 |
|
2700 |
|
46052417 |
InvUsr |
D |
Nov. 22, 2018, 8:34 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
592 |
17203200 |
|
2700 |
|
54977554 |
hjk1030 |
D |
June 2, 2019, 11:33 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
592 |
36249600 |
|
2700 |
|
60952568 |
tfg |
D |
Sept. 20, 2019, 11:12 p.m. |
OK |
GNU C++17 |
TESTS |
42 |
608 |
16384000 |
|
2700 |
|
58843788 |
Slaaava |
D |
Aug. 15, 2019, 3:49 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
685 |
32256000 |
|
2700 |
|
46963677 |
YenSean |
D |
Dec. 13, 2018, 9:56 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
717 |
32358400 |
|
2700 |
|
38604380 |
skylee |
D |
May 25, 2018, 8:57 a.m. |
OK |
GNU C++17 |
TESTS |
42 |
1106 |
16076800 |
|
2700 |
|
26942209 |
RomaWhite witua |
D |
May 7, 2017, 6:22 p.m. |
OK |
MS C++ |
TESTS |
42 |
467 |
16281600 |
|
2700 |
|
67443590 |
kuzko322 |
D |
Dec. 22, 2019, 8:38 p.m. |
OK |
MS C++ 2017 |
TESTS |
42 |
1730 |
16384000 |
|
2700 |
remove filters
Back to search problems