Educational Codeforces Round 95 (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
1418 Educational Codeforces Round 95 (Rated for Div. 2) FINISHED False 7200 137258711 Sept. 14, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21060 ) C Mortal Kombat Tower PROGRAMMING dp greedy

B"You and your friend are playing the game Mortal Kombat XI. You are trying to pass a challenge tower. There are n bosses in this tower, numbered from 1 to n . The type of the i -th boss is a_i . If the i -th boss is easy then its type is a_i = 0 , otherwise this boss is hard and its type is a_i = 1 . During one session, either you or your friend can kill one or two bosses (neither you nor your friend can skip the session, so the minimum number of bosses killed during one session is at least one). After your friend session, your session begins, then again your friend session begins, your session begins, and so on. The first session is your friend's session. Your friend needs to get good because he can't actually kill hard bosses. To kill them, he uses skip points. One skip point can be used to kill one hard boss. Your task is to find the minimum number of skip points your friend needs to use so you and your friend kill all n bosses in the given order. For example: suppose n = 8 , a = [1, 0, 1, 1, 0, 1, 1, 1] . Then the best course of action is the following: You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 2 cdot 10^4 ) -- the number of test cases. Then t test cases follow. The first line of the test case contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of bosses. The second line of the test case contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 1 ), where a_i is the type of the i -th boss. It is guaranteed that the sum of n does not exceed 2 cdot 10^5 ( sum n <= 2 cdot 10^5 ). For each test case, print the answer: the minimum number of skip points your friend needs to use so you and your friend kill all n bosses in the given order. "...

Tutorials

Unofficial Editorial for Educational Round 95 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
92869157 saiduzzamanzishan C Sept. 15, 2020, 3:37 a.m. OK Clang++17 Diagnostics TESTS 14 623 2867200
92868584 saiduzzamanzishan C Sept. 15, 2020, 3:22 a.m. OK Clang++17 Diagnostics TESTS 14 670 2867200
92833645 daut-dlang C Sept. 14, 2020, 4:08 p.m. OK D TESTS 13 78 24371200
92868265 Wenbo888 C Sept. 15, 2020, 3:13 a.m. OK GNU C11 TESTS 14 93 2355200
92842909 Sampathkumar C Sept. 14, 2020, 4:58 p.m. OK GNU C11 TESTS 13 93 20787200
92836126 QAQ_hua C Sept. 14, 2020, 4:19 p.m. OK GNU C11 TESTS 13 109 1228800
92844151 rioma_san C Sept. 14, 2020, 5:10 p.m. OK GNU C11 TESTS 13 109 18432000
92833284 jszz C Sept. 14, 2020, 4:06 p.m. OK GNU C++11 TESTS 13 30 2457600
92866709 zhtjtcz C Sept. 15, 2020, 2:25 a.m. OK GNU C++11 TESTS 14 30 3276800
92864454 Minun. C Sept. 15, 2020, 1 a.m. OK GNU C++11 TESTS 14 30 28057600
92874926 wddmahe C Sept. 15, 2020, 5:49 a.m. OK GNU C++11 TESTS 14 31 819200
92832191 CeloriaQuQ C Sept. 14, 2020, 4:02 p.m. OK GNU C++11 TESTS 13 31 921600
92830149 2114992323 C Sept. 14, 2020, 3:54 p.m. OK GNU C++11 TESTS 13 31 2457600
92870730 Payphone--X C Sept. 15, 2020, 4:18 a.m. OK GNU C++11 TESTS 14 31 2457600
92870618 Jiang-Shan C Sept. 15, 2020, 4:16 a.m. OK GNU C++11 TESTS 14 31 2457600
92874681 _Backl1ght C Sept. 15, 2020, 5:44 a.m. OK GNU C++11 TESTS 14 31 7065600
92839505 hxfree C Sept. 14, 2020, 4:33 p.m. OK GNU C++11 TESTS 13 46 819200
92835330 dy2000 C Sept. 14, 2020, 4:15 p.m. OK GNU C++14 TESTS 13 46 1638400
92836455 elvahs C Sept. 14, 2020, 4:20 p.m. OK GNU C++14 TESTS 13 46 2457600
92858192 Akul_Swamy C Sept. 14, 2020, 8:21 p.m. OK GNU C++14 TESTS 14 46 2457600
92875593 A_Jyo C Sept. 15, 2020, 6:02 a.m. OK GNU C++14 TESTS 14 46 2457600
92844240 __rYu__ C Sept. 14, 2020, 5:11 p.m. OK GNU C++14 TESTS 13 46 20889600
92869776 atharmohd C Sept. 15, 2020, 3:54 a.m. OK GNU C++14 TESTS 14 61 819200
92830736 chocolatie C Sept. 14, 2020, 3:57 p.m. OK GNU C++14 TESTS 13 61 819200
92830902 _ctrlC_ctrlV C Sept. 14, 2020, 3:57 p.m. OK GNU C++14 TESTS 13 61 819200
92857608 LoneAssailant C Sept. 14, 2020, 8:06 p.m. OK GNU C++14 TESTS 14 61 1638400
92828489 LotusIR C Sept. 14, 2020, 3:49 p.m. OK GNU C++14 TESTS 13 61 1638400
92864765 newuser24324 C Sept. 15, 2020, 1:13 a.m. OK GNU C++17 TESTS 14 46 0
92829438 kiwww125 C Sept. 14, 2020, 3:52 p.m. OK GNU C++17 TESTS 13 46 819200
92835579 hust_zhaoziren C Sept. 14, 2020, 4:16 p.m. OK GNU C++17 TESTS 13 46 819200
92848164 RedDog739 C Sept. 14, 2020, 5:54 p.m. OK GNU C++17 TESTS 13 46 819200
92862484 MXR612 C Sept. 14, 2020, 11:14 p.m. OK GNU C++17 TESTS 14 46 2355200
92860053 add1ctus C Sept. 14, 2020, 9:15 p.m. OK GNU C++17 TESTS 14 46 2355200
92863136 wlzhouzhuan C Sept. 14, 2020, 11:53 p.m. OK GNU C++17 TESTS 14 46 2457600
92874671 nayan_000 C Sept. 15, 2020, 5:44 a.m. OK GNU C++17 TESTS 14 46 2662400
92866361 Jingyuan_Li C Sept. 15, 2020, 2:14 a.m. OK GNU C++17 TESTS 14 46 3993600
92870367 rahulgoel C Sept. 15, 2020, 4:10 a.m. OK GNU C++17 TESTS 14 46 4812800
92871048 R.sam_10 C Sept. 15, 2020, 4:27 a.m. OK GNU C++17 (64) TESTS 14 46 819200
92863138 Seeking41900 C Sept. 14, 2020, 11:53 p.m. OK GNU C++17 (64) TESTS 14 46 819200
92833555 abdisonfire C Sept. 14, 2020, 4:07 p.m. OK GNU C++17 (64) TESTS 13 46 819200
92847463 ffiq C Sept. 14, 2020, 5:46 p.m. OK GNU C++17 (64) TESTS 13 46 1638400
92843791 Jobaidul C Sept. 14, 2020, 5:07 p.m. OK GNU C++17 (64) TESTS 13 46 1638400
92842479 Jobaidul C Sept. 14, 2020, 4:54 p.m. OK GNU C++17 (64) TESTS 13 46 1638400
92851218 Vuset_Orucov C Sept. 14, 2020, 6:29 p.m. OK GNU C++17 (64) TESTS 13 46 1638400
92851348 conquizztador C Sept. 14, 2020, 6:31 p.m. OK GNU C++17 (64) TESTS 13 46 1638400
92869244 sayan_244 C Sept. 15, 2020, 3:39 a.m. OK GNU C++17 (64) TESTS 14 46 1638400
92875153 arjunbangari C Sept. 15, 2020, 5:54 a.m. OK GNU C++17 (64) TESTS 14 46 1638400
92845674 synapse C Sept. 14, 2020, 5:26 p.m. OK Go TESTS 13 108 52428800
92830728 synapse C Sept. 14, 2020, 3:57 p.m. OK Go TESTS 13 124 104857600
92846360 Apass.Jack C Sept. 14, 2020, 5:33 p.m. OK Java 11 TESTS 13 186 0
92874908 Akash_kunwar C Sept. 15, 2020, 5:49 a.m. OK Java 11 TESTS 14 187 0
92842928 nalin_1000101 C Sept. 14, 2020, 4:59 p.m. OK Java 11 TESTS 13 202 3072000
92849963 shrey_shreyansh C Sept. 14, 2020, 6:14 p.m. OK Java 11 TESTS 13 217 0
92864541 Ste C Sept. 15, 2020, 1:04 a.m. OK Java 11 TESTS 14 218 3072000
92855679 DATVN C Sept. 14, 2020, 7:34 p.m. OK Java 11 TESTS 14 218 8396800
92875072 Akash_kunwar C Sept. 15, 2020, 5:52 a.m. OK Java 11 TESTS 14 218 14950400
92828479 baron_ C Sept. 14, 2020, 3:49 p.m. OK Java 11 TESTS 13 233 11059200
92854913 skittles1412 C Sept. 14, 2020, 7:22 p.m. OK Java 11 TESTS 14 234 28774400
92874983 chris_11 C Sept. 15, 2020, 5:50 a.m. OK Java 11 TESTS 14 249 11059200
92851067 GortenMorsa C Sept. 14, 2020, 6:27 p.m. OK Java 8 TESTS 13 124 0
92830126 tushar24 C Sept. 14, 2020, 3:54 p.m. OK Java 8 TESTS 13 124 16691200
92840351 karthikch C Sept. 14, 2020, 4:37 p.m. OK Java 8 TESTS 13 139 0
92840214 vskeerthi C Sept. 14, 2020, 4:37 p.m. OK Java 8 TESTS 13 140 0
92839061 pavel.v.shlyk C Sept. 14, 2020, 4:31 p.m. OK Java 8 TESTS 13 140 0
92865865 MartyByrde C Sept. 15, 2020, 1:54 a.m. OK Java 8 TESTS 14 140 13312000
92840425 nietzschewalrus779 C Sept. 14, 2020, 4:38 p.m. OK Java 8 TESTS 13 155 1331200
92829539 lzhang C Sept. 14, 2020, 3:52 p.m. OK Java 8 TESTS 13 155 2457600
92829872 ImFish C Sept. 14, 2020, 3:53 p.m. OK Java 8 TESTS 13 155 2457600
92833717 ashraybharambe C Sept. 14, 2020, 4:08 p.m. OK Java 8 TESTS 13 155 10240000
92866070 Spheniscine C Sept. 15, 2020, 2:03 a.m. OK Kotlin TESTS 14 124 0
92866775 Spheniscine C Sept. 15, 2020, 2:27 a.m. OK Kotlin TESTS 14 140 0
92829121 sid9406 C Sept. 14, 2020, 3:51 p.m. OK Kotlin TESTS 13 186 18432000
92831354 hhsaffar C Sept. 14, 2020, 3:59 p.m. OK Mono C# TESTS 13 124 14540800
92860329 orloffm C Sept. 14, 2020, 9:24 p.m. OK Mono C# TESTS 14 217 16588800
92828383 dddttdCF C Sept. 14, 2020, 3:48 p.m. OK MS C++ 2017 TESTS 13 77 819200
92874680 rhksdn6227 C Sept. 15, 2020, 5:44 a.m. OK MS C++ 2017 TESTS 14 124 819200
92835361 0Mordecai0 C Sept. 14, 2020, 4:15 p.m. OK MS C++ 2017 TESTS 13 124 1433600
92843314 Myao C Sept. 14, 2020, 5:03 p.m. OK MS C++ 2017 TESTS 13 187 3174400
92830381 ykmeningslost C Sept. 14, 2020, 3:55 p.m. OK MS C++ 2017 TESTS 13 202 1638400
92866831 Biang-Biang C Sept. 15, 2020, 2:29 a.m. OK MS C++ 2017 TESTS 14 202 2457600
92851409 ustaritz C Sept. 14, 2020, 6:32 p.m. OK MS C++ 2017 TESTS 14 202 2457600
92835881 shacastic C Sept. 14, 2020, 4:17 p.m. OK MS C++ 2017 TESTS 13 202 4812800
92856890 TheSherlockHomie C Sept. 14, 2020, 7:52 p.m. OK MS C++ 2017 TESTS 14 218 0
92835654 define_chan C Sept. 14, 2020, 4:16 p.m. OK MS C++ 2017 TESTS 13 670 8806400
92850575 tutai C Sept. 14, 2020, 6:21 p.m. OK Node.js TESTS 13 296 26521600
92842824 realnimish C Sept. 14, 2020, 4:58 p.m. OK PyPy 2 TESTS 13 140 8601600
92863587 bit_2 C Sept. 15, 2020, 12:17 a.m. OK PyPy 3 TESTS 14 218 13824000
92828671 nikeshthapa255 C Sept. 14, 2020, 3:49 p.m. OK PyPy 3 TESTS 13 218 17408000
92842612 FlakeLCR C Sept. 14, 2020, 4:56 p.m. OK PyPy 3 TESTS 13 218 18534400
92841616 ayaoni C Sept. 14, 2020, 4:47 p.m. OK PyPy 3 TESTS 13 233 12595200
92863852 bit_2 C Sept. 15, 2020, 12:31 a.m. OK PyPy 3 TESTS 14 233 13824000
92846774 Naman_Tyagi C Sept. 14, 2020, 5:37 p.m. OK PyPy 3 TESTS 13 234 13209600
92846633 manikjain4 C Sept. 14, 2020, 5:36 p.m. OK PyPy 3 TESTS 13 248 13004800
92833985 kazukun1311 C Sept. 14, 2020, 4:09 p.m. OK PyPy 3 TESTS 13 264 16486400
92828320 awasthishubh C Sept. 14, 2020, 3:48 p.m. OK PyPy 3 TESTS 13 280 14540800
92840741 pavanbsp C Sept. 14, 2020, 4:40 p.m. OK PyPy 3 TESTS 13 280 18636800
92829105 manjeet404 C Sept. 14, 2020, 3:51 p.m. OK Python 2 TESTS 13 405 8294400
92850851 supachai_pay C Sept. 14, 2020, 6:25 p.m. OK Python 2 TESTS 13 467 23244800
92858899 thepixelcoder C Sept. 14, 2020, 8:39 p.m. OK Python 3 TESTS 14 218 3174400
92874791 noisegain C Sept. 15, 2020, 5:47 a.m. OK Python 3 TESTS 14 233 3174400
92866170 pppss C Sept. 15, 2020, 2:07 a.m. OK Python 3 TESTS 14 264 3174400
92849845 Koushik_Sahu C Sept. 14, 2020, 6:12 p.m. OK Python 3 TESTS 13 280 3584000
92874968 mahedi_hasan_23 C Sept. 15, 2020, 5:50 a.m. OK Python 3 TESTS 14 280 3993600
92872547 Vjoshi C Sept. 15, 2020, 5:02 a.m. OK Python 3 TESTS 14 280 3993600
92847826 sh1194 C Sept. 14, 2020, 5:50 p.m. OK Python 3 TESTS 13 295 3993600
92842959 roshan84ya C Sept. 14, 2020, 4:59 p.m. OK Python 3 TESTS 13 311 3993600
92843046 Abrar_Hussain_Dar C Sept. 14, 2020, 5 p.m. OK Python 3 TESTS 13 326 3993600
92848810 Shaydiesin C Sept. 14, 2020, 6:01 p.m. OK Python 3 TESTS 13 327 3891200
92865461 bqn C Sept. 15, 2020, 1:40 a.m. OK Rust TESTS 14 218 6656000
92865516 bqn C Sept. 15, 2020, 1:42 a.m. OK Rust TESTS 14 249 6758400

remove filters

Back to search problems