Educational Codeforces Round 93 (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
1398 Educational Codeforces Round 93 (Rated for Div. 2) FINISHED False 7200 139764263 Aug. 14, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2449 ) E Two Types of Spells PROGRAMMING binary search data structures greedy implementation math sortings

B'Polycarp plays a computer game (yet again). In this game, he fights monsters using magic spells. There are two types of spells: fire spell of power x deals x damage to the monster, and lightning spell of power y deals y damage to the monster and doubles the damage of the next spell Polycarp casts. Each spell can be cast only once per battle, but Polycarp can cast them in any order. For example, suppose that Polycarp knows three spells: a fire spell of power 5 , a lightning spell of power 1 , and a lightning spell of power 8 . There are 6 ways to choose the order in which he casts the spells: Initially, Polycarp knows 0 spells. His spell set changes n times, each time he either learns a new spell or forgets an already known one. After each change, calculate the maximum possible damage Polycarp may deal using the spells he knows. The first line contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of changes to the spell set. Each of the next n lines contains two integers tp and d ( 0 <= tp_i <= 1 ; -10^9 <= d <= 10^9 ; d_i neq 0 ) -- the description of the change. If tp_i if equal to 0 , then Polycarp learns (or forgets) a fire spell, otherwise he learns (or forgets) a lightning spell. If d_i > 0 , then Polycarp learns a spell of power d_i . Otherwise, Polycarp forgets a spell with power -d_i , and it is guaranteed that he knew that spell before the change. It is guaranteed that the powers of all spells Polycarp knows after each change are different (Polycarp never knows two spells with the same power). After each change, print the maximum damage Polycarp can deal with his current set of spells. '...

Tutorials

Educational Codeforces Round 93 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90510745 Tommy0103 E Aug. 21, 2020, 7:32 a.m. OK GNU C++11 TESTS 50 155 13516800
90501934 huanggs E Aug. 21, 2020, 1:39 a.m. OK GNU C++11 TESTS 50 155 17100800
90210507 ddw E Aug. 17, 2020, 8:45 a.m. OK GNU C++11 TESTS 50 171 5222400
90251309 lee0560 E Aug. 17, 2020, 5:12 p.m. OK GNU C++11 TESTS 50 171 6451200
91010643 mwlc E Aug. 26, 2020, 2:18 a.m. OK GNU C++11 TESTS 50 171 9728000
90793621 Larry0101 E Aug. 24, 2020, 3:59 a.m. OK GNU C++11 TESTS 50 171 13619200
90754263 jgy002 E Aug. 23, 2020, 12:22 p.m. OK GNU C++11 TESTS 50 171 16793600
90757368 luogu_bot5 E Aug. 23, 2020, 1:07 p.m. OK GNU C++11 TESTS 50 186 11878400
90251071 lee0560 E Aug. 17, 2020, 5:09 p.m. OK GNU C++11 TESTS 50 187 6451200
91529945 Youth518 E Sept. 1, 2020, 1:24 a.m. OK GNU C++11 TESTS 50 187 9728000
91613476 Willem E Sept. 2, 2020, 5:29 a.m. OK GNU C++14 TESTS 50 217 13004800
90476167 Untitled2017 E Aug. 20, 2020, 3:25 p.m. OK GNU C++14 TESTS 50 218 9830400
90405458 lavenderwithbluish E Aug. 19, 2020, 4:13 p.m. OK GNU C++14 TESTS 50 218 9830400
90808723 danya090699 E Aug. 24, 2020, 8:33 a.m. OK GNU C++14 TESTS 50 218 16793600
91497089 preetham E Aug. 31, 2020, 1:57 p.m. OK GNU C++14 TESTS 50 233 9830400
91263697 SaiAryan E Aug. 29, 2020, 7:13 a.m. OK GNU C++14 TESTS 50 233 13004800
90474151 Peti E Aug. 20, 2020, 3:03 p.m. OK GNU C++14 TESTS 50 233 13004800
90426871 goatzyq E Aug. 20, 2020, 1:54 a.m. OK GNU C++14 TESTS 50 233 13004800
90662611 pvimal816 E Aug. 22, 2020, 6:55 a.m. OK GNU C++14 TESTS 50 233 13516800
90262468 kasanjo E Aug. 17, 2020, 8:38 p.m. OK GNU C++14 TESTS 50 249 8294400
90716368 KrK E Aug. 22, 2020, 8:42 p.m. OK GNU C++17 TESTS 50 187 10342400
90248016 ulyss E Aug. 17, 2020, 4:27 p.m. OK GNU C++17 TESTS 50 202 10035200
91247497 adnan_toky E Aug. 28, 2020, 11:08 p.m. OK GNU C++17 TESTS 50 217 13004800
90483401 niyaznigmatul E Aug. 20, 2020, 4:57 p.m. OK GNU C++17 TESTS 50 217 13004800
91635324 Iamso E Sept. 2, 2020, 11:23 a.m. OK GNU C++17 TESTS 50 218 6553600
91577185 regex0754 E Sept. 1, 2020, 3:02 p.m. OK GNU C++17 TESTS 50 218 8294400
90856814 sharansh12 E Aug. 24, 2020, 8 p.m. OK GNU C++17 TESTS 50 218 8294400
90702191 rauncreators E Aug. 22, 2020, 4:07 p.m. OK GNU C++17 TESTS 50 218 10342400
90264701 jebostaru E Aug. 17, 2020, 9:45 p.m. OK GNU C++17 TESTS 50 218 13004800
90825129 NonGoxicTum E Aug. 24, 2020, 12:29 p.m. OK GNU C++17 TESTS 50 218 13516800
90769477 Emilan E Aug. 23, 2020, 3:44 p.m. OK GNU C++17 (64) TESTS 50 171 18841600
90368113 harshit15 E Aug. 19, 2020, 7:42 a.m. OK GNU C++17 (64) TESTS 50 171 19353600
90648912 hitonanode E Aug. 22, 2020, 3:14 a.m. OK GNU C++17 (64) TESTS 50 186 14028800
90240554 Pandemic E Aug. 17, 2020, 3:05 p.m. OK GNU C++17 (64) TESTS 50 186 14438400
90382452 sharrad99 E Aug. 19, 2020, 11:13 a.m. OK GNU C++17 (64) TESTS 50 186 19353600
90339574 Fortin E Aug. 18, 2020, 7:10 p.m. OK GNU C++17 (64) TESTS 50 202 12902400
90293046 AGRU E Aug. 18, 2020, 9:10 a.m. OK GNU C++17 (64) TESTS 50 202 17817600
91174936 L_I_Erq34 E Aug. 28, 2020, 2:32 a.m. OK GNU C++17 (64) TESTS 50 202 19353600
91101829 L_I_Erq34 E Aug. 27, 2020, 4:15 a.m. OK GNU C++17 (64) TESTS 50 202 19353600
90429043 vjudge5 E Aug. 20, 2020, 3:11 a.m. OK GNU C++17 (64) TESTS 50 202 19353600
90266631 vlam21 E Aug. 17, 2020, 11:09 p.m. OK Java 11 TESTS 50 498 25804800
90353671 PizzaLovers007 E Aug. 19, 2020, 3:07 a.m. OK Java 11 TESTS 50 576 33075200
90241203 O_E E Aug. 17, 2020, 3:12 p.m. OK Java 8 TESTS 50 483 27955200
90534780 eng_hardik E Aug. 21, 2020, 1:18 p.m. OK Java 8 TESTS 50 498 54169600
90236809 an09mous E Aug. 17, 2020, 2:22 p.m. OK Java 8 TESTS 50 670 47616000
91563177 kumarpritam863 E Sept. 1, 2020, 12:06 p.m. OK Java 8 TESTS 50 685 70860800
91097385 overACer E Aug. 27, 2020, 1:56 a.m. OK Java 8 TESTS 50 1638 10956800
90653272 inesinesines E Aug. 22, 2020, 4:43 a.m. OK MS C++ 2017 TESTS 50 358 16896000
90660483 lsw1028 E Aug. 22, 2020, 6:28 a.m. OK MS C++ 2017 TESTS 50 390 16588800
90439634 IPhO E Aug. 20, 2020, 6:53 a.m. OK PyPy 3 TESTS 50 966 19558400
90421773 IPhO E Aug. 19, 2020, 9:50 p.m. OK PyPy 3 TESTS 50 1013 19251200
90440204 IPhO E Aug. 20, 2020, 7:01 a.m. OK PyPy 3 TESTS 50 1092 19968000
90419499 IPhO E Aug. 19, 2020, 8:31 p.m. OK PyPy 3 TESTS 50 1201 18841600
90337231 __eRRor__ E Aug. 18, 2020, 6:32 p.m. OK PyPy 3 TESTS 50 1263 12902400
90336837 __eRRor__ E Aug. 18, 2020, 6:26 p.m. OK PyPy 3 TESTS 50 1294 12902400
90307326 codershuvo E Aug. 18, 2020, 12:30 p.m. OK PyPy 3 TESTS 50 2089 53043200
90496823 tycyd E Aug. 20, 2020, 9:32 p.m. OK PyPy 3 TESTS 50 3042 108032000
90496782 tycyd E Aug. 20, 2020, 9:31 p.m. OK PyPy 3 TESTS 50 3212 108134400
90418870 IPhO E Aug. 19, 2020, 8:14 p.m. OK PyPy 3 TESTS 50 3400 15564800

remove filters

Back to search problems