Codeforces Round 163 (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
266 Codeforces Round 163 (Div. 2) FINISHED False 7200 378829797 Jan. 22, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 906 ) D BerDonalds PROGRAMMING graphs math shortest paths 2600

B"BerDonalds, a well-known fast food restaurant, is going to open a cafe in Bertown. The important thing is to choose the new restaurant's location so that it would be easy to get there. The Bertown road system is represented by n junctions, connected by m bidirectional roads. For each road we know its length. We also know that we can get from any junction to any other one, moving along the roads. Your task is to find such location of the restaurant, that the shortest distance along the roads from the cafe to the farthest junction would be minimum. Note that the restaurant can be located not only on the junction, but at any point of any road. The first line contains two integers n and m () -- the number of junctions and the number of roads, correspondingly. Then m lines follow, describing all Bertown roads. Each road is described by three integers ai, xe2 x80 x89bi, xe2 x80 x89wi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89bi; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), where ai and bi are the numbers of the junctions, connected by the i-th road, and wi is the length of the i-th road. It is guaranteed that each road connects two distinct junctions, there is at most one road between any two junctions, and you can get from any junction to any other one. Print a single real number -- the shortest distance from the optimal restaurant location to the farthest junction. The answer will be considered correct, if its absolute or relative error doesn't exceed 10 xe2 x80 x89- xe2 x80 x899."...

Tutorials

Codeforces Round #163 (Div. 2) Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47551119 zck D Dec. 27, 2018, 1:03 p.m. OK GNU C++11 TESTS 41 92 204800 2600
40990277 ReaLNero1 D July 30, 2018, 11:46 p.m. OK GNU C++11 TESTS 41 92 307200 2600
64438606 Dup4 D Nov. 7, 2019, 2:55 a.m. OK GNU C++11 TESTS 41 92 409600 2600
69567172 luogu_bot3 D Jan. 26, 2020, 12:51 p.m. OK GNU C++11 TESTS 41 92 819200 2600
67524444 luogu_bot5 D Dec. 24, 2019, 1:30 p.m. OK GNU C++11 TESTS 41 92 819200 2600
54499991 WOSHIGEPACHONG2 D May 22, 2019, 8:07 p.m. OK GNU C++11 TESTS 41 92 819200 2600
51447571 Big_black_jujube D March 18, 2019, 1:13 p.m. OK GNU C++11 TESTS 41 92 819200 2600
64439571 Dup4 D Nov. 7, 2019, 3:29 a.m. OK GNU C++11 TESTS 41 122 12288000 2600
54665793 Shine_Sky D May 26, 2019, 1:18 p.m. OK GNU C++11 TESTS 41 124 1228800 2600
56015342 xht37 D June 24, 2019, 8:43 p.m. OK GNU C++11 TESTS 41 124 4505600 2600
47440798 fengyecong D Dec. 24, 2018, 12:28 a.m. OK GNU C++14 TESTS 41 92 819200 2600
43502990 terminator D Sept. 27, 2018, 5:58 p.m. OK GNU C++14 TESTS 41 92 13312000 2600
43823282 Makaveli D Oct. 5, 2018, 10:26 a.m. OK GNU C++14 TESTS 41 436 614400 2600
43662815 Corvus D Oct. 1, 2018, 8:04 p.m. OK GNU C++14 TESTS 41 468 1024000 2600
43496975 rawatds D Sept. 27, 2018, 3:11 p.m. OK GNU C++14 TESTS 41 498 1536000 2600
69058864 kyuna D Jan. 18, 2020, 3:38 p.m. OK GNU C++14 TESTS 41 872 819200 2600
67724849 mota_haathi D Dec. 27, 2019, 3:28 p.m. OK GNU C++14 TESTS 41 1092 921600 2600
61305179 calabash_boy D Sept. 26, 2019, 6:54 a.m. OK GNU C++14 TESTS 41 1122 614400 2600
46923838 tender_green D Dec. 12, 2018, 7:13 a.m. OK GNU C++14 TESTS 41 3150 819200 2600
65943703 rfpermen D Nov. 29, 2019, 7:38 a.m. OK GNU C++14 TESTS 41 3150 1228800 2600
61561015 jyf111 D Sept. 30, 2019, 3:33 p.m. OK GNU C++17 TESTS 41 92 3276800 2600
63646027 Roundgod D Oct. 28, 2019, 9:42 a.m. OK GNU C++17 TESTS 41 218 9728000 2600
49369726 crathva D Feb. 2, 2019, 4:45 p.m. OK GNU C++17 TESTS 41 312 1228800 2600
49369589 crathva D Feb. 2, 2019, 4:42 p.m. OK GNU C++17 TESTS 41 312 1228800 2600
61768038 hjk1030 D Oct. 3, 2019, 9:15 a.m. OK GNU C++17 TESTS 41 404 716800 2600
68652265 Farhod_Farmon D Jan. 12, 2020, 11:08 a.m. OK GNU C++17 TESTS 41 434 204800 2600
42892233 I_love_Y_UME D Sept. 15, 2018, 1:33 p.m. OK GNU C++17 TESTS 41 466 819200 2600
57345263 UnstoppableChillMachine D July 19, 2019, 10:06 p.m. OK GNU C++17 TESTS 41 498 512000 2600
51669073 ruo D March 22, 2019, 7:26 a.m. OK GNU C++17 TESTS 41 498 1024000 2600
61932996 roll_no_1 D Oct. 5, 2019, 4:56 p.m. OK GNU C++17 TESTS 41 530 1126400 2600
51784989 dmitriy0712 D March 24, 2019, 10:10 a.m. OK Java 8 TESTS 41 342 0 2600
51712306 dmitriy0712 D March 22, 2019, 4:29 p.m. OK Java 8 TESTS 41 436 0 2600

remove filters

Back to search problems