Educational Codeforces Round 99 (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
1455 Educational Codeforces Round 99 (Rated for Div. 2) FINISHED False 7200 130605911 Nov. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 426 ) G Forbidden Value PROGRAMMING data structures

B'Polycarp is editing a complicated computer program. First, variable x is declared and assigned to 0 . Then there are instructions of two types: if blocks can contain set instructions and other if blocks inside them. However, when the value of x gets assigned to s , the computer breaks and immediately catches fire. Polycarp wants to prevent that from happening and spend as few burles as possible. What is the minimum amount of burles he can spend on removing set instructions to never assign x to s ? The first line contains two integers n and s ( 1 <= n <= 2 cdot 10^5 , 1 <= s <= 2 cdot 10^5 ) -- the number of lines in the program and the forbidden value of x . The following n lines describe the program. Each line is one of three types: Each if instruction is matched by an end instruction. Each end instruction has an if instruction to match. Print a single integer -- the minimum amount of burles Polycarp can spend on removing set instructions to never assign x to s . '...

Tutorials

85186

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
100075458 huanggs G Dec. 1, 2020, 2:43 a.m. OK GNU C++11 TESTS 56 342 111104000
100075737 MrGary G Dec. 1, 2020, 2:52 a.m. OK GNU C++11 TESTS 56 436 22016000
100075389 huanggs G Dec. 1, 2020, 2:41 a.m. OK GNU C++11 TESTS 56 467 177664000
100075018 huanggs G Dec. 1, 2020, 2:28 a.m. OK GNU C++11 TESTS 56 483 110387200
100072890 AkaiLemon G Dec. 1, 2020, 12:49 a.m. OK GNU C++14 TESTS 56 217 22118400
100058390 sh1194 G Nov. 30, 2020, 5:33 p.m. OK GNU C++14 TESTS 56 389 13824000
100049336 axp G Nov. 30, 2020, 4:29 p.m. OK GNU C++14 TESTS 56 390 13824000
100062136 AlexFetisov G Nov. 30, 2020, 6:33 p.m. OK GNU C++17 TESTS 56 217 21094400
100065250 TestAnswersHere G Nov. 30, 2020, 7:37 p.m. OK GNU C++17 TESTS 56 218 24576000
100065270 TestAnswersHere G Nov. 30, 2020, 7:37 p.m. OK GNU C++17 TESTS 56 280 24883200
100055323 Yousef_Salama G Nov. 30, 2020, 4:56 p.m. OK GNU C++17 TESTS 56 280 24883200
100064613 LeoPro G Nov. 30, 2020, 7:23 p.m. OK GNU C++17 TESTS 56 373 13721600
100065259 TestAnswersHere G Nov. 30, 2020, 7:37 p.m. OK GNU C++17 TESTS 56 389 109363200
100053729 Lixiaoban G Nov. 30, 2020, 4:43 p.m. OK GNU C++17 TESTS 56 389 109363200
100060695 jairadheyshyam G Nov. 30, 2020, 6:08 p.m. OK GNU C++17 TESTS 56 420 109363200
100058889 XLor G Nov. 30, 2020, 5:40 p.m. OK GNU C++17 TESTS 56 468 13414400
100059010 XLor G Nov. 30, 2020, 5:42 p.m. OK GNU C++17 TESTS 56 482 13414400
100064160 Geothermal G Nov. 30, 2020, 7:13 p.m. OK GNU C++17 (64) TESTS 56 217 39321600
100055077 natsugiri G Nov. 30, 2020, 4:54 p.m. OK GNU C++17 (64) TESTS 56 249 18841600
100053452 saketh G Nov. 30, 2020, 4:42 p.m. OK GNU C++17 (64) TESTS 56 265 31027200
100046402 Um_nik G Nov. 30, 2020, 4:22 p.m. OK GNU C++17 (64) TESTS 56 482 28262400
100076613 emengdeath G Dec. 1, 2020, 3:17 a.m. OK GNU C++17 (64) TESTS 56 499 16384000

remove filters

Back to search problems