Codeforces Round 230 (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
392 Codeforces Round 230 (Div. 1) FINISHED False 7200 339094799 Feb. 18, 2014, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 179 ) E Deleting Substrings PROGRAMMING

B'SmallR likes a game called "Deleting Substrings". In the game you are given a sequence of integers w, you can modify the sequence and get points. The only type of modification you can perform is (unexpected, right?) deleting substrings. More formally, you can choose several contiguous elements of w and delete them from the sequence. Let 's denote the sequence of chosen elements as wl, xe2 x80 x89wl xe2 x80 x89+ xe2 x80 x891, xe2 x80 x89..., xe2 x80 x89wr. They must meet the conditions: After deleting the chosen substring of w, you gain vr xe2 x80 x89- xe2 x80 x89l xe2 x80 x89+ xe2 x80 x891 points. You can perform the described operation again and again while proper substrings exist. Also you can end the game at any time. Your task is to calculate the maximum total score you can get in the game. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89400) -- the initial length of w. The second line contains n integers v1, xe2 x80 x89v2, xe2 x80 x89..., xe2 x80 x89vn (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|vi| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the costs of operations. The next line contains n integers w1, xe2 x80 x89w2, xe2 x80 x89..., xe2 x80 x89wn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the initial w. Print a single integer -- the maximum total score you can get.'...

Tutorials

83942

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
28129147 tlzmybm E June 29, 2017, 1:27 a.m. OK GNU C++ TESTS 85 61 12288000
5925085 Cenadar E March 4, 2014, 4:04 p.m. OK GNU C++ TESTS 85 62 1331200
34263449 Scut82 E Jan. 18, 2018, 12:39 a.m. OK GNU C++ TESTS 85 62 3686400
14027971 130705009 E Nov. 2, 2015, 1:45 p.m. OK GNU C++ TESTS 85 77 1740800
11974195 Memory120 E July 8, 2015, 3:26 p.m. OK GNU C++ TESTS 85 77 1843200
40989033 ReaLNero1 E July 30, 2018, 10:33 p.m. OK GNU C++ TESTS 85 78 1331200
9014645 alpq654321 E Dec. 8, 2014, 2:56 a.m. OK GNU C++ TESTS 85 78 1331200
31099790 Created_equal E Oct. 7, 2017, 5:02 a.m. OK GNU C++ TESTS 85 78 1740800
18660767 Philipsweng E June 23, 2016, 9:32 a.m. OK GNU C++ TESTS 85 78 1740800
31777167 jiangtao E Oct. 27, 2017, 2:13 a.m. OK GNU C++ TESTS 85 78 1843200
7438155 hogloid E Aug. 13, 2014, 1:52 a.m. OK GNU C++0x TESTS 85 78 1945600
6101994 wakaka E March 22, 2014, 4:37 a.m. OK GNU C++0x TESTS 85 78 1945600
5925195 ikatanic E March 4, 2014, 4:23 p.m. OK GNU C++0x TESTS 85 92 1331200
7438087 hogloid E Aug. 13, 2014, 1:34 a.m. OK GNU C++0x TESTS 85 93 1945600
63225185 bluewzl E Oct. 23, 2019, 9:05 a.m. OK GNU C++11 TESTS 85 62 1843200
55997226 KMAASZRAA E June 24, 2019, 11:09 a.m. OK GNU C++11 TESTS 85 62 1945600
57489532 tyf0530 E July 22, 2019, 6:36 a.m. OK GNU C++11 TESTS 85 77 1945600
57489137 tyf0530 E July 22, 2019, 6:28 a.m. OK GNU C++11 TESTS 85 77 1945600
44338491 Captain_Paul E Oct. 15, 2018, 12:34 a.m. OK GNU C++11 TESTS 85 77 2867200
28130956 AbstractKangaroo E June 29, 2017, 3:55 a.m. OK GNU C++11 TESTS 85 77 3379200
44698771 SovietPower E Oct. 22, 2018, 1:59 p.m. OK GNU C++11 TESTS 85 78 1126400
69972894 luogu_bot5 E Feb. 1, 2020, 2:15 p.m. OK GNU C++11 TESTS 85 78 1843200
30197748 RNS E Sept. 8, 2017, 8:08 a.m. OK GNU C++11 TESTS 85 78 1843200
57891924 lopare E July 28, 2019, 12:09 p.m. OK GNU C++11 TESTS 85 78 1945600
35852230 Navick E March 2, 2018, 6:39 p.m. OK GNU C++14 TESTS 85 62 3891200
28131673 orbitingflea E June 29, 2017, 5 a.m. OK GNU C++14 TESTS 85 77 3379200
60416372 Scut82 E Sept. 12, 2019, 2:33 a.m. OK GNU C++14 TESTS 85 78 1638400
39687742 FallDream E June 26, 2018, 11:54 p.m. OK GNU C++14 TESTS 85 78 1945600
69972938 vjudge5 E Feb. 1, 2020, 2:16 p.m. OK GNU C++14 TESTS 85 78 2048000
31209229 foolishhmy E Oct. 11, 2017, 7:18 a.m. OK GNU C++14 TESTS 85 78 2048000
67273204 ElangBondol E Dec. 20, 2019, 9:10 a.m. OK GNU C++14 TESTS 85 78 2252800
28493442 Oktavia E July 13, 2017, 7:13 a.m. OK GNU C++14 TESTS 85 78 3891200
23657184 Ali.Pi E Jan. 8, 2017, 9:49 p.m. OK GNU C++14 TESTS 85 78 3891200
56550273 Scut82 E July 5, 2019, 9:24 a.m. OK GNU C++14 TESTS 85 93 1331200
69967354 AliShahali1382 E Feb. 1, 2020, 1:02 p.m. OK GNU C++17 TESTS 85 78 2048000
52101932 Shayan.P E March 31, 2019, 2:53 p.m. OK GNU C++17 TESTS 85 78 2048000
63692699 vjudge3 E Oct. 29, 2019, 3:41 a.m. OK GNU C++17 TESTS 85 78 3276800
69970413 vjudge2 E Feb. 1, 2020, 1:42 p.m. OK GNU C++17 TESTS 85 93 2048000
63692713 interestingLSY E Oct. 29, 2019, 3:42 a.m. OK GNU C++17 TESTS 85 93 3276800
52136078 xyzzxy E April 1, 2019, 2:50 a.m. OK GNU C++17 TESTS 85 108 2969600
52264022 Smaug E April 3, 2019, 10:32 a.m. OK GNU C++17 TESTS 85 109 3891200
38871874 chielo E June 2, 2018, 3:29 a.m. OK GNU C++17 TESTS 85 109 6041600
57079643 ruo E July 15, 2019, 6:47 a.m. OK GNU C++17 TESTS 85 124 3993600
52137992 xyzzxy E April 1, 2019, 4:43 a.m. OK GNU C++17 TESTS 85 124 5017600
6949465 winger E June 23, 2014, 7:49 p.m. OK Java 8 TESTS 85 342 2150400
69971998 vjudge5 E Feb. 1, 2020, 2:03 p.m. OK MS C++ TESTS 85 109 2048000
5955232 blueseen E March 7, 2014, 6:34 a.m. OK MS C++ TESTS 85 124 1228800

remove filters

Back to search problems