Educational Codeforces Round 48 (Rated for 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
1016 Educational Codeforces Round 48 (Rated for Div. 2) FINISHED False 7200 204218124 Aug. 3, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3793 ) C Vasya And The Mushrooms PROGRAMMING dp implementation 1800

B"Vasya's house is situated in a forest, and there is a mushroom glade near it. The glade consists of two rows, each of which can be divided into n consecutive cells. For each cell Vasya knows how fast the mushrooms grow in this cell (more formally, how many grams of mushrooms grow in this cell each minute). Vasya spends exactly one minute to move to some adjacent cell. Vasya cannot leave the glade. Two cells are considered adjacent if they share a common side. When Vasya enters some cell, he instantly collects all the mushrooms growing there. Vasya begins his journey in the left upper cell. Every minute Vasya must move to some adjacent cell, he cannot wait for the mushrooms to grow. He wants to visit all the cells exactly once and maximize the total weight of the collected mushrooms. Initially, all mushrooms have a weight of 0. Note that Vasya doesn't need to return to the starting cell. Help Vasya! Calculate the maximum total weight of mushrooms he can collect. The first line contains the number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105) -- the length of the glade. The second line contains n numbers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the growth rate of mushrooms in the first row of the glade. The third line contains n numbers b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) is the growth rate of mushrooms in the second row of the glade. Output one number -- the maximum total weight of mushrooms that Vasya can collect by choosing the optimal route. Pay attention that Vasya must visit every cell of the glade exactly once. In the first test case, the optimal route is as follows: In the second test case, the optimal route is as follows: "...

Tutorials

Разбор Educational Codeforces Round 48

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
41395474 rr_ C Aug. 9, 2018, 10:52 a.m. OK D TESTS 22 155 14745600 1800
41395455 rr_ C Aug. 9, 2018, 10:52 a.m. OK D TESTS 22 171 14745600 1800
41395430 rr_ C Aug. 9, 2018, 10:51 a.m. OK D TESTS 22 171 25600000 1800
41237385 ia7ck C Aug. 5, 2018, 8:04 a.m. OK D TESTS 22 186 42086400 1800
41175172 fluffyowl C Aug. 3, 2018, 3:45 p.m. OK D TESTS 22 187 25292800 1800
41237460 ia7ck C Aug. 5, 2018, 8:07 a.m. OK D TESTS 22 187 42086400 1800
41271733 AHTOH._. C Aug. 6, 2018, 10:47 a.m. OK FPC TESTS 22 155 19251200 1800
57994135 luogu_bot3 C July 30, 2019, 2:23 p.m. OK FPC TESTS 22 170 33792000 1800
57987223 vjudge3 C July 30, 2019, 11:51 a.m. OK FPC TESTS 22 170 33792000 1800
41940086 __ShaW C Aug. 21, 2018, 2:53 p.m. OK FPC TESTS 22 171 12083200 1800
41199494 NoSoul C Aug. 4, 2018, 4:11 a.m. OK GNU C TESTS 22 155 4812800 1800
41181822 newbieski C Aug. 3, 2018, 4:25 p.m. OK GNU C TESTS 22 156 56115200 1800
41235753 BumbleBee C Aug. 5, 2018, 7:11 a.m. OK GNU C TESTS 22 186 76800000 1800
41175345 Anoxiacxy C Aug. 3, 2018, 3:46 p.m. OK GNU C++ TESTS 22 46 4812800 1800
42424978 vjudge3 C Sept. 3, 2018, 12:16 p.m. OK GNU C++ TESTS 22 46 9728000 1800
41274421 vjudge3 C Aug. 6, 2018, 12:24 p.m. OK GNU C++ TESTS 22 46 14438400 1800
41190719 Position C Aug. 3, 2018, 7:01 p.m. OK GNU C++ TESTS 22 46 25702400 1800
41177217 XSamsara C Aug. 3, 2018, 3:57 p.m. OK GNU C++ TESTS 22 61 9625600 1800
41178945 Nokto C Aug. 3, 2018, 4:07 p.m. OK GNU C++ TESTS 22 61 11980800 1800
41177183 InvalidSubmission C Aug. 3, 2018, 3:57 p.m. OK GNU C++ TESTS 22 61 12083200 1800
41223769 HolyRomanEmpire C Aug. 4, 2018, 6 p.m. OK GNU C++ TESTS 22 61 13209600 1800
41179997 Joky_02 C Aug. 3, 2018, 4:13 p.m. OK GNU C++ TESTS 22 61 14233600 1800
42361302 luogu_bot5 C Sept. 2, 2018, 12:04 p.m. OK GNU C++ TESTS 22 61 15052800 1800
50539987 rainboy C Feb. 26, 2019, 5:34 p.m. OK GNU C11 TESTS 22 124 9625600 1800
42776609 freyes C Sept. 11, 2018, 5:53 p.m. OK GNU C11 TESTS 22 140 9625600 1800
41250739 pandrei C Aug. 5, 2018, 4:03 p.m. OK GNU C11 TESTS 22 155 11980800 1800
42425806 kamiyoru C Sept. 3, 2018, 12:37 p.m. OK GNU C++11 TESTS 22 46 9523200 1800
41203788 pipialvin C Aug. 4, 2018, 6:49 a.m. OK GNU C++11 TESTS 22 46 9625600 1800
41302474 qeatzy C Aug. 7, 2018, 11:08 a.m. OK GNU C++11 TESTS 22 46 9932800 1800
45268741 luogu_bot1 C Nov. 4, 2018, 7:24 a.m. OK GNU C++11 TESTS 22 46 11980800 1800
41176265 Shedneryan C Aug. 3, 2018, 3:51 p.m. OK GNU C++11 TESTS 22 46 12083200 1800
41174800 xywsxp C Aug. 3, 2018, 3:43 p.m. OK GNU C++11 TESTS 22 46 12288000 1800
45198768 luogu_bot4 C Nov. 2, 2018, 8:47 a.m. OK GNU C++11 TESTS 22 46 16691200 1800
45198750 xiezichen C Nov. 2, 2018, 8:46 a.m. OK GNU C++11 TESTS 22 46 16691200 1800
68594164 Orange_JuiCE C Jan. 11, 2020, 1:33 p.m. OK GNU C++11 TESTS 22 46 16793600 1800
64346824 lx_zjk C Nov. 6, 2019, 6:43 a.m. OK GNU C++11 TESTS 22 46 16793600 1800
41188915 wleung_bvg C Aug. 3, 2018, 5:58 p.m. OK GNU C++14 TESTS 22 46 7270400 1800
49037131 wleung_bvg C Jan. 27, 2019, 4:15 a.m. OK GNU C++14 TESTS 22 46 7270400 1800
41606449 brambles_sea C Aug. 15, 2018, 2:55 a.m. OK GNU C++14 TESTS 22 61 70656000 1800
41183329 sbreto C Aug. 3, 2018, 4:34 p.m. OK GNU C++14 TESTS 22 77 19353600 1800
41393302 Linkus C Aug. 9, 2018, 9:32 a.m. OK GNU C++14 TESTS 22 78 9932800 1800
44913432 1726tgyeuva C Oct. 26, 2018, 2:26 p.m. OK GNU C++14 TESTS 22 139 14438400 1800
41177049 mohamedeltair C Aug. 3, 2018, 3:56 p.m. OK GNU C++14 TESTS 22 139 16793600 1800
41415623 1996122619961226 C Aug. 10, 2018, 2:23 a.m. OK GNU C++14 TESTS 22 140 9625600 1800
45499337 Hrsh_sengar C Nov. 10, 2018, 5:56 a.m. OK GNU C++14 TESTS 22 140 9625600 1800
41170859 Hasan0540 C Aug. 3, 2018, 3:24 p.m. OK GNU C++14 TESTS 22 140 12083200 1800
46045606 Dup4 C Nov. 22, 2018, 1:20 a.m. OK GNU C++17 TESTS 22 61 29491200 1800
41171499 UnstoppableChillMachine C Aug. 3, 2018, 3:29 p.m. OK GNU C++17 TESTS 22 62 67276800 1800
41290885 vjudge2 C Aug. 7, 2018, 2:55 a.m. OK GNU C++17 TESTS 22 92 29286400 1800
41187460 TobyCF C Aug. 3, 2018, 5:19 p.m. OK GNU C++17 TESTS 22 124 16793600 1800
49519449 andrew4936 C Feb. 6, 2019, 6:44 a.m. OK GNU C++17 TESTS 22 124 19456000 1800
53689207 vjudge2 C May 3, 2019, 3:26 a.m. OK GNU C++17 TESTS 22 124 21606400 1800
41178820 labypuzzle C Aug. 3, 2018, 4:06 p.m. OK GNU C++17 TESTS 22 140 9625600 1800
41173862 zoomswk C Aug. 3, 2018, 3:39 p.m. OK GNU C++17 TESTS 22 140 9625600 1800
41383992 antman C Aug. 9, 2018, 4:21 a.m. OK GNU C++17 TESTS 22 140 14438400 1800
42420886 XxZzzz C Sept. 3, 2018, 10:10 a.m. OK GNU C++17 TESTS 22 140 14643200 1800
41226926 kamranm C Aug. 4, 2018, 8:45 p.m. OK Go TESTS 22 109 8396800 1800
41226869 kamranm C Aug. 4, 2018, 8:42 p.m. OK Go TESTS 22 109 8396800 1800
41227057 kamranm C Aug. 4, 2018, 8:54 p.m. OK Go TESTS 22 109 8499200 1800
41226946 kamranm C Aug. 4, 2018, 8:46 p.m. OK Go TESTS 22 109 8499200 1800
41276592 cojna C Aug. 6, 2018, 1:33 p.m. OK Haskell TESTS 22 764 168345600 1800
59976720 chojh1222 C Sept. 4, 2019, 6:16 a.m. OK Java 8 TESTS 22 155 14233600 1800
59975635 chojh1222 C Sept. 4, 2019, 5:39 a.m. OK Java 8 TESTS 22 155 14233600 1800
59976777 chojh1222 C Sept. 4, 2019, 6:18 a.m. OK Java 8 TESTS 22 155 14336000 1800
41172823 vovacomua C Aug. 3, 2018, 3:34 p.m. OK Java 8 TESTS 22 171 4505600 1800
41181864 t.yoshihara.ae C Aug. 3, 2018, 4:25 p.m. OK Java 8 TESTS 22 171 4710400 1800
41932381 chandan5284 C Aug. 21, 2018, 10:58 a.m. OK Java 8 TESTS 22 171 14233600 1800
41189852 Codeforce_123 C Aug. 3, 2018, 6:28 p.m. OK Java 8 TESTS 22 171 14336000 1800
41173737 palayutm C Aug. 3, 2018, 3:38 p.m. OK Java 8 TESTS 22 171 19046400 1800
41172166 dalt C Aug. 3, 2018, 3:31 p.m. OK Java 8 TESTS 22 186 0 1800
41174996 Yugioh C Aug. 3, 2018, 3:44 p.m. OK Java 8 TESTS 22 186 2355200 1800
41172953 elizarov C Aug. 3, 2018, 3:34 p.m. OK Kotlin TESTS 22 607 15974400 1800
41174763 final_child C Aug. 3, 2018, 3:43 p.m. OK Kotlin TESTS 22 1045 11571200 1800
58046394 luogu_bot5 C July 30, 2019, 11:57 p.m. OK Mono C# TESTS 22 249 47104000 1800
41214936 Mickey-snow C Aug. 4, 2018, 12:30 p.m. OK Mono C# TESTS 22 264 43110400 1800
41625812 treasuryonly C Aug. 15, 2018, 2:22 p.m. OK Mono C# TESTS 22 264 46694400 1800
41234317 Isakovsky C Aug. 5, 2018, 6:17 a.m. OK Mono C# TESTS 22 264 47104000 1800
41174630 lxn C Aug. 3, 2018, 3:43 p.m. OK MS C++ TESTS 22 78 21708800 1800
57926263 vjudge2 C July 29, 2019, 7:12 a.m. OK MS C++ TESTS 22 109 7168000 1800
44935747 vjudge1 C Oct. 27, 2018, 5:13 a.m. OK MS C++ TESTS 22 109 24064000 1800
69181869 vjudge3 C Jan. 20, 2020, 10:29 a.m. OK MS C++ TESTS 22 124 9728000 1800
57933010 vjudge2 C July 29, 2019, 9:25 a.m. OK MS C++ TESTS 22 124 12083200 1800
57928100 vjudge2 C July 29, 2019, 7:48 a.m. OK MS C++ TESTS 22 124 14438400 1800
69078836 vjudge4 C Jan. 19, 2020, 5:18 a.m. OK MS C++ TESTS 22 124 14438400 1800
41224310 kumino C Aug. 4, 2018, 6:30 p.m. OK MS C++ TESTS 22 124 14438400 1800
57925537 vjudge5 C July 29, 2019, 6:57 a.m. OK MS C++ TESTS 22 124 16588800 1800
57946003 vjudge5 C July 29, 2019, 2:22 p.m. OK MS C++ TESTS 22 124 16793600 1800
57926012 vjudge2 C July 29, 2019, 7:07 a.m. OK MS C++ 2017 TESTS 22 187 14438400 1800
50412415 amolb89 C Feb. 24, 2019, 3:57 a.m. OK MS C++ 2017 TESTS 22 514 12083200 1800
50626476 g-m-blake C March 1, 2019, 6:22 a.m. OK MS C++ 2017 TESTS 22 529 7782400 1800
41172238 alexey.shchepin C Aug. 3, 2018, 3:31 p.m. OK Ocaml TESTS 22 498 53145600 1800
41182984 algmyr C Aug. 3, 2018, 4:32 p.m. OK PyPy 2 TESTS 22 701 21504000 1800
41181075 exoji2e C Aug. 3, 2018, 4:20 p.m. OK PyPy 2 TESTS 22 732 22220800 1800
41173704 pajenegod C Aug. 3, 2018, 3:38 p.m. OK PyPy 2 TESTS 22 857 80281600 1800
41881388 supachai_pay C Aug. 20, 2018, 1:47 a.m. OK PyPy 2 TESTS 22 982 62259200 1800
52438170 homoeconomicus C April 7, 2019, 5:09 a.m. OK PyPy 3 TESTS 22 1029 97792000 1800
41182834 xumouyi C Aug. 3, 2018, 4:31 p.m. OK PyPy 3 TESTS 22 1060 60825600 1800
45121805 bergus C Oct. 31, 2018, 5:14 a.m. OK PyPy 3 TESTS 22 1107 121548800 1800
41633028 wadissimo C Aug. 15, 2018, 7:53 p.m. OK PyPy 3 TESTS 22 1122 81920000 1800
41185938 sergovoy C Aug. 3, 2018, 4:50 p.m. OK PyPy 3 TESTS 22 1122 91648000 1800
62416725 satyamcse C Oct. 12, 2019, 11:49 a.m. OK PyPy 3 TESTS 22 1185 186470400 1800
41184943 sergovoy C Aug. 3, 2018, 4:42 p.m. OK PyPy 3 TESTS 22 1247 88473600 1800
41244460 TMC C Aug. 5, 2018, 12:18 p.m. OK PyPy 3 TESTS 22 1263 124518400 1800
41178616 satja C Aug. 3, 2018, 4:05 p.m. OK PyPy 3 TESTS 22 1434 111206400 1800
41334958 khaser C Aug. 8, 2018, 11:26 a.m. OK PyPy 3 TESTS 22 1465 166809600 1800
41174622 nwi C Aug. 3, 2018, 3:43 p.m. OK Python 2 TESTS 22 1310 62668800 1800
41191760 sqL_slammer C Aug. 3, 2018, 7:48 p.m. OK Python 2 TESTS 22 1341 62668800 1800
41442493 lisztfan C Aug. 10, 2018, 7:38 p.m. OK Python 2 TESTS 22 1731 47206400 1800
41182499 codercody C Aug. 3, 2018, 4:29 p.m. OK Python 2 TESTS 22 1825 35430400 1800
41632390 abbas C Aug. 15, 2018, 7:17 p.m. OK Python 2 TESTS 22 1949 60416000 1800
41180692 tester_ C Aug. 3, 2018, 4:17 p.m. OK Python 3 TESTS 22 1310 41267200 1800
41798900 Laida C Aug. 18, 2018, 5:45 p.m. OK Python 3 TESTS 22 1497 40038400 1800
41192613 titia C Aug. 3, 2018, 8:32 p.m. OK Python 3 TESTS 22 1528 31846400 1800
41652107 Yath230799 C Aug. 16, 2018, 12:26 p.m. OK Python 3 TESTS 22 1544 32051200 1800
41395670 xiaokai666666 C Aug. 9, 2018, 10:59 a.m. OK Python 3 TESTS 22 1544 32051200 1800
41187126 evgeny.chernigovsky C Aug. 3, 2018, 5:11 p.m. OK Python 3 TESTS 22 1544 46796800 1800
45121837 bergus C Oct. 31, 2018, 5:16 a.m. OK Python 3 TESTS 22 1544 65638400 1800
41796947 reaper.of.midnight C Aug. 18, 2018, 5:06 p.m. OK Python 3 TESTS 22 1606 41062400 1800
41203201 bananaorange C Aug. 4, 2018, 6:33 a.m. OK Python 3 TESTS 22 1622 59699200 1800
41206604 rookzeno C Aug. 4, 2018, 8:10 a.m. OK Python 3 TESTS 22 1746 26419200 1800
41177718 betrue12 C Aug. 3, 2018, 4 p.m. OK Ruby TESTS 22 1918 64716800 1800
41174167 tanakh C Aug. 3, 2018, 3:40 p.m. OK Rust TESTS 22 124 23449600 1800
41283500 kichi C Aug. 6, 2018, 6:03 p.m. OK Rust TESTS 22 186 28569600 1800
46447383 yakamoto C Dec. 1, 2018, 2:14 p.m. OK Scala TESTS 22 592 16998400 1800
43083571 yakamoto C Sept. 19, 2018, 2:59 p.m. OK Scala TESTS 22 733 19968000 1800
41235654 xDEMONx C Aug. 5, 2018, 7:06 a.m. OK Scala TESTS 22 795 15052800 1800

remove filters

Back to search problems