Codeforces Round 208 (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
358 Codeforces Round 208 (Div. 2) FINISHED False 7200 349108199 Oct. 25, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4087 ) D Dima and Hares PROGRAMMING dp greedy 2000

B"Dima liked the present he got from Inna very much. He liked the present he got from Seryozha even more. Dima felt so grateful to Inna about the present that he decided to buy her n hares. Inna was very happy. She lined up the hares in a row, numbered them from 1 to n from left to right and started feeding them with carrots. Inna was determined to feed each hare exactly once. But in what order should she feed them? Inna noticed that each hare radiates joy when she feeds it. And the joy of the specific hare depends on whether Inna fed its adjacent hares before feeding it. Inna knows how much joy a hare radiates if it eats when either both of his adjacent hares are hungry, or one of the adjacent hares is full (that is, has been fed), or both of the adjacent hares are full. Please note that hares number 1 and n don't have a left and a right-adjacent hare correspondingly, so they can never have two full adjacent hares. Help Inna maximize the total joy the hares radiate. :) The first line of the input contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893000) -- the number of hares. Then three lines follow, each line has n integers. The first line contains integers a1 a2 ... an. The second line contains b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bn. The third line contains c1, xe2 x80 x89c2, xe2 x80 x89..., xe2 x80 x89cn. The following limits are fulfilled: 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi, xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105. Number ai in the first line shows the joy that hare number i gets if his adjacent hares are both hungry. Number bi in the second line shows the joy that hare number i radiates if he has exactly one full adjacent hare. Number xd1 x81i in the third line shows the joy that hare number i radiates if both his adjacent hares are full. In a single line, print the maximum possible total joy of the hares Inna can get by feeding them."...

Tutorials

Codeforces Round #208 (Div. 2) Разбор

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52255105 vjudge3 D April 3, 2019, 5 a.m. OK Clang++17 Diagnostics TESTS 29 46 1024000 2000
58395079 hatsuyuki15 D Aug. 6, 2019, 3:17 p.m. OK D TESTS 29 31 0 2000
4887056 Ramp D Oct. 25, 2013, 4:40 p.m. OK Delphi TESTS 29 15 204800 2000
4941657 Misha100896 D Oct. 31, 2013, 8:14 a.m. OK Delphi TESTS 29 31 204800 2000
18712960 water235 D June 25, 2016, 3:21 a.m. OK FPC TESTS 29 15 102400 2000
5613321 Wolfik D Jan. 4, 2014, 1:12 a.m. OK FPC TESTS 29 15 102400 2000
4993382 DaibaNana D Nov. 5, 2013, 1:03 p.m. OK FPC TESTS 29 15 102400 2000
4913748 yanush D Oct. 27, 2013, 2:44 p.m. OK FPC TESTS 29 15 102400 2000
9231466 Freedom D Dec. 23, 2014, 9:23 a.m. OK FPC TESTS 29 15 204800 2000
4933692 PashaChemerys D Oct. 30, 2013, 11:05 a.m. OK FPC TESTS 29 15 204800 2000
4906727 Omelianenko D Oct. 26, 2013, 7:12 p.m. OK FPC TESTS 29 15 204800 2000
4906345 Nik_Storm_2010 D Oct. 26, 2013, 5:54 p.m. OK FPC TESTS 29 15 204800 2000
4905488 llaugusty D Oct. 26, 2013, 3:18 p.m. OK FPC TESTS 29 15 204800 2000
4900692 Omelianenko D Oct. 26, 2013, 7:53 a.m. OK FPC TESTS 29 15 204800 2000
4890441 tjandra D Oct. 25, 2013, 5:26 p.m. OK GNU C TESTS 29 15 0 2000
4885707 LayCurse D Oct. 25, 2013, 4:24 p.m. OK GNU C TESTS 29 15 0 2000
11984749 vjudge4 D July 9, 2015, 11:41 a.m. OK GNU C TESTS 29 15 102400 2000
5614760 vis10326 D Jan. 4, 2014, 8:52 a.m. OK GNU C TESTS 29 15 102400 2000
4951351 battuzz94 D Nov. 1, 2013, 1:37 p.m. OK GNU C TESTS 29 15 102400 2000
4909335 mjhun D Oct. 27, 2013, 3:58 a.m. OK GNU C TESTS 29 15 102400 2000
4888283 imxian D Oct. 25, 2013, 4:55 p.m. OK GNU C TESTS 29 15 102400 2000
5812846 rishubgarg D Jan. 26, 2014, 1:32 p.m. OK GNU C TESTS 29 15 204800 2000
4995242 _sigsegv D Nov. 5, 2013, 5:32 p.m. OK GNU C TESTS 29 15 204800 2000
4886663 RodrigoBurgos D Oct. 25, 2013, 4:35 p.m. OK GNU C TESTS 29 15 204800 2000
4936419 kmy D Oct. 30, 2013, 3:29 p.m. OK GNU C++ TESTS 29 0 102400 2000
4930944 nikola12345 D Oct. 29, 2013, 8:28 p.m. OK GNU C++ TESTS 29 0 614400 2000
30750281 vjudge1 D Sept. 26, 2017, 12:26 p.m. OK GNU C++ TESTS 29 15 0 2000
30750247 vjudge1 D Sept. 26, 2017, 12:25 p.m. OK GNU C++ TESTS 29 15 0 2000
30750175 vjudge1 D Sept. 26, 2017, 12:23 p.m. OK GNU C++ TESTS 29 15 0 2000
30750152 vjudge4 D Sept. 26, 2017, 12:22 p.m. OK GNU C++ TESTS 29 15 0 2000
30742414 vjudge5 D Sept. 26, 2017, 6:44 a.m. OK GNU C++ TESTS 29 15 0 2000
30726048 vjudge5 D Sept. 25, 2017, 1:30 p.m. OK GNU C++ TESTS 29 15 0 2000
30723487 vjudge4 D Sept. 25, 2017, 12:47 p.m. OK GNU C++ TESTS 29 15 0 2000
30721700 vjudge2 D Sept. 25, 2017, 12:27 p.m. OK GNU C++ TESTS 29 15 0 2000
4886936 yoooou D Oct. 25, 2013, 4:38 p.m. OK GNU C++0x TESTS 29 0 0 2000
6496805 Beyonds D April 28, 2014, 1:31 a.m. OK GNU C++0x TESTS 29 15 0 2000
4900593 1a1a1a D Oct. 26, 2013, 7:39 a.m. OK GNU C++0x TESTS 29 15 0 2000
4899069 JayYe D Oct. 26, 2013, 2:38 a.m. OK GNU C++0x TESTS 29 15 0 2000
4882315 yutaka1999 D Oct. 25, 2013, 3:51 p.m. OK GNU C++0x TESTS 29 15 0 2000
7803209 imhereonlyforcookies D Sept. 15, 2014, 4:58 p.m. OK GNU C++0x TESTS 29 15 102400 2000
7433696 jianmodgqb D Aug. 12, 2014, 10:12 a.m. OK GNU C++0x TESTS 29 15 102400 2000
7204734 behzad.nouri D July 22, 2014, 8:49 p.m. OK GNU C++0x TESTS 29 15 102400 2000
6416148 Lightless D April 19, 2014, 7:54 a.m. OK GNU C++0x TESTS 29 15 102400 2000
5098283 wanbo D Nov. 14, 2013, 2:40 p.m. OK GNU C++0x TESTS 29 15 102400 2000
30660051 vjudge4 D Sept. 24, 2017, 8:21 a.m. OK GNU C++11 TESTS 29 15 0 2000
22829374 I_love_Y_UME D Dec. 9, 2016, 8:58 a.m. OK GNU C++11 TESTS 29 15 0 2000
18737743 hjj D June 26, 2016, 1:47 p.m. OK GNU C++11 TESTS 29 15 0 2000
14485598 _ED D Nov. 25, 2015, 9:45 p.m. OK GNU C++11 TESTS 29 15 0 2000
14244285 PedramAghazadeh D Nov. 13, 2015, 8:46 p.m. OK GNU C++11 TESTS 29 15 0 2000
11987558 vjudge4 D July 9, 2015, 3:18 p.m. OK GNU C++11 TESTS 29 15 0 2000
10526104 -XraY- D March 30, 2015, 3:36 p.m. OK GNU C++11 TESTS 29 15 0 2000
10522120 fairylights D March 30, 2015, 6:44 a.m. OK GNU C++11 TESTS 29 15 0 2000
31875361 Vasiljko D Oct. 29, 2017, 7:06 p.m. OK GNU C++11 TESTS 29 15 102400 2000
30183003 Stresshoover D Sept. 7, 2017, 1:57 p.m. OK GNU C++11 TESTS 29 15 102400 2000
60752302 Mohammad_Alwarawreh D Sept. 18, 2019, 7:01 a.m. OK GNU C++14 TESTS 29 15 102400 2000
55119135 Robbinb1993 D June 5, 2019, 10:12 a.m. OK GNU C++14 TESTS 29 15 102400 2000
54553629 xuziyuan D May 24, 2019, 10:31 a.m. OK GNU C++14 TESTS 29 15 102400 2000
54072746 apurvmayank D May 13, 2019, 5:25 p.m. OK GNU C++14 TESTS 29 15 102400 2000
51801505 smokescreen D March 24, 2019, 6:18 p.m. OK GNU C++14 TESTS 29 15 102400 2000
48591252 vjudge1 D Jan. 20, 2019, 2:30 a.m. OK GNU C++14 TESTS 29 15 102400 2000
47507474 T.V_N D Dec. 26, 2018, 2:50 a.m. OK GNU C++14 TESTS 29 15 102400 2000
46469515 aniKet_gAjare D Dec. 2, 2018, 6:39 a.m. OK GNU C++14 TESTS 29 15 102400 2000
40229898 Ninjaboy97 D July 12, 2018, 11:24 a.m. OK GNU C++14 TESTS 29 15 102400 2000
32332954 ...I_am_Kira... D Nov. 15, 2017, 1:25 p.m. OK GNU C++14 TESTS 29 15 102400 2000
54147848 codeict D May 14, 2019, 8:45 p.m. OK GNU C++17 TESTS 29 15 0 2000
63553384 KlzX D Oct. 27, 2019, 12:13 p.m. OK GNU C++17 TESTS 29 15 102400 2000
46953072 tibrewalpratik17 D Dec. 12, 2018, 11:08 p.m. OK GNU C++17 TESTS 29 15 102400 2000
61778869 N.N_2004 D Oct. 3, 2019, 12:34 p.m. OK GNU C++17 TESTS 29 15 204800 2000
53734655 vpsingh D May 4, 2019, 8:51 a.m. OK GNU C++17 TESTS 29 15 204800 2000
61881432 mosta7il D Oct. 5, 2019, 12:08 a.m. OK GNU C++17 TESTS 29 15 307200 2000
48273268 sraman915 D Jan. 12, 2019, 4:04 a.m. OK GNU C++17 TESTS 29 15 307200 2000
39464263 SoGood D June 21, 2018, 1:59 p.m. OK GNU C++17 TESTS 29 15 307200 2000
45177369 code_1369 D Nov. 1, 2018, 3:25 p.m. OK GNU C++17 TESTS 29 15 716800 2000
61778699 Its_Gumball D Oct. 3, 2019, 12:31 p.m. OK GNU C++17 TESTS 29 15 40038400 2000
33673824 winnfield D Dec. 27, 2017, 4:35 p.m. OK GNU C++17 Diagnostics TESTS 29 1029 103321600 2000
9555804 I_love_Malika D Jan. 26, 2015, 3:15 a.m. OK Go TESTS 29 31 0 2000
67064427 Oom D Dec. 17, 2019, 10:32 a.m. OK Java 11 TESTS 29 171 0 2000
6166568 mashinist D March 28, 2014, 12:06 p.m. OK Java 6 TESTS 29 78 0 2000
6353170 xiaowuc1 D April 14, 2014, 8:19 a.m. OK Java 6 TESTS 29 78 0 2000
5516215 atubo D Dec. 25, 2013, 4:11 a.m. OK Java 6 TESTS 29 93 102400 2000
8107237 AlwaysNewbie D Oct. 6, 2014, 2:48 p.m. OK Java 6 TESTS 29 109 102400 2000
8107230 bnuvjudge D Oct. 6, 2014, 2:47 p.m. OK Java 6 TESTS 29 109 102400 2000
4950372 kimox2 D Nov. 1, 2013, 10:57 a.m. OK Java 6 TESTS 29 124 1228800 2000
6472969 pikapika D April 25, 2014, 12:37 p.m. OK Java 6 TESTS 29 139 102400 2000
4887911 mahmoudhanafi D Oct. 25, 2013, 4:51 p.m. OK Java 6 TESTS 29 140 1126400 2000
4887421 Ahmed.Ibrahem D Oct. 25, 2013, 4:44 p.m. OK Java 6 TESTS 29 140 1536000 2000
4889188 udontknowme D Oct. 25, 2013, 5:08 p.m. OK Java 6 TESTS 29 156 1536000 2000
4887125 ivanovak D Oct. 25, 2013, 4:41 p.m. OK Java 7 TESTS 29 62 0 2000
5239994 zengarden D Nov. 26, 2013, 3:20 a.m. OK Java 7 TESTS 29 62 0 2000
5025969 vsb D Nov. 8, 2013, 12:55 a.m. OK Java 7 TESTS 29 62 0 2000
4915687 ibez D Oct. 27, 2013, 6:39 p.m. OK Java 7 TESTS 29 62 0 2000
4913402 dtaka D Oct. 27, 2013, 1:47 p.m. OK Java 7 TESTS 29 62 0 2000
4895920 xenoslash D Oct. 25, 2013, 9:14 p.m. OK Java 7 TESTS 29 62 0 2000
4895917 flevix D Oct. 25, 2013, 9:14 p.m. OK Java 7 TESTS 29 62 0 2000
4889133 qwerty787788 D Oct. 25, 2013, 5:07 p.m. OK Java 7 TESTS 29 62 0 2000
4888126 uwi D Oct. 25, 2013, 4:53 p.m. OK Java 7 TESTS 29 62 0 2000
5640067 DoublePointer D Jan. 8, 2014, 10:23 p.m. OK Java 7 TESTS 29 62 102400 2000
64128905 FluffyPotato D Nov. 3, 2019, 6:05 a.m. OK Java 8 TESTS 29 109 0 2000
60051826 madfrost D Sept. 5, 2019, 1:04 a.m. OK Java 8 TESTS 29 109 0 2000
54860139 alphacarrot D May 31, 2019, 12:33 a.m. OK Java 8 TESTS 29 109 0 2000
48442393 amolpratap007 D Jan. 16, 2019, 5:04 a.m. OK Java 8 TESTS 29 109 0 2000
27432954 Minaa D May 29, 2017, 5:05 p.m. OK Java 8 TESTS 29 109 0 2000
27330734 aabdelzaher D May 25, 2017, 6:49 a.m. OK Java 8 TESTS 29 109 0 2000
27007234 Aemon D May 11, 2017, 6:34 a.m. OK Java 8 TESTS 29 109 0 2000
9804488 stan D Feb. 12, 2015, 4:38 a.m. OK Java 8 TESTS 29 109 0 2000
67874590 adarsh000321 D Dec. 29, 2019, 12:48 p.m. OK Java 8 TESTS 29 124 0 2000
57065272 yorky D July 14, 2019, 8:46 p.m. OK Java 8 TESTS 29 124 0 2000
6170152 Eeyore D March 29, 2014, 1:44 a.m. OK JavaScript TESTS 29 31 3276800 2000
4935766 byserge D Oct. 30, 2013, 2:26 p.m. OK Mono C# TESTS 29 31 921600 2000
4930907 Mark_tven D Oct. 29, 2013, 8:11 p.m. OK MS C# TESTS 29 31 819200 2000
4906638 Kavir D Oct. 26, 2013, 6:51 p.m. OK MS C# TESTS 29 46 3174400 2000
4969799 QuantumKnight D Nov. 2, 2013, 12:19 p.m. OK MS C# TESTS 29 62 2867200 2000
7825986 azukun D Sept. 18, 2014, 1 p.m. OK MS C# TESTS 29 62 3276800 2000
17325547 Mem D April 15, 2016, 11:27 a.m. OK MS C# TESTS 29 78 3379200 2000
23229741 og.kostya D Dec. 22, 2016, 4:28 p.m. OK MS C# TESTS 29 93 9113600 2000
5832141 wideword D Jan. 29, 2014, 12:54 p.m. OK MS C++ TESTS 29 15 0 2000
5316858 LightRay D Nov. 30, 2013, 7:49 p.m. OK MS C++ TESTS 29 15 0 2000
5237529 Scorpy D Nov. 25, 2013, 4:59 p.m. OK MS C++ TESTS 29 15 0 2000
6130553 Svyat D March 24, 2014, 11:37 a.m. OK MS C++ TESTS 29 15 0 2000
5185040 Sunnat D Nov. 21, 2013, 1:20 p.m. OK MS C++ TESTS 29 15 0 2000
5185029 Sunnat D Nov. 21, 2013, 1:17 p.m. OK MS C++ TESTS 29 15 0 2000
5037063 binwin20 D Nov. 9, 2013, 2:52 p.m. OK MS C++ TESTS 29 15 0 2000
5013192 reijnnn D Nov. 6, 2013, 3:21 p.m. OK MS C++ TESTS 29 15 0 2000
4986790 tzzcl D Nov. 4, 2013, 2:34 p.m. OK MS C++ TESTS 29 15 0 2000
6366646 blueseen D April 15, 2014, 1:25 p.m. OK MS C++ TESTS 29 15 0 2000
62031687 vjudge1 D Oct. 7, 2019, 1:18 a.m. OK MS C++ 2017 TESTS 29 31 102400 2000
61758802 vjudge1 D Oct. 3, 2019, 6:27 a.m. OK MS C++ 2017 TESTS 29 31 102400 2000
62363797 CtrlAlt D Oct. 11, 2019, 1:15 p.m. OK MS C++ 2017 TESTS 29 31 102400 2000
4931117 kurakun D Oct. 29, 2013, 9:35 p.m. OK Ocaml TESTS 29 15 409600 2000
4947948 snerh D Oct. 31, 2013, 11:06 p.m. OK Ocaml TESTS 29 62 409600 2000
4931903 POJO D Oct. 30, 2013, 5:04 a.m. OK Python 2 TESTS 29 46 614400 2000
5192117 Unlenin D Nov. 22, 2013, 1:01 p.m. OK Python 2 TESTS 29 46 614400 2000
5192085 Unlenin D Nov. 22, 2013, 12:56 p.m. OK Python 2 TESTS 29 46 614400 2000
4937584 sggutier D Oct. 30, 2013, 5:38 p.m. OK Python 2 TESTS 29 46 614400 2000
4927466 spy D Oct. 29, 2013, 9:21 a.m. OK Python 2 TESTS 29 46 614400 2000
4917543 Calvinxiao D Oct. 28, 2013, 1:40 a.m. OK Python 2 TESTS 29 46 614400 2000
4910984 baggiojmj D Oct. 27, 2013, 9:23 a.m. OK Python 2 TESTS 29 46 614400 2000
4891891 swasilyev D Oct. 25, 2013, 6:35 p.m. OK Python 2 TESTS 29 46 614400 2000
4886105 nwi D Oct. 25, 2013, 4:29 p.m. OK Python 2 TESTS 29 46 614400 2000
4967806 milosz D Nov. 2, 2013, 10:03 a.m. OK Python 2 TESTS 29 46 921600 2000
5056509 elatifii D Nov. 11, 2013, 12:12 a.m. OK Python 3 TESTS 29 46 307200 2000
7212422 WARenie D July 23, 2014, 10:55 p.m. OK Python 3 TESTS 29 62 0 2000
5353868 yugle7 D Dec. 5, 2013, 12:22 p.m. OK Python 3 TESTS 29 62 307200 2000
5035569 Muller20 D Nov. 9, 2013, 11:04 a.m. OK Python 3 TESTS 29 62 512000 2000
8491512 WARenie D Oct. 30, 2014, 8:54 p.m. OK Python 3 TESTS 29 62 614400 2000
8049459 WARenie D Oct. 1, 2014, 4:31 p.m. OK Python 3 TESTS 29 62 614400 2000
4892437 Shiz0 D Oct. 25, 2013, 7:20 p.m. OK Python 3 TESTS 29 62 921600 2000
7911317 scanhex D Sept. 22, 2014, 2:42 p.m. OK Python 3 TESTS 29 62 2457600 2000
7648865 WARenie D Aug. 30, 2014, 9:04 p.m. OK Python 3 TESTS 29 93 307200 2000
41125706 the_nightmare D Aug. 2, 2018, 2:09 p.m. OK Python 3 TESTS 29 109 512000 2000
4922594 limed D Oct. 28, 2013, 6:02 p.m. OK Scala TESTS 29 265 204800 2000

remove filters

Back to search problems