Educational Codeforces Round 9

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
632 Educational Codeforces Round 9 FINISHED False 7200 280335563 March 1, 2016, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4046 ) B Alice, Bob, Two Teams PROGRAMMING brute force constructive algorithms 1400

B"Alice and Bob are playing a game. The game involves splitting up game pieces into two teams. There are n pieces, and the i-th piece has a strength pi. The way to split up game pieces is split into several steps: The strength of a player is then the sum of strengths of the pieces in the group. Given Alice's initial split into two teams, help Bob determine an optimal strategy. Return the maximum strength he can achieve. The first line contains 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 game pieces. The second line contains n integers pi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the strength of the i-th piece. The third line contains n characters A or B -- the assignment of teams after the first step (after Alice's step). Print the only integer a -- the maximum strength Bob can achieve. In the first sample Bob should flip the suffix of length one. In the second sample Bob should flip the prefix or the suffix (here it is the same) of length 5. In the third sample Bob should do nothing. "...

Tutorials

43493

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
16672192 favstovol B March 12, 2016, 12:07 p.m. OK Delphi TESTS 17 140 12083200 1400
16448725 idee.fixe B March 1, 2016, 4:28 p.m. OK FPC TESTS 17 93 2560000 1400
16670066 Miladus B March 12, 2016, 9:36 a.m. OK FPC TESTS 17 93 101580800 1400
16447150 Markellonchik B March 1, 2016, 3:58 p.m. OK FPC TESTS 17 108 2457600 1400
16668815 DarkKeks B March 12, 2016, 8:32 a.m. OK FPC TESTS 17 108 3993600 1400
16669622 alphaver B March 12, 2016, 9:08 a.m. OK FPC TESTS 17 108 11366400 1400
16445291 Andrey15253545 B March 1, 2016, 3:31 p.m. OK FPC TESTS 17 109 2457600 1400
16669041 BrainCancer B March 12, 2016, 8:42 a.m. OK FPC TESTS 17 109 3379200 1400
16449488 prosmgeorg B March 1, 2016, 4:45 p.m. OK FPC TESTS 17 109 3379200 1400
16445105 Zeron B March 1, 2016, 3:28 p.m. OK FPC TESTS 17 109 3379200 1400
16447714 Xandry B March 1, 2016, 4:08 p.m. OK FPC TESTS 17 109 3891200 1400
16449211 ming1ing B March 1, 2016, 4:39 p.m. OK GNU C TESTS 17 109 2457600 1400
35174543 preliminary B Feb. 12, 2018, 10:09 a.m. OK GNU C TESTS 17 109 4403200 1400
16480510 shishi B March 3, 2016, 10:02 a.m. OK GNU C TESTS 17 109 4505600 1400
39400176 gajjo B June 19, 2018, 6:18 a.m. OK GNU C TESTS 17 124 2457600 1400
16511172 anirudhbansal B March 4, 2016, 8:27 a.m. OK GNU C TESTS 17 124 2457600 1400
16751231 double301 B March 16, 2016, 5:57 p.m. OK GNU C TESTS 17 124 2560000 1400
16675760 vjudge1 B March 12, 2016, 2:37 p.m. OK GNU C TESTS 17 124 4505600 1400
19891273 rainboy B Aug. 15, 2016, 3:40 p.m. OK GNU C TESTS 17 139 6348800 1400
19891129 rainboy B Aug. 15, 2016, 3:30 p.m. OK GNU C TESTS 17 139 22425600 1400
16676302 vjudge2 B March 12, 2016, 3:12 p.m. OK GNU C TESTS 17 140 2560000 1400
16444084 Chloe_fan B March 1, 2016, 3:15 p.m. OK GNU C++ TESTS 17 31 2355200 1400
17813264 suntar B May 8, 2016, 10:14 p.m. OK GNU C++ TESTS 17 31 3993600 1400
17813256 suntar B May 8, 2016, 10:12 p.m. OK GNU C++ TESTS 17 31 4096000 1400
28768517 hpuvjudge B July 22, 2017, 3:33 a.m. OK GNU C++ TESTS 17 31 4403200 1400
28776266 hpuvjudge B July 22, 2017, 10:45 a.m. OK GNU C++ TESTS 17 31 4608000 1400
40985008 ReaLNero1 B July 30, 2018, 7:42 p.m. OK GNU C++ TESTS 17 46 2355200 1400
17813282 suntar B May 8, 2016, 10:19 p.m. OK GNU C++ TESTS 17 46 3891200 1400
17813273 suntar B May 8, 2016, 10:17 p.m. OK GNU C++ TESTS 17 46 3891200 1400
16463504 markysha B March 2, 2016, 11:53 a.m. OK GNU C++ TESTS 17 46 3993600 1400
16463433 markysha B March 2, 2016, 11:51 a.m. OK GNU C++ TESTS 17 46 3993600 1400
52134845 kaiboy B April 1, 2019, 1:16 a.m. OK GNU C11 TESTS 17 109 2457600 1400
16476403 2015jianghuaijie B March 3, 2016, 4:30 a.m. OK GNU C11 TESTS 17 109 250470400 1400
20206174 Omi12 B Aug. 28, 2016, 6:25 a.m. OK GNU C11 TESTS 17 139 6348800 1400
16456388 dikshant001 B March 2, 2016, 2:08 a.m. OK GNU C11 TESTS 17 140 4505600 1400
16443903 _winedag B March 1, 2016, 3:12 p.m. OK GNU C++11 TESTS 17 31 18534400 1400
56434758 LittleBaby B July 2, 2019, 1:38 p.m. OK GNU C++11 TESTS 17 46 4505600 1400
16443964 ehsanoo B March 1, 2016, 3:12 p.m. OK GNU C++11 TESTS 17 46 4505600 1400
56434785 zrmpaul B July 2, 2019, 1:39 p.m. OK GNU C++11 TESTS 17 46 4505600 1400
23049090 yancouto B Dec. 17, 2016, 2:02 p.m. OK GNU C++11 TESTS 17 46 4608000 1400
16448020 merolish B March 1, 2016, 4:13 p.m. OK GNU C++11 TESTS 17 46 10547200 1400
19220266 mvgrass B July 18, 2016, 9:51 p.m. OK GNU C++11 TESTS 17 46 12083200 1400
16532330 I_love_code B March 5, 2016, 11:30 a.m. OK GNU C++11 TESTS 17 46 20582400 1400
16443819 eddy1021 B March 1, 2016, 3:10 p.m. OK GNU C++11 TESTS 17 46 20787200 1400
55594980 -Javelin- B June 15, 2019, 2:30 p.m. OK GNU C++11 TESTS 17 46 21401600 1400
25000070 vjudge4 B Feb. 25, 2017, 3:07 a.m. OK GNU C++14 TESTS 17 109 4403200 1400
38419302 vjudge2 B May 19, 2018, 6:19 a.m. OK GNU C++14 TESTS 17 124 2764800 1400
25550800 Hacker0127 B March 16, 2017, 1:49 p.m. OK GNU C++14 TESTS 17 124 6451200 1400
41661303 m4h B Aug. 16, 2018, 6:17 p.m. OK GNU C++14 TESTS 17 139 3891200 1400
32818348 PedroBortolli B Nov. 30, 2017, 11:30 p.m. OK GNU C++14 TESTS 17 139 6451200 1400
44064249 Kirundel B Oct. 10, 2018, 8:10 a.m. OK GNU C++14 TESTS 17 139 6963200 1400
45790670 CoffeeDog B Nov. 16, 2018, 6:46 a.m. OK GNU C++14 TESTS 17 140 2764800 1400
61112080 iShibly B Sept. 23, 2019, 11:38 a.m. OK GNU C++14 TESTS 17 140 3891200 1400
68709542 Alex.exe B Jan. 13, 2020, 12:31 p.m. OK GNU C++14 TESTS 17 140 3891200 1400
33578098 thebes B Dec. 23, 2017, 8:32 p.m. OK GNU C++14 TESTS 17 140 4403200 1400
69394902 vjudge2 B Jan. 23, 2020, 5:47 a.m. OK GNU C++17 TESTS 17 124 4505600 1400
56456367 Felix-Wang B July 3, 2019, 4:10 a.m. OK GNU C++17 TESTS 17 124 12492800 1400
69887015 vjudge3 B Jan. 31, 2020, 8:35 a.m. OK GNU C++17 TESTS 17 124 18534400 1400
66729701 iankury B Dec. 12, 2019, 5:06 p.m. OK GNU C++17 TESTS 17 139 3891200 1400
59637384 k0walsk1 B Aug. 28, 2019, 9:44 p.m. OK GNU C++17 TESTS 17 139 10547200 1400
56466119 vjudge2 B July 3, 2019, 8:59 a.m. OK GNU C++17 TESTS 17 139 12492800 1400
53896019 trungvthe130284 B May 9, 2019, 5:59 a.m. OK GNU C++17 TESTS 17 139 21094400 1400
48434563 lerooo B Jan. 15, 2019, 7:28 p.m. OK GNU C++17 TESTS 17 140 3276800 1400
54669242 charity B May 26, 2019, 3:16 p.m. OK GNU C++17 TESTS 17 140 12492800 1400
40605874 dmkozyrev B July 21, 2018, 11:22 a.m. OK GNU C++17 TESTS 17 140 13516800 1400
16778888 binhuq B March 18, 2016, 9:40 a.m. OK Go TESTS 17 186 31744000 1400
19940812 pavel.rosputko B Aug. 18, 2016, 6:27 a.m. OK Haskell TESTS 17 514 173158400 1400
16452308 Ramadoka. B March 1, 2016, 6:43 p.m. OK Haskell TESTS 17 561 112640000 1400
64490731 davisrollman B Nov. 7, 2019, 7:49 p.m. OK Java 11 TESTS 17 311 15872000 1400
67471488 ankyy_0103 B Dec. 23, 2019, 12:58 p.m. OK Java 11 TESTS 17 311 17203200 1400
16455069 Juniorandrade B March 1, 2016, 10:31 p.m. OK Java 7 TESTS 17 155 0 1400
16480844 Code.coding B March 3, 2016, 10:26 a.m. OK Java 7 TESTS 17 155 0 1400
16448136 deepraiya17 B March 1, 2016, 4:16 p.m. OK Java 7 TESTS 17 202 0 1400
16457860 nightwolf212 B March 2, 2016, 5:35 a.m. OK Java 7 TESTS 17 249 37580800 1400
16739738 jackwong B March 16, 2016, 8:42 a.m. OK Java 7 TESTS 17 249 38195200 1400
16482137 marcose18 B March 3, 2016, 12:07 p.m. OK Java 7 TESTS 17 264 38092800 1400
16445236 nitegazer B March 1, 2016, 3:30 p.m. OK Java 7 TESTS 17 265 37478400 1400
16446839 huapito B March 1, 2016, 3:53 p.m. OK Java 7 TESTS 17 265 38092800 1400
17295373 mIchanic B April 12, 2016, 9:02 p.m. OK Java 7 TESTS 17 280 39116800 1400
16920327 yan_lazy B March 25, 2016, 11:19 a.m. OK Java 7 TESTS 17 280 70246400 1400
42310986 aman28rwt B Aug. 31, 2018, 2:16 p.m. OK Java 8 TESTS 17 140 0 1400
59133488 jakejase2 B Aug. 20, 2019, 11:51 a.m. OK Java 8 TESTS 17 155 0 1400
46169475 NMouad21 B Nov. 24, 2018, 12:14 p.m. OK Java 8 TESTS 17 155 4812800 1400
16535925 Guliash B March 5, 2016, 2:32 p.m. OK Java 8 TESTS 17 156 0 1400
16445187 meashish B March 1, 2016, 3:29 p.m. OK Java 8 TESTS 17 156 10240000 1400
16458227 poikniok B March 2, 2016, 6:14 a.m. OK Java 8 TESTS 17 171 0 1400
54850695 thisbeit B May 30, 2019, 4:25 p.m. OK Java 8 TESTS 17 171 4710400 1400
16477799 ankitiitd03 B March 3, 2016, 7:03 a.m. OK Java 8 TESTS 17 171 12697600 1400
40199716 temp656463 B July 11, 2018, 11:44 a.m. OK Java 8 TESTS 17 171 16691200 1400
35965044 Tarun B March 5, 2018, 12:30 p.m. OK Java 8 TESTS 17 171 20684800 1400
28970747 bubnov B July 29, 2017, 12:56 p.m. OK Kotlin TESTS 17 452 59904000 1400
52634307 MinProph B April 12, 2019, 9:03 a.m. OK Mono C# TESTS 17 264 65228800 1400
16444356 AnatolyTolstobrov B March 1, 2016, 3:18 p.m. OK MS C# TESTS 17 93 5222400 1400
16445168 og.kostya B March 1, 2016, 3:29 p.m. OK MS C# TESTS 17 93 11264000 1400
16444234 Beresta B March 1, 2016, 3:17 p.m. OK MS C# TESTS 17 124 13516800 1400
16444230 toraoh B March 1, 2016, 3:17 p.m. OK MS C# TESTS 17 218 73113600 1400
16510873 ZangievM B March 4, 2016, 8:07 a.m. OK MS C# TESTS 17 249 60928000 1400
16477489 fr0st B March 3, 2016, 6:40 a.m. OK MS C# TESTS 17 249 75878400 1400
16443839 azukun B March 1, 2016, 3:11 p.m. OK MS C# TESTS 17 249 77414400 1400
16852852 Mem B March 21, 2016, 9:25 a.m. OK MS C# TESTS 17 249 84582400 1400
16444522 NirShalmon B March 1, 2016, 3:21 p.m. OK MS C# TESTS 17 264 63795200 1400
16446325 suwik B March 1, 2016, 3:45 p.m. OK MS C# TESTS 17 265 70144000 1400
44446289 vjudge3 B Oct. 17, 2018, 2:03 p.m. OK MS C++ TESTS 17 93 2560000 1400
44435932 vjudge3 B Oct. 17, 2018, 10 a.m. OK MS C++ TESTS 17 93 2764800 1400
46568976 vjudge3 B Dec. 4, 2018, 3:45 a.m. OK MS C++ TESTS 17 108 10547200 1400
69599433 vjudge5 B Jan. 27, 2020, 6:45 a.m. OK MS C++ TESTS 17 108 12492800 1400
16834580 15843826644 B March 20, 2016, 8:39 a.m. OK MS C++ TESTS 17 108 12595200 1400
16444676 sister_what_hate_most B March 1, 2016, 3:23 p.m. OK MS C++ TESTS 17 108 18534400 1400
16671853 vjudge2 B March 12, 2016, 11:40 a.m. OK MS C++ TESTS 17 109 2457600 1400
16744855 vjudge2 B March 16, 2016, 12:54 p.m. OK MS C++ TESTS 17 109 2560000 1400
16444721 TonySnark B March 1, 2016, 3:23 p.m. OK MS C++ TESTS 17 109 2560000 1400
44483407 vjudge3 B Oct. 18, 2018, 11:25 a.m. OK MS C++ TESTS 17 109 4505600 1400
62028328 marewolf B Oct. 6, 2019, 9:38 p.m. OK MS C++ 2017 TESTS 17 483 5222400 1400
60492470 siwei B Sept. 13, 2019, 3 p.m. OK MS C++ 2017 TESTS 17 514 10854400 1400
16459196 mayakin B March 2, 2016, 7:37 a.m. OK PHP TESTS 17 717 60723200 1400
18170253 nealzane B May 31, 2016, 2:39 p.m. OK PyPy 2 TESTS 17 295 55193600 1400
16688110 Eeyore B March 13, 2016, 8:31 a.m. OK PyPy 2 TESTS 17 342 34918400 1400
16444933 kliner B March 1, 2016, 3:26 p.m. OK PyPy 2 TESTS 17 373 33484800 1400
16444451 mrkimkim B March 1, 2016, 3:19 p.m. OK PyPy 2 TESTS 17 374 31129600 1400
18716222 justforlaugh B June 25, 2016, 8:50 a.m. OK PyPy 2 TESTS 17 576 72396800 1400
16748804 lowiq B March 16, 2016, 3:54 p.m. OK PyPy 2 TESTS 17 748 100454400 1400
16526239 m7mdbadawy B March 5, 2016, 4:53 a.m. OK PyPy 2 TESTS 17 1232 139571200 1400
55985622 scambret B June 24, 2019, 3:08 a.m. OK PyPy 3 TESTS 17 763 37785600 1400
16898140 Artem_179 B March 23, 2016, 8:42 p.m. OK PyPy 3 TESTS 17 780 76390400 1400
16684187 ysd B March 13, 2016, 3:03 a.m. OK PyPy 3 TESTS 17 794 53862400 1400
16447459 Ferume B March 1, 2016, 4:03 p.m. OK PyPy 3 TESTS 17 795 53452800 1400
59668467 .youssef13 B Aug. 29, 2019, 3:03 p.m. OK PyPy 3 TESTS 17 888 24780800 1400
16445593 cugel B March 1, 2016, 3:35 p.m. OK PyPy 3 TESTS 17 997 53248000 1400
24726949 vjudge4 B Feb. 16, 2017, 9:18 p.m. OK PyPy 3 TESTS 17 1216 111718400 1400
24726011 vjudge2 B Feb. 16, 2017, 8:09 p.m. OK PyPy 3 TESTS 17 1247 116838400 1400
16444988 GoNoCoder B March 1, 2016, 3:27 p.m. OK Python 2 TESTS 17 810 27238400 1400
16676053 TokuchiToa B March 12, 2016, 2:55 p.m. OK Python 2 TESTS 17 826 27136000 1400
16445046 ssmiler B March 1, 2016, 3:28 p.m. OK Python 2 TESTS 17 904 27340800 1400
16456865 venkatesh_p B March 2, 2016, 3:21 a.m. OK Python 2 TESTS 17 904 29081600 1400
21343014 clarinet758 B Oct. 10, 2016, 5:07 p.m. OK Python 2 TESTS 17 936 31846400 1400
16475477 masonsbro B March 3, 2016, 1:26 a.m. OK Python 2 TESTS 17 951 50995200 1400
34268003 ytz123 B Jan. 18, 2018, 6:14 a.m. OK Python 2 TESTS 17 966 31641600 1400
16444905 GoNoCoder B March 1, 2016, 3:26 p.m. OK Python 2 TESTS 17 982 27238400 1400
21342859 clarinet758 B Oct. 10, 2016, 4:58 p.m. OK Python 2 TESTS 17 982 31846400 1400
16450912 roshkai B March 1, 2016, 5:26 p.m. OK Python 2 TESTS 17 997 49049600 1400
16732684 m4tt.kerin B March 15, 2016, 6:32 p.m. OK Python 3 TESTS 17 467 39833600 1400
20443814 Remarque B Sept. 7, 2016, 6:20 p.m. OK Python 3 TESTS 17 467 40550400 1400
29582140 Qumeric B Aug. 18, 2017, 9:12 p.m. OK Python 3 TESTS 17 483 40550400 1400
16543156 orailly B March 6, 2016, 12:58 a.m. OK Python 3 TESTS 17 498 51200000 1400
19400347 Yash_ B July 25, 2016, 9:24 a.m. OK Python 3 TESTS 17 514 39833600 1400
16543253 orailly B March 6, 2016, 1:13 a.m. OK Python 3 TESTS 17 545 69427200 1400
16732671 m4tt.kerin B March 15, 2016, 6:31 p.m. OK Python 3 TESTS 17 576 41984000 1400
17894389 sxx B May 13, 2016, 7:18 p.m. OK Python 3 TESTS 17 607 45977600 1400
16446808 gengkev B March 1, 2016, 3:52 p.m. OK Python 3 TESTS 17 701 39526400 1400
16446038 kir.chulkov B March 1, 2016, 3:41 p.m. OK Python 3 TESTS 17 732 39936000 1400
16560794 _ShadowSong B March 7, 2016, 5:57 a.m. OK Ruby TESTS 17 1263 61542400 1400
16461214 rise3812 B March 2, 2016, 9:47 a.m. OK Ruby TESTS 17 1310 104857600 1400
16560774 _ShadowSong B March 7, 2016, 5:54 a.m. OK Ruby TESTS 17 1341 61644800 1400
16444631 cielavenir B March 1, 2016, 3:22 p.m. OK Ruby TESTS 17 1372 106803200 1400
45028587 kobae964 B Oct. 29, 2018, 1:07 a.m. OK Rust TESTS 17 296 120115200 1400
17280829 reldan B April 11, 2016, 4:37 p.m. OK Scala TESTS 17 810 77004800 1400

remove filters

Back to search problems