Educational Codeforces Round 43 (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
976 Educational Codeforces Round 43 (Rated for Div. 2) FINISHED False 7200 212426424 April 30, 2018, 2:40 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2422 ) E Well played! PROGRAMMING greedy sortings 2100

B'Recently Max has got himself into popular CCG "BrainStone". As "BrainStone" is a pretty intellectual game, Max has to solve numerous hard problems during the gameplay. Here is one of them: Max owns n creatures, i-th of them can be described with two numbers -- its health hpi and its damage dmgi. Max also has two types of spells in stock: Spell of first type can be used no more than a times in total, of the second type -- no more than b times in total. Spell can be used on a certain creature multiple times. Spells can be used in arbitrary order. It isn 't necessary to use all the spells. Max is really busy preparing for his final exams, so he asks you to determine what is the maximal total damage of all creatures he can achieve if he uses spells in most optimal way. The first line contains three integers n, a, b (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the number of creatures, spells of the first type and spells of the second type, respectively. The i-th of the next n lines contain two number hpi and dmgi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89hpi, xe2 x80 x89dmgi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- description of the i-th creature. Print single integer -- maximum total damage creatures can deal. In the first example Max should use the spell of the first type on the second creature, then the spell of the second type on the same creature. Then total damage will be equal to 15 xe2 x80 x89+ xe2 x80 x896 xc2 xb72 xe2 x80 x89= xe2 x80 x8927. In the second example Max should use the spell of the second type on the first creature, then the spell of the second type on the third creature. Total damage will be equal to 10 xe2 x80 x89+ xe2 x80 x8911 xe2 x80 x89+ xe2 x80 x895 xe2 x80 x89= xe2 x80 x8926. '...

Tutorials

59195

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57701079 spiderbatman E July 24, 2019, 5:53 p.m. OK Clang++17 Diagnostics TESTS 71 857 2867200 2100
37768844 fluffyowl E April 30, 2018, 4:04 p.m. OK D TESTS 71 280 15974400 2100
38679305 rr_ E May 27, 2018, 8:18 p.m. OK D TESTS 71 296 4198400 2100
38679076 rr_ E May 27, 2018, 8:04 p.m. OK D TESTS 71 327 22630400 2100
37869626 AHTOH._. E May 3, 2018, 6:18 p.m. OK FPC TESTS 71 171 7884800 2100
37899525 rabbitcxk E May 5, 2018, 7:57 a.m. OK FPC TESTS 71 202 15052800 2100
37899453 Bunnycxk E May 5, 2018, 7:54 a.m. OK FPC TESTS 71 202 15052800 2100
37779032 rainboy E April 30, 2018, 6:11 p.m. OK GNU C TESTS 71 139 4915200 2100
37904998 MajAK E May 5, 2018, 11:52 a.m. OK GNU C TESTS 71 156 6553600 2100
37771590 Windows_XP E April 30, 2018, 4:21 p.m. OK GNU C++ TESTS 71 61 7270400 2100
37907253 HugeGun E May 5, 2018, 1:18 p.m. OK GNU C++ TESTS 71 62 5427200 2100
37795371 Unlimited E May 1, 2018, 10:36 a.m. OK GNU C++ TESTS 71 62 6758400 2100
37785270 WHzy E May 1, 2018, 1:47 a.m. OK GNU C++ TESTS 71 62 6758400 2100
37806728 luogu_bot3 E May 1, 2018, 2:30 p.m. OK GNU C++ TESTS 71 62 7270400 2100
38109200 Scut82 E May 11, 2018, 8:46 a.m. OK GNU C++ TESTS 71 62 8601600 2100
37897427 yq0214 E May 5, 2018, 6:28 a.m. OK GNU C++ TESTS 71 77 6758400 2100
37797800 XSamsara E May 1, 2018, 12:08 p.m. OK GNU C++ TESTS 71 77 6758400 2100
37766658 thx-2 E April 30, 2018, 3:51 p.m. OK GNU C++ TESTS 71 77 9932800 2100
37773344 65536 E April 30, 2018, 4:30 p.m. OK GNU C++ TESTS 71 77 26828800 2100
63564281 vjudge1 E Oct. 27, 2019, 3:21 p.m. OK GNU C11 TESTS 71 140 9625600 2100
37764878 Zyyy E April 30, 2018, 3:41 p.m. OK GNU C++11 TESTS 71 46 9830400 2100
49895519 xrr1299200909 E Feb. 14, 2019, 6:44 a.m. OK GNU C++11 TESTS 71 61 5632000 2100
37763904 _rqy E April 30, 2018, 3:36 p.m. OK GNU C++11 TESTS 71 61 5734400 2100
56307207 sunny_fei E June 30, 2019, 12:36 p.m. OK GNU C++11 TESTS 71 62 1638400 2100
66292152 vjudge4 E Dec. 5, 2019, 12:07 a.m. OK GNU C++11 TESTS 71 62 3174400 2100
66292124 Wangxuye E Dec. 5, 2019, 12:06 a.m. OK GNU C++11 TESTS 71 62 3174400 2100
66312546 vjudge2 E Dec. 5, 2019, 11:56 a.m. OK GNU C++11 TESTS 71 62 3174400 2100
40932284 ReaLNero1 E July 30, 2018, 1:42 a.m. OK GNU C++11 TESTS 71 62 6348800 2100
39695370 menjiantong E June 27, 2018, 8:17 a.m. OK GNU C++11 TESTS 71 62 7987200 2100
37791042 SleepZzz E May 1, 2018, 7:13 a.m. OK GNU C++11 TESTS 71 62 8294400 2100
37763627 Linkus E April 30, 2018, 3:34 p.m. OK GNU C++14 TESTS 71 78 13107200 2100
46002099 minson123 E Nov. 20, 2018, 3 p.m. OK GNU C++14 TESTS 71 109 3174400 2100
45479645 Myrcella E Nov. 9, 2018, 2:09 p.m. OK GNU C++14 TESTS 71 109 3379200 2100
48577647 DeletedAccount90083864 E Jan. 19, 2019, 2:55 p.m. OK GNU C++14 TESTS 71 124 3174400 2100
41331553 Z3L5M E Aug. 8, 2018, 9:03 a.m. OK GNU C++14 TESTS 71 124 3174400 2100
37845238 Laboon E May 2, 2018, 4:22 p.m. OK GNU C++14 TESTS 71 124 4915200 2100
37845211 Laboon E May 2, 2018, 4:21 p.m. OK GNU C++14 TESTS 71 124 4915200 2100
37826851 ExperienceD E May 1, 2018, 10:57 p.m. OK GNU C++14 TESTS 71 124 6553600 2100
38001467 pazabol E May 7, 2018, 4:11 p.m. OK GNU C++14 TESTS 71 124 6553600 2100
37766325 KhaleD_ E April 30, 2018, 3:49 p.m. OK GNU C++14 TESTS 71 124 8294400 2100
37783926 q234rty E April 30, 2018, 11:40 p.m. OK GNU C++17 TESTS 71 61 16588800 2100
51561169 lidongxu E March 20, 2019, 8 a.m. OK GNU C++17 TESTS 71 62 3481600 2100
51561270 idxcalccalc E March 20, 2019, 8:02 a.m. OK GNU C++17 TESTS 71 62 3481600 2100
63774385 cubicc E Oct. 30, 2019, 9:01 a.m. OK GNU C++17 TESTS 71 109 2457600 2100
63774460 vjudge4 E Oct. 30, 2019, 9:02 a.m. OK GNU C++17 TESTS 71 109 2457600 2100
58964158 wvuvw E Aug. 17, 2019, 4:51 p.m. OK GNU C++17 TESTS 71 124 2457600 2100
52549349 RNS_JKS E April 10, 2019, 2:16 a.m. OK GNU C++17 TESTS 71 124 4812800 2100
64720617 ccsu_cat_love_jiejie E Nov. 12, 2019, 3:11 a.m. OK GNU C++17 TESTS 71 124 4812800 2100
60852512 vjudge2 E Sept. 19, 2019, 2:32 p.m. OK GNU C++17 TESTS 71 124 6451200 2100
38013953 5438722 E May 8, 2018, 7:17 a.m. OK GNU C++17 TESTS 71 124 6553600 2100
37900393 cylixstar E May 5, 2018, 8:35 a.m. OK Haskell TESTS 71 826 126976000 2100
38948794 aman28rwt E June 4, 2018, 3:16 p.m. OK Java 8 TESTS 71 264 28364800 2100
37794113 parth_15 E May 1, 2018, 9:43 a.m. OK Java 8 TESTS 71 265 20787200 2100
37891022 RP_9 E May 4, 2018, 8:05 p.m. OK Java 8 TESTS 71 295 28160000 2100
37776724 StayAwayFromBitches E April 30, 2018, 4:59 p.m. OK Java 8 TESTS 71 295 28262400 2100
39255597 xodiac E June 15, 2018, 1:52 a.m. OK Java 8 TESTS 71 296 4915200 2100
37836864 Lancern E May 2, 2018, 10:46 a.m. OK Java 8 TESTS 71 296 20787200 2100
37768855 Nirma_Sucks E April 30, 2018, 4:04 p.m. OK Java 8 TESTS 71 296 39526400 2100
38565449 Kharouba E May 23, 2018, 2:44 p.m. OK Java 8 TESTS 71 311 20787200 2100
37795032 _kharouba E May 1, 2018, 10:21 a.m. OK Java 8 TESTS 71 311 20787200 2100
37781585 atarw E April 30, 2018, 8:27 p.m. OK Java 8 TESTS 71 311 21299200 2100
37789075 og.kostya E May 1, 2018, 5:40 a.m. OK Mono C# TESTS 71 93 11161600 2100
38138842 dinnot E May 12, 2018, 12:56 p.m. OK Mono C# TESTS 71 404 23756800 2100
68710382 vjudge4 E Jan. 13, 2020, 12:48 p.m. OK MS C++ TESTS 71 109 3174400 2100
57843075 vjudge1 E July 27, 2019, 10:01 a.m. OK MS C++ TESTS 71 109 40038400 2100
65620147 vjudge2 E Nov. 24, 2019, 5:54 a.m. OK MS C++ TESTS 71 124 3174400 2100
63994378 vjudge3 E Nov. 1, 2019, 2:08 p.m. OK MS C++ TESTS 71 124 4812800 2100
68969886 vjudge2 E Jan. 17, 2020, 6:35 a.m. OK MS C++ TESTS 71 139 5324800 2100
68712760 vjudge4 E Jan. 13, 2020, 1:29 p.m. OK MS C++ TESTS 71 139 24064000 2100
37903746 yq0214 E May 5, 2018, 11:04 a.m. OK MS C++ TESTS 71 140 8294400 2100
37903906 vjudge4 E May 5, 2018, 11:10 a.m. OK MS C++ TESTS 71 156 8294400 2100
68972530 vjudge4 E Jan. 17, 2020, 7:33 a.m. OK MS C++ TESTS 71 405 5324800 2100
51401407 vjudge1 E March 17, 2019, 7:34 a.m. OK MS C++ TESTS 71 405 20889600 2100
63779463 vjudge5 E Oct. 30, 2019, 10:36 a.m. OK MS C++ 2017 TESTS 71 156 3174400 2100
68859271 vjudge5 E Jan. 15, 2020, 11:33 a.m. OK MS C++ 2017 TESTS 71 171 5529600 2100
61070151 Still_Theory E Sept. 22, 2019, 12:27 p.m. OK MS C++ 2017 TESTS 71 420 6348800 2100
64121015 vjudge5 E Nov. 3, 2019, 1:18 a.m. OK MS C++ 2017 TESTS 71 421 5120000 2100
37781298 pajenegod E April 30, 2018, 8:07 p.m. OK PyPy 2 TESTS 71 732 47001600 2100
37781241 pajenegod E April 30, 2018, 8:05 p.m. OK PyPy 2 TESTS 71 733 47104000 2100
37766616 pajenegod E April 30, 2018, 3:51 p.m. OK PyPy 2 TESTS 71 780 47104000 2100
38014929 Ehzyo E May 8, 2018, 8:06 a.m. OK PyPy 2 TESTS 71 857 67891200 2100
37786935 Savit_Gupta E May 1, 2018, 3:36 a.m. OK PyPy 2 TESTS 71 888 40140800 2100
37795637 y.kemaev E May 1, 2018, 10:46 a.m. OK PyPy 2 TESTS 71 951 44953600 2100
39024833 fortmax120 E June 7, 2018, 2:49 p.m. OK PyPy 2 TESTS 71 967 30310400 2100
37854678 neverwin E May 3, 2018, 6:14 a.m. OK PyPy 3 TESTS 71 842 52940800 2100
37854731 neverwin E May 3, 2018, 6:19 a.m. OK PyPy 3 TESTS 71 888 52940800 2100
38631209 deathgun E May 26, 2018, 10:40 a.m. OK Python 2 TESTS 71 919 25088000 2100
38435357 Ali_Pi E May 19, 2018, 3:26 p.m. OK Python 2 TESTS 71 920 25088000 2100
37795623 y.kemaev E May 1, 2018, 10:46 a.m. OK Python 2 TESTS 71 935 31129600 2100
37788256 coro65536 E May 1, 2018, 5:03 a.m. OK Python 3 TESTS 71 841 37785600 2100
37784082 belkka E April 30, 2018, 11:57 p.m. OK Python 3 TESTS 71 842 37888000 2100
37784047 belkka E April 30, 2018, 11:53 p.m. OK Python 3 TESTS 71 873 37478400 2100
69596017 Guaty E Jan. 27, 2020, 4:48 a.m. OK Python 3 TESTS 71 889 19456000 2100
37783924 belkka E April 30, 2018, 11:40 p.m. OK Python 3 TESTS 71 950 36966400 2100
44703875 Is_Yar E Oct. 22, 2018, 3:56 p.m. OK Python 3 TESTS 71 967 19251200 2100
37888339 Yee_172 E May 4, 2018, 5:05 p.m. OK Python 3 TESTS 71 967 37888000 2100
38011151 freedom_dr E May 8, 2018, 4:16 a.m. OK Python 3 TESTS 71 997 37785600 2100
37921225 kichi E May 6, 2018, 6:52 a.m. OK Rust TESTS 71 234 7680000 2100

remove filters

Back to search problems