Codeforces Round 313 (Div. 1)

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
559 Codeforces Round 313 (Div. 1) FINISHED False 7200 294249599 July 22, 2015, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 944 ) E Gerald and Path PROGRAMMING dp sortings 2900

B"The main walking trail in Geraldion is absolutely straight, and it passes strictly from the north to the south, it is so long that no one has ever reached its ends in either of the two directions. The Geraldionians love to walk on this path at any time, so the mayor of the city asked the Herald to illuminate this path with a few spotlights. The spotlights have already been delivered to certain places and Gerald will not be able to move them. Each spotlight illuminates a specific segment of the path of the given length, one end of the segment is the location of the spotlight, and it can be directed so that it covers the segment to the south or to the north of spotlight. The trail contains a monument to the mayor of the island, and although you can walk in either directions from the monument, no spotlight is south of the monument. You are given the positions of the spotlights and their power. Help Gerald direct all the spotlights so that the total length of the illuminated part of the path is as much as possible. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the number of spotlights. Each of the n lines contains two space-separated integers, ai and li (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108). Number ai shows how much further the i-th spotlight to the north, and number li shows the length of the segment it illuminates. It is guaranteed that all the ai's are distinct. Print a single integer -- the maximum total length of the illuminated part of the path."...

Tutorials

Codeforces Round 313 — Extended editoral

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33827074 szk123 E Dec. 31, 2017, 7:56 a.m. OK FPC TESTS 90 31 3379200 2900
27790134 huanghc E June 15, 2017, 9:07 a.m. OK GNU C++ TESTS 90 15 0 2900
13887294 130705009 E Oct. 27, 2015, 8:42 a.m. OK GNU C++ TESTS 90 15 0 2900
13095061 Dylans E Sept. 19, 2015, 1:47 a.m. OK GNU C++ TESTS 90 15 0 2900
12193127 gyz_gyz E July 23, 2015, 2:52 a.m. OK GNU C++ TESTS 90 15 0 2900
12320585 KFDong E Aug. 3, 2015, 3:49 a.m. OK GNU C++ TESTS 90 15 819200 2900
29084202 jiyutian E Aug. 1, 2017, 1:33 a.m. OK GNU C++ TESTS 90 15 2048000 2900
28384400 IgiceNiao E July 9, 2017, 9:25 a.m. OK GNU C++ TESTS 90 15 2150400 2900
31532272 qiqi20021026 E Oct. 20, 2017, 12:09 p.m. OK GNU C++ TESTS 90 15 2252800 2900
18044581 vjtest E May 23, 2016, 1:54 p.m. OK GNU C++ TESTS 90 15 2355200 2900
18044566 vjtest E May 23, 2016, 1:52 p.m. OK GNU C++ TESTS 90 15 2355200 2900
18732050 065583 E June 26, 2016, 9:06 a.m. OK GNU C++11 TESTS 90 15 204800 2900
12582534 pacu E Aug. 18, 2015, 1:40 a.m. OK GNU C++11 TESTS 90 15 204800 2900
12204272 vepifanov E July 23, 2015, 5:49 p.m. OK GNU C++11 TESTS 90 15 1536000 2900
31525425 ddfsb E Oct. 20, 2017, 6:55 a.m. OK GNU C++11 TESTS 90 15 1945600 2900
23411334 KyleYoung E Dec. 30, 2016, 1 a.m. OK GNU C++11 TESTS 90 15 2150400 2900
17179397 freebsdx E April 6, 2016, 2:10 a.m. OK GNU C++11 TESTS 90 15 2150400 2900
28536926 SilverNebula E July 14, 2017, 4:17 a.m. OK GNU C++11 TESTS 90 15 2252800 2900
21401576 shengdebao E Oct. 13, 2016, 11:27 a.m. OK GNU C++11 TESTS 90 15 2457600 2900
18119169 ChiliuDog E May 27, 2016, 1:44 p.m. OK GNU C++11 TESTS 90 15 3584000 2900
18111958 Shigure1944 E May 27, 2016, 3 a.m. OK GNU C++11 TESTS 90 15 3584000 2900
31892748 wzf2000 E Oct. 30, 2017, 12:07 p.m. OK GNU C++14 TESTS 90 15 102400 2900
35888316 ______n______ E March 3, 2018, 2:19 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35888218 ______u______ E March 3, 2018, 2:18 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35887925 _____k_____ E March 3, 2018, 2:13 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35886728 _____i_____ E March 3, 2018, 1:51 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35883117 ______h______ E March 3, 2018, 12:50 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35882733 ______k______ E March 3, 2018, 12:44 p.m. OK GNU C++14 TESTS 90 15 1945600 2900
35875107 ______i______ E March 3, 2018, 8:08 a.m. OK GNU C++14 TESTS 90 15 1945600 2900
35873543 ______M______ E March 3, 2018, 7:34 a.m. OK GNU C++14 TESTS 90 15 1945600 2900
33823993 des3ns1tized_ E Dec. 31, 2017, 3:02 a.m. OK GNU C++14 TESTS 90 15 1945600 2900
69572968 vjudge5 E Jan. 26, 2020, 2:39 p.m. OK GNU C++17 TESTS 90 31 102400 2900
69445525 vjudge1 E Jan. 24, 2020, 2:30 a.m. OK GNU C++17 TESTS 90 31 102400 2900
65512352 ruo E Nov. 22, 2019, 4:53 a.m. OK GNU C++17 TESTS 90 31 102400 2900
63207722 alan_cty E Oct. 23, 2019, 1:22 a.m. OK GNU C++17 TESTS 90 31 102400 2900
64156870 Rubbish12345 E Nov. 3, 2019, 1:06 p.m. OK GNU C++17 TESTS 90 31 204800 2900
56592792 89264270823 E July 5, 2019, 6:03 p.m. OK GNU C++17 TESTS 90 31 204800 2900
44018559 Als123 E Oct. 9, 2018, 1:09 a.m. OK GNU C++17 TESTS 90 31 204800 2900
65057100 ivan100sic E Nov. 15, 2019, 3:32 p.m. OK GNU C++17 TESTS 90 31 307200 2900
63758899 jiangly E Oct. 30, 2019, 2:08 a.m. OK GNU C++17 TESTS 90 31 307200 2900
63359429 hanyuwei E Oct. 25, 2019, 4:45 a.m. OK GNU C++17 TESTS 90 31 307200 2900
12518815 kost E Aug. 13, 2015, 9:16 p.m. OK Haskell TESTS 90 46 0 2900
14303705 liymsheep E Nov. 16, 2015, 8:30 p.m. OK Java 8 TESTS 90 140 0 2900
12176050 qwerty787788 E July 22, 2015, 3:05 p.m. OK Java 8 TESTS 90 140 0 2900
14303555 liymsheep E Nov. 16, 2015, 8:15 p.m. OK Java 8 TESTS 90 218 0 2900

remove filters

Back to search problems