Educational Codeforces Round 79 (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
1279 Educational Codeforces Round 79 (Rated for Div. 2) FINISHED False 7200 154365599 Dec. 27, 2019, 2:40 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 900 ) F New Year and Handle Change PROGRAMMING binary search dp 2800

B"New Year is getting near. So it's time to change handles on codeforces. Mishka wants to change his handle but in such a way that people would not forget who he is. To make it work, he only allowed to change letters case. More formally, during one handle change he can choose any segment of his handle [i; i + l - 1] and apply tolower or toupper to all letters of his handle on this segment (more fomally, replace all uppercase letters with corresponding lowercase or vice versa). The length l is fixed for all changes. Because it is not allowed to change codeforces handle too often, Mishka can perform at most k such operations. What is the minimum value of min(lower, upper) (where lower is the number of lowercase letters, and upper is the number of uppercase letters) can be obtained after optimal sequence of changes? The first line of the input contains three integers n, k and l ( 1 <= n, k, l <= 10^6, l <= n) -- the length of Mishka's handle, the number of changes and the length of the segment. The second line of the input contains one string s , consisting of n lowercase and uppercase Latin letters -- Mishka's handle. Print one integer -- the minimum value of min(lower, upper) after that Mishka change his handle at most k times in a way described in the problem statement. "...

Tutorials

Educational Codeforces Round 79 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67798680 rainboy F Dec. 28, 2019, 5:07 p.m. OK GNU C11 TESTS 91 78 14028800 2800
68564129 mahir01 F Jan. 10, 2020, 8:09 p.m. OK GNU C11 TESTS 91 187 11571200 2800
67764903 yasugongshang F Dec. 28, 2019, 2:52 a.m. OK GNU C++11 TESTS 91 78 13004800 2800
67796232 ekaerovets F Dec. 28, 2019, 4:47 p.m. OK GNU C++11 TESTS 91 78 14131200 2800
67859571 stratoes F Dec. 29, 2019, 7:34 a.m. OK GNU C++11 TESTS 91 109 13004800 2800
67766133 shuashuawan F Dec. 28, 2019, 3:56 a.m. OK GNU C++11 TESTS 91 124 25088000 2800
67859089 hsk142857 F Dec. 29, 2019, 7:20 a.m. OK GNU C++11 TESTS 91 156 14131200 2800
68058801 Tweetexas F Jan. 2, 2020, 1:03 a.m. OK GNU C++11 TESTS 91 171 12902400 2800
67763755 Fairy_Tale F Dec. 28, 2019, 1:37 a.m. OK GNU C++11 TESTS 91 171 21094400 2800
68062569 forxen F Jan. 2, 2020, 5:28 a.m. OK GNU C++11 TESTS 91 187 13004800 2800
67953294 dysyn1314 F Dec. 30, 2019, 8:35 a.m. OK GNU C++11 TESTS 91 187 14131200 2800
68062889 frodakcin F Jan. 2, 2020, 5:44 a.m. OK GNU C++11 TESTS 91 202 12902400 2800
67939623 Orz_c---8 F Dec. 29, 2019, 11:06 p.m. OK GNU C++14 TESTS 91 77 14028800 2800
67871065 Orz_c---8 F Dec. 29, 2019, 11:29 a.m. OK GNU C++14 TESTS 91 78 14028800 2800
67758886 silxi F Dec. 27, 2019, 8:50 p.m. OK GNU C++14 TESTS 91 108 26112000 2800
68155668 Ice_Cream F Jan. 4, 2020, 8:51 a.m. OK GNU C++14 TESTS 91 109 13209600 2800
67866674 yogahmad77 F Dec. 29, 2019, 9:56 a.m. OK GNU C++14 TESTS 91 109 14131200 2800
67766137 Origenes F Dec. 28, 2019, 3:57 a.m. OK GNU C++14 TESTS 91 140 10137600 2800
68635694 AMnu F Jan. 12, 2020, 5:42 a.m. OK GNU C++14 TESTS 91 155 10035200 2800
67779550 wiwitrifai F Dec. 28, 2019, 10:24 a.m. OK GNU C++14 TESTS 91 155 13004800 2800
67760193 nikolapesic2802 F Dec. 27, 2019, 9:41 p.m. OK GNU C++14 TESTS 91 155 18124800 2800
67760143 nikolapesic2802 F Dec. 27, 2019, 9:39 p.m. OK GNU C++14 TESTS 91 156 18124800 2800
67795095 user202729_ F Dec. 28, 2019, 4:16 p.m. OK GNU C++17 TESTS 91 109 9011200 2800
67794916 user202729_ F Dec. 28, 2019, 4:12 p.m. OK GNU C++17 TESTS 91 109 9011200 2800
67752838 I_love_chickpea F Dec. 27, 2019, 6:22 p.m. OK GNU C++17 TESTS 91 109 13004800 2800
68480878 gyz_gyz F Jan. 10, 2020, 7:42 a.m. OK GNU C++17 TESTS 91 109 13004800 2800
68759938 toi333 F Jan. 14, 2020, 8:27 a.m. OK GNU C++17 TESTS 91 109 13107200 2800
67767112 Lawali F Dec. 28, 2019, 4:45 a.m. OK GNU C++17 TESTS 91 109 22118400 2800
67756729 eriksuenderhauf F Dec. 27, 2019, 7:50 p.m. OK GNU C++17 TESTS 91 124 21094400 2800
67756705 eriksuenderhauf F Dec. 27, 2019, 7:49 p.m. OK GNU C++17 TESTS 91 139 21094400 2800
67756201 eriksuenderhauf F Dec. 27, 2019, 7:37 p.m. OK GNU C++17 TESTS 91 140 21094400 2800
67755448 eriksuenderhauf F Dec. 27, 2019, 7:20 p.m. OK GNU C++17 TESTS 91 140 33792000 2800
67798671 Dukkha F Dec. 28, 2019, 5:07 p.m. OK Java 11 TESTS 91 389 17612800 2800
68683097 Suzukaze F Jan. 13, 2020, 1 a.m. OK Java 11 TESTS 91 654 10752000 2800
67840693 SpargelTarzan F Dec. 28, 2019, 7:28 p.m. OK Java 8 TESTS 91 483 11673600 2800
67762967 dududumALT F Dec. 28, 2019, 12:44 a.m. OK Java 8 TESTS 91 561 15462400 2800
67780032 BaZ_ F Dec. 28, 2019, 10:35 a.m. OK Java 8 TESTS 91 608 34816000 2800
67762452 Xylenox F Dec. 28, 2019, 12:02 a.m. OK Java 8 TESTS 91 623 15052800 2800
67949294 dalt F Dec. 30, 2019, 6:56 a.m. OK Java 8 TESTS 91 624 72704000 2800
67763002 I_love_Harpae F Dec. 28, 2019, 12:46 a.m. OK Java 8 TESTS 91 732 15462400 2800
67949210 dalt F Dec. 30, 2019, 6:54 a.m. OK Java 8 TESTS 91 779 72704000 2800
67743818 uwi F Dec. 27, 2019, 4:33 p.m. OK Java 8 TESTS 91 998 8089600 2800
67761210 pajenegod F Dec. 27, 2019, 10:32 p.m. OK PyPy 2 TESTS 91 748 36454400 2800
67761202 pajenegod F Dec. 27, 2019, 10:32 p.m. OK PyPy 2 TESTS 91 794 38195200 2800
67761143 pajenegod F Dec. 27, 2019, 10:29 p.m. OK PyPy 2 TESTS 91 1871 38195200 2800
67760818 pajenegod F Dec. 27, 2019, 10:08 p.m. OK PyPy 2 TESTS 91 1887 38195200 2800
69377466 bmerry F Jan. 22, 2020, 6:35 p.m. OK Rust TESTS 91 171 23347200 2800

remove filters

Back to search problems