Codeforces Round 543 (Div. 1, based on Technocup 2019 Final Round)

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
1120 Codeforces Round 543 (Div. 1, based on Technocup 2019 Final Round) FINISHED False 7200 180195899 March 3, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1643 ) A Diana and Liana PROGRAMMING greedy implementation two pointers 2200

B'At the first holiday in spring, the town Shortriver traditionally conducts a flower festival. Townsfolk wear traditional wreaths during these festivals. Each wreath contains exactly k flowers. The work material for the wreaths for all n citizens of Shortriver is cut from the longest flowered liana that grew in the town that year. Liana is a sequence a_1 , a_2 , ..., a_m , where a_i is an integer that denotes the type of flower at the position i . This year the liana is very long ( m ge n cdot k ), and that means every citizen will get a wreath. Very soon the liana will be inserted into a special cutting machine in order to make work material for wreaths. The machine works in a simple manner: it cuts k flowers from the beginning of the liana, then another k flowers and so on. Each such piece of k flowers is called a workpiece. The machine works until there are less than k flowers on the liana. Diana has found a weaving schematic for the most beautiful wreath imaginable. In order to weave it, k flowers must contain flowers of types b_1 , b_2 , ..., b_s , while other can be of any type. If a type appears in this sequence several times, there should be at least that many flowers of that type as the number of occurrences of this flower in the sequence. The order of the flowers in a workpiece does not matter. Diana has a chance to remove some flowers from the liana before it is inserted into the cutting machine. She can remove flowers from any part of the liana without breaking liana into pieces. If Diana removes too many flowers, it may happen so that some of the citizens do not get a wreath. Could some flowers be removed from the liana so that at least one workpiece would conform to the schematic and machine would still be able to create at least n workpieces? The first line contains four integers m , k , n and s ( 1 <= n, k, m <= 5 cdot 10'...

Tutorials

Разбор задач финала Технокубка 2019 и Codeforces Round #543

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50749898 rainboy A March 3, 2019, 4:22 p.m. OK GNU C11 TESTS 50 1388 7987200 2200
54243970 vjudge2 A May 16, 2019, 2:06 p.m. OK GNU C++11 TESTS 50 46 7987200 2200
50744487 1919810 A March 3, 2019, 3:54 p.m. OK GNU C++11 TESTS 50 46 8704000 2200
64507114 QAQAutoMaton A Nov. 8, 2019, 7:21 a.m. OK GNU C++11 TESTS 50 46 10240000 2200
51924817 luogu_bot5 A March 28, 2019, 6:57 a.m. OK GNU C++11 TESTS 50 46 10752000 2200
51154324 vicor A March 11, 2019, 9:46 a.m. OK GNU C++11 TESTS 50 46 12083200 2200
50783948 Sooke A March 4, 2019, 12:36 p.m. OK GNU C++11 TESTS 50 46 16076800 2200
54433296 SoiMae A May 21, 2019, 2:37 a.m. OK GNU C++11 TESTS 50 46 16076800 2200
51353818 hk_cnyali A March 16, 2019, 2:09 a.m. OK GNU C++11 TESTS 50 62 6041600 2200
51257609 yybyyb A March 13, 2019, 11:58 a.m. OK GNU C++11 TESTS 50 62 8089600 2200
50803098 ForwardFuture A March 5, 2019, 2:29 a.m. OK GNU C++11 TESTS 50 62 8499200 2200
51921997 Nostalgically A March 28, 2019, 5:14 a.m. OK GNU C++14 TESTS 50 61 10752000 2200
52083555 q234rty A March 31, 2019, 1:16 p.m. OK GNU C++14 TESTS 50 78 38092800 2200
50775335 mayaohua2003 A March 4, 2019, 8:07 a.m. OK GNU C++14 TESTS 50 124 6041600 2200
50772101 Newusers A March 4, 2019, 5:45 a.m. OK GNU C++14 TESTS 50 124 6041600 2200
53317380 ragnarosS A April 26, 2019, 11:10 a.m. OK GNU C++14 TESTS 50 124 6041600 2200
50780265 rdd6584 A March 4, 2019, 11:01 a.m. OK GNU C++14 TESTS 50 124 6144000 2200
50751230 TiChuot97 A March 3, 2019, 4:32 p.m. OK GNU C++14 TESTS 50 124 7577600 2200
50760276 Luma A March 3, 2019, 7 p.m. OK GNU C++14 TESTS 50 124 7987200 2200
52790059 zerotohero A April 15, 2019, 4:48 p.m. OK GNU C++14 TESTS 50 124 9625600 2200
64204784 follower0523 A Nov. 4, 2019, 12:32 p.m. OK GNU C++14 TESTS 50 124 10035200 2200
68124586 user202729_ A Jan. 3, 2020, 2:40 p.m. OK GNU C++17 TESTS 50 46 3993600 2200
53395776 HatsuneMikuo A April 27, 2019, 9:06 a.m. OK GNU C++17 TESTS 50 62 14848000 2200
53389944 interestingLSY A April 27, 2019, 6:28 a.m. OK GNU C++17 TESTS 50 77 14848000 2200
50753602 KillerX A March 3, 2019, 4:55 p.m. OK GNU C++17 TESTS 50 108 40755200 2200
50768794 yum A March 4, 2019, 2 a.m. OK GNU C++17 TESTS 50 124 8089600 2200
50798985 SebaMarin A March 4, 2019, 8:55 p.m. OK GNU C++17 TESTS 50 124 9216000 2200
68722767 yosupo A Jan. 13, 2020, 4:51 p.m. OK GNU C++17 TESTS 50 124 22016000 2200
51577203 qinyuyang A March 20, 2019, 1:19 p.m. OK GNU C++17 TESTS 50 124 80179200 2200
51577141 qyy2003 A March 20, 2019, 1:18 p.m. OK GNU C++17 TESTS 50 124 80179200 2200
50749721 Gregory A March 3, 2019, 4:21 p.m. OK GNU C++17 TESTS 50 139 4096000 2200
64887484 dalt A Nov. 14, 2019, 1:34 p.m. OK Java 8 TESTS 50 140 35020800 2200
60701079 gamesterrex A Sept. 17, 2019, 12:30 a.m. OK Java 8 TESTS 50 155 0 2200
50745780 ilyakor A March 3, 2019, 3:59 p.m. OK Java 8 TESTS 50 155 7475200 2200
50760249 fnch A March 3, 2019, 6:59 p.m. OK Java 8 TESTS 50 171 7782400 2200
50799679 4mda4mda A March 4, 2019, 9:38 p.m. OK Java 8 TESTS 50 186 14643200 2200
50748348 uwi A March 3, 2019, 4:12 p.m. OK Java 8 TESTS 50 187 0 2200
50747460 Musin A March 3, 2019, 4:07 p.m. OK Java 8 TESTS 50 202 14745600 2200
51442245 xodiac A March 18, 2019, 10:41 a.m. OK Java 8 TESTS 50 202 15052800 2200
65463533 ijxjdjd A Nov. 21, 2019, 4:18 a.m. OK Java 8 TESTS 50 202 16281600 2200
50759038 danbanica A March 3, 2019, 6:25 p.m. OK Java 8 TESTS 50 202 19763200 2200
61823771 vjudge2 A Oct. 4, 2019, 3:39 a.m. OK MS C++ TESTS 50 139 6041600 2200
50915383 LoneFox A March 7, 2019, 6 a.m. OK MS C++ TESTS 50 139 8089600 2200
62537891 vjudge1 A Oct. 14, 2019, 12:37 a.m. OK MS C++ TESTS 50 140 8499200 2200
62537717 vjudge1 A Oct. 14, 2019, 12:27 a.m. OK MS C++ TESTS 50 156 8499200 2200
62537610 akaCH A Oct. 14, 2019, 12:20 a.m. OK MS C++ TESTS 50 171 8499200 2200
69082764 tarattata1 A Jan. 19, 2020, 7:07 a.m. OK MS C++ TESTS 50 342 4198400 2200
50751415 altunyanv A March 3, 2019, 4:34 p.m. OK MS C++ 2017 TESTS 50 358 7987200 2200
53265706 menjiantong A April 25, 2019, 1:16 a.m. OK MS C++ 2017 TESTS 50 358 29286400 2200
52027750 underkarma A March 30, 2019, 3:51 p.m. OK MS C++ 2017 TESTS 50 452 43827200 2200
51362677 supachai_pay A March 16, 2019, 8:02 a.m. OK PyPy 2 TESTS 50 233 31027200 2200
50748220 pajenegod A March 3, 2019, 4:11 p.m. OK PyPy 2 TESTS 50 280 28979200 2200
50751228 Nika86 A March 3, 2019, 4:32 p.m. OK Python 2 TESTS 50 1169 28672000 2200
50996837 gerw A March 8, 2019, 4:26 a.m. OK Python 3 TESTS 50 1263 31539200 2200

remove filters

Back to search problems