Codeforces Round 253 (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
442 Codeforces Round 253 (Div. 1) FINISHED False 7200 334420204 June 19, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1820 ) C Artem and Array PROGRAMMING data structures greedy 2500

B"Artem has an array of n positive integers. Artem decided to play with it. The game consists of n moves. Each move goes like this. Artem chooses some element of the array and removes it. For that, he gets min(a, xe2 x80 x89b) points, where a and b are numbers that were adjacent with the removed number. If the number doesn't have an adjacent number to the left or right, Artem doesn't get any points. After the element is removed, the two parts of the array glue together resulting in the new array that Artem continues playing with. Borya wondered what maximum total number of points Artem can get as he plays this 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 x895 xc2 xb7105) -- the number of elements in the array. The next line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the values of the array elements. In a single line print a single integer -- the maximum number of points Artem can get."...

Tutorials

Codeforces #253 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7373336 hos.lyric C Aug. 8, 2014, 5:17 a.m. OK D TESTS 35 327 36352000 2500
8950651 artem1416 C Dec. 3, 2014, 10:28 a.m. OK FPC TESTS 35 77 2048000 2500
7610421 vjudge2 C Aug. 28, 2014, 3:50 a.m. OK FPC TESTS 35 78 2048000 2500
17385809 MintGreen C April 19, 2016, 10:44 a.m. OK FPC TESTS 35 93 5939200 2500
6920009 Alex_2oo8 C June 19, 2014, 4:54 p.m. OK FPC TESTS 35 93 20172800 2500
25425303 Gray_58 C March 12, 2017, 6:28 a.m. OK FPC TESTS 35 108 3891200 2500
11234676 vjudge2 C May 23, 2015, 7:47 a.m. OK FPC TESTS 35 108 6451200 2500
7610411 vjudge3 C Aug. 28, 2014, 3:48 a.m. OK FPC TESTS 35 109 3993600 2500
11236578 chenjb C May 23, 2015, 10:12 a.m. OK FPC TESTS 35 109 6451200 2500
53392701 chaorenhaha C April 27, 2019, 7:40 a.m. OK FPC TESTS 35 124 2457600 2500
12042312 newp C July 14, 2015, 1:45 p.m. OK FPC TESTS 35 171 10035200 2500
10297417 poursoul C March 16, 2015, 7:42 a.m. OK GNU C++ TESTS 35 31 1945600 2500
7062483 Pudge123 C July 11, 2014, 8:17 a.m. OK GNU C++ TESTS 35 31 1945600 2500
6934582 FancyCoder C June 21, 2014, 4:26 a.m. OK GNU C++ TESTS 35 31 2048000 2500
6926313 hzwer C June 20, 2014, 8:34 a.m. OK GNU C++ TESTS 35 31 2048000 2500
8366000 vjudge2 C Oct. 23, 2014, 11:36 a.m. OK GNU C++ TESTS 35 31 3993600 2500
37850853 vjudge1 C May 3, 2018, 12:11 a.m. OK GNU C++ TESTS 35 31 5324800 2500
37850819 vjudge2 C May 3, 2018, 12:07 a.m. OK GNU C++ TESTS 35 31 7577600 2500
6919890 LayCurse C June 19, 2014, 4:53 p.m. OK GNU C++ TESTS 35 31 18124800 2500
7557448 Divanshu C Aug. 23, 2014, 6:23 a.m. OK GNU C++ TESTS 35 46 0 2500
40988307 ReaLNero1 C July 30, 2018, 9:53 p.m. OK GNU C++ TESTS 35 46 2048000 2500
8614058 whn6325689 C Nov. 8, 2014, 11:56 a.m. OK GNU C++0x TESTS 35 46 3993600 2500
6995434 cinderela C July 2, 2014, 5:50 a.m. OK GNU C++0x TESTS 35 62 0 2500
6975448 alex_world C June 28, 2014, 12:57 p.m. OK GNU C++0x TESTS 35 62 0 2500
6999157 rares.buhai C July 2, 2014, 6:46 p.m. OK GNU C++0x TESTS 35 62 3993600 2500
6924594 marat.snowbear C June 19, 2014, 7:54 p.m. OK GNU C++0x TESTS 35 77 0 2500
6924523 k0st1a C June 19, 2014, 7:39 p.m. OK GNU C++0x TESTS 35 77 3993600 2500
6925010 k0st1a C June 19, 2014, 9:25 p.m. OK GNU C++0x TESTS 35 78 11673600 2500
7339327 yeti C Aug. 3, 2014, 4:08 p.m. OK GNU C++0x TESTS 35 93 0 2500
6921695 zerokugi C June 19, 2014, 5:21 p.m. OK GNU C++0x TESTS 35 93 1126400 2500
9157571 vjudge5 C Dec. 17, 2014, 1:50 a.m. OK GNU C++0x TESTS 35 93 2048000 2500
58802399 bjxdw C Aug. 14, 2019, 7:49 a.m. OK GNU C++11 TESTS 35 31 409600 2500
62857006 KH18 C Oct. 18, 2019, 9:35 a.m. OK GNU C++11 TESTS 35 31 2048000 2500
60592136 vjudge1 C Sept. 15, 2019, 2:57 a.m. OK GNU C++11 TESTS 35 31 2048000 2500
60592107 luogu_bot3 C Sept. 15, 2019, 2:55 a.m. OK GNU C++11 TESTS 35 31 2048000 2500
60344659 vjudge2 C Sept. 10, 2019, 12:09 p.m. OK GNU C++11 TESTS 35 31 2048000 2500
32854892 Georeth C Dec. 2, 2017, 10:23 a.m. OK GNU C++11 TESTS 35 31 2048000 2500
60446518 520Enterprise C Sept. 12, 2019, 2:20 p.m. OK GNU C++11 TESTS 35 31 2150400 2500
60446248 520Enterprise C Sept. 12, 2019, 2:15 p.m. OK GNU C++11 TESTS 35 31 2150400 2500
44973937 luogu_bot1 C Oct. 28, 2018, 3:33 a.m. OK GNU C++11 TESTS 35 31 3788800 2500
20673067 wwyyxx C Sept. 17, 2016, 4:47 a.m. OK GNU C++11 TESTS 35 31 3788800 2500
52134442 Nostalgically C April 1, 2019, 12:45 a.m. OK GNU C++14 TESTS 35 31 8704000 2500
34921086 TadijaSebez C Feb. 4, 2018, 11:15 a.m. OK GNU C++14 TESTS 35 93 3891200 2500
21887023 fofao_funk C Oct. 30, 2016, 6:02 a.m. OK GNU C++14 TESTS 35 139 0 2500
36944171 bluefi C April 4, 2018, 8:51 a.m. OK GNU C++14 TESTS 35 139 5324800 2500
60345450 vjudge3 C Sept. 10, 2019, 12:25 p.m. OK GNU C++14 TESTS 35 139 7987200 2500
41626870 vjudge4 C Aug. 15, 2018, 3 p.m. OK GNU C++14 TESTS 35 140 0 2500
35474341 xuanquang1999 C Feb. 19, 2018, 3:05 p.m. OK GNU C++14 TESTS 35 140 3891200 2500
26184551 ccsnoopy C April 7, 2017, 5:31 a.m. OK GNU C++14 TESTS 35 140 3891200 2500
62777991 holmium01 C Oct. 17, 2019, 12:11 p.m. OK GNU C++14 TESTS 35 140 3993600 2500
50594879 NotNight C Feb. 28, 2019, 9:34 a.m. OK GNU C++14 TESTS 35 140 3993600 2500
60345849 vjudge2 C Sept. 10, 2019, 12:33 p.m. OK GNU C++17 TESTS 35 124 0 2500
44942963 RUSH_D_CAT C Oct. 27, 2018, 8:45 a.m. OK GNU C++17 TESTS 35 124 4300800 2500
44702570 ironhead0 C Oct. 22, 2018, 3:23 p.m. OK GNU C++17 TESTS 35 124 4300800 2500
58962898 ruo C Aug. 17, 2019, 4:11 p.m. OK GNU C++17 TESTS 35 124 6041600 2500
53454927 gubeiqg C April 28, 2019, 1:18 a.m. OK GNU C++17 TESTS 35 139 2048000 2500
46050791 IIeJlMeHb C Nov. 22, 2018, 7:14 a.m. OK GNU C++17 TESTS 35 139 2048000 2500
42798473 vhnvn C Sept. 12, 2018, 1:01 p.m. OK GNU C++17 TESTS 35 139 2355200 2500
41800678 vjudge2 C Aug. 18, 2018, 6:35 p.m. OK GNU C++17 TESTS 35 139 3993600 2500
41662621 vjudge4 C Aug. 16, 2018, 7:17 p.m. OK GNU C++17 TESTS 35 140 819200 2500
56413341 vjudge2 C July 2, 2019, 2:27 a.m. OK GNU C++17 TESTS 35 140 2048000 2500
7061426 ronaflx C July 11, 2014, 3:16 a.m. OK Go TESTS 35 592 4096000 2500
6925354 mkirsche C June 19, 2014, 11:19 p.m. OK Java 6 TESTS 35 1466 82841600 2500
6947943 pretorium C June 23, 2014, 2:13 p.m. OK Java 7 TESTS 35 186 12595200 2500
7060529 wadissimo C July 10, 2014, 9:04 p.m. OK Java 7 TESTS 35 436 21504000 2500
7002481 cvm C July 3, 2014, 7:33 a.m. OK Java 7 TESTS 35 467 32153600 2500
6933001 hiukim C June 20, 2014, 9:41 p.m. OK Java 7 TESTS 35 498 37888000 2500
6938631 bay C June 21, 2014, 4:27 p.m. OK Java 7 TESTS 35 639 77619200 2500
6938047 namite C June 21, 2014, 2:52 p.m. OK Java 7 TESTS 35 811 102400 2500
6934390 namite C June 21, 2014, 2:53 a.m. OK Java 7 TESTS 35 826 102400 2500
6923213 vsb C June 19, 2014, 5:52 p.m. OK Java 7 TESTS 35 1092 21913600 2500
6934403 net12k44 C June 21, 2014, 2:59 a.m. OK Java 7 TESTS 35 1310 84889600 2500
7011507 Gleb C July 4, 2014, 3:58 p.m. OK Java 7 TESTS 35 1856 32563200 2500
11450965 old_arysson C June 5, 2015, 6:01 p.m. OK Java 8 TESTS 35 155 0 2500
11450959 Pimpom C June 5, 2015, 6:01 p.m. OK Java 8 TESTS 35 155 0 2500
6918827 mmaxio C June 19, 2014, 4:37 p.m. OK Java 8 TESTS 35 358 921600 2500
31780385 dollareuro C Oct. 27, 2017, 5:18 a.m. OK Java 8 TESTS 35 842 0 2500
6926344 fetetriste C June 20, 2014, 8:39 a.m. OK Java 8 TESTS 35 873 1331200 2500
12486642 alibaba C Aug. 13, 2015, 3:40 a.m. OK Java 8 TESTS 35 920 53657600 2500
36288618 beginner1010 C March 15, 2018, 1 a.m. OK Java 8 TESTS 35 920 103219200 2500
6925931 AlexFetisov C June 20, 2014, 7:20 a.m. OK Java 8 TESTS 35 1543 160153600 2500
36752042 PrakharJain C March 30, 2018, 3:46 p.m. OK Java 8 TESTS 35 1699 92160000 2500
41443242 jport C Aug. 10, 2018, 8:16 p.m. OK Java 8 TESTS 35 1747 68812800 2500
6923885 og.kostya C June 19, 2014, 6:22 p.m. OK MS C# TESTS 35 140 26009600 2500
6925832 og.kostya C June 20, 2014, 7:02 a.m. OK MS C# TESTS 35 171 26009600 2500
60445855 vjudge3 C Sept. 12, 2019, 2:08 p.m. OK MS C++ TESTS 35 46 4096000 2500
34419328 vjudge1 C Jan. 21, 2018, 4:07 p.m. OK MS C++ TESTS 35 78 4096000 2500
6939047 Filyan C June 21, 2014, 6:05 p.m. OK MS C++ TESTS 35 93 1433600 2500
34445644 vjudge2 C Jan. 22, 2018, 11:54 a.m. OK MS C++ TESTS 35 93 2048000 2500
12161024 vjudge5 C July 22, 2015, 8:29 a.m. OK MS C++ TESTS 35 93 2048000 2500
7365378 dkflfkdeh C Aug. 7, 2014, 7:13 a.m. OK MS C++ TESTS 35 93 2048000 2500
6928123 Scorpy C June 20, 2014, 2:06 p.m. OK MS C++ TESTS 35 93 2048000 2500
34429405 vjudge5 C Jan. 22, 2018, 2:14 a.m. OK MS C++ TESTS 35 93 2867200 2500
57979507 vjudge5 C July 30, 2019, 8:51 a.m. OK MS C++ TESTS 35 93 3993600 2500
7897462 forhhgg C Sept. 21, 2014, 1:41 p.m. OK MS C++ TESTS 35 93 3993600 2500
64303309 vjudge1 C Nov. 5, 2019, 10:46 a.m. OK MS C++ 2017 TESTS 35 390 2048000 2500
60833856 vjudge2 C Sept. 19, 2019, 8:10 a.m. OK MS C++ 2017 TESTS 35 436 2048000 2500
42804884 vhnvn C Sept. 12, 2018, 4:31 p.m. OK PyPy 2 TESTS 35 296 23449600 2500
6937001 nwi C June 21, 2014, 11:39 a.m. OK Python 2 TESTS 35 763 27136000 2500
9202977 itytwt C Dec. 20, 2014, 3:17 a.m. OK Python 2 TESTS 35 1138 28672000 2500
6926992 Thomas_Ahle C June 20, 2014, 10:39 a.m. OK Python 2 TESTS 35 1716 45670400 2500
45543707 CaptainHarry C Nov. 10, 2018, 9:25 p.m. OK Python 3 TESTS 35 920 31744000 2500
45571810 haviij C Nov. 11, 2018, 6:28 p.m. OK Python 3 TESTS 35 951 32051200 2500
45571751 haviij C Nov. 11, 2018, 6:25 p.m. OK Python 3 TESTS 35 1154 32051200 2500
42135603 Mk_Python_v1 C Aug. 26, 2018, 11:26 p.m. OK Python 3 TESTS 35 1309 24268800 2500
45542629 FakeUser256 C Nov. 10, 2018, 8:31 p.m. OK Python 3 TESTS 35 1996 51712000 2500
35872478 ______u______ C March 3, 2018, 7:10 a.m. OK Ruby TESTS 35 951 109875200 2500
35872371 ______n______ C March 3, 2018, 7:10 a.m. OK Ruby TESTS 35 951 109875200 2500
35871761 _____i_____ C March 3, 2018, 6:58 a.m. OK Ruby TESTS 35 951 109875200 2500
35871759 _____k_____ C March 3, 2018, 6:58 a.m. OK Ruby TESTS 35 951 109875200 2500
35862746 ______k______ C March 2, 2018, 10:31 p.m. OK Ruby TESTS 35 951 109875200 2500
35862726 ______h______ C March 2, 2018, 10:31 p.m. OK Ruby TESTS 35 951 109875200 2500
35862412 ______i______ C March 2, 2018, 10:25 p.m. OK Ruby TESTS 35 951 109875200 2500
35860713 ______M______ C March 2, 2018, 9:48 p.m. OK Ruby TESTS 35 951 109875200 2500
6924680 Magica C June 19, 2014, 8:06 p.m. OK Ruby TESTS 35 1403 70348800 2500
6948482 hama-du C June 23, 2014, 4:09 p.m. OK Scala TESTS 35 1107 11776000 2500
6948455 hama-du C June 23, 2014, 4:04 p.m. OK Scala TESTS 35 1200 52326400 2500

remove filters

Back to search problems