Codeforces Round 750 (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
1582 Codeforces Round 750 (Div. 2) FINISHED False 9000 102110063 Oct. 24, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3834 ) E Pchelyonok and Segments PROGRAMMING binary search data structures dp greedy math

B'Pchelyonok decided to give Mila a gift. Pchelenok has already bought an array a of length n , but gifting an array is too common. Instead of that, he decided to gift Mila the segments of that array! Pchelyonok wants his gift to be beautiful, so he decided to choose k non-overlapping segments of the array [l_1,r_1] , [l_2,r_2] , ldots [l_k,r_k] such that: Pchelenok also wants his gift to be as beautiful as possible, so he asks you to find the maximal value of k such that he can give Mila a gift! The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The next 2 cdot t lines contain the descriptions of test cases. The description of each test case consists of two lines. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the length of the array. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ) -- the elements of the array a . It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test case, print the maximum possible value of k . '...

Tutorials

Codeforces Round #750 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132951712 rainboy E Oct. 24, 2021, 5:39 p.m. OK GNU C11 TESTS 25 295 365977600
132928773 zhtt0 E Oct. 24, 2021, 1:18 p.m. OK GNU C++14 TESTS 25 93 5120000
132967128 Suhy_AU_233 E Oct. 24, 2021, 11:08 p.m. OK GNU C++14 TESTS 25 124 2867200
132969775 bkifhr9 E Oct. 25, 2021, 1:16 a.m. OK GNU C++14 TESTS 25 124 3481600
132980367 mehrzad_minaie E Oct. 25, 2021, 5:30 a.m. OK GNU C++14 TESTS 25 171 93696000
132933456 morriskurz E Oct. 24, 2021, 1:57 p.m. OK GNU C++14 TESTS 25 171 122880000
132950649 limbo16 E Oct. 24, 2021, 5:21 p.m. OK GNU C++14 TESTS 25 187 3481600
132952418 Potassium E Oct. 24, 2021, 5:49 p.m. OK GNU C++14 TESTS 25 202 2662400
132930378 ZeldaHuang E Oct. 24, 2021, 1:33 p.m. OK GNU C++14 TESTS 25 202 3891200
132942467 Kayaking E Oct. 24, 2021, 3:31 p.m. OK GNU C++14 TESTS 25 217 202649600
132938516 Joysky E Oct. 24, 2021, 2:47 p.m. OK GNU C++14 TESTS 25 234 8294400
132937893 Ji_Kuai E Oct. 24, 2021, 2:41 p.m. OK GNU C++17 TESTS 25 46 6860800
132934912 LittlePants E Oct. 24, 2021, 2:10 p.m. OK GNU C++17 TESTS 25 155 4300800
132969791 XSEA E Oct. 25, 2021, 1:17 a.m. OK GNU C++17 TESTS 25 156 3481600
132960198 aniks2645 E Oct. 24, 2021, 7:53 p.m. OK GNU C++17 TESTS 25 156 5836800
132959819 aniks2645 E Oct. 24, 2021, 7:45 p.m. OK GNU C++17 TESTS 25 156 5836800
132945976 magnified E Oct. 24, 2021, 4:15 p.m. OK GNU C++17 TESTS 25 171 3891200
132959765 aniks2645 E Oct. 24, 2021, 7:45 p.m. OK GNU C++17 TESTS 25 202 5836800
132955070 skylol E Oct. 24, 2021, 6:28 p.m. OK GNU C++17 TESTS 25 202 6656000
132973479 zero4338 E Oct. 25, 2021, 3:10 a.m. OK GNU C++17 TESTS 25 217 403046400
132962359 arbitrary_coder E Oct. 24, 2021, 8:36 p.m. OK GNU C++17 TESTS 25 218 4710400
132948859 1-gon E Oct. 24, 2021, 4:54 p.m. OK GNU C++17 (64) TESTS 25 62 3686400
132930134 zwuis E Oct. 24, 2021, 1:31 p.m. OK GNU C++17 (64) TESTS 25 78 3993600
132968707 Negativez2 E Oct. 25, 2021, 12:36 a.m. OK GNU C++17 (64) TESTS 25 78 47923200
132937967 kitsune E Oct. 24, 2021, 2:41 p.m. OK GNU C++17 (64) TESTS 25 93 3993600
132964351 DreamingLeaf E Oct. 24, 2021, 9:24 p.m. OK GNU C++17 (64) TESTS 25 93 4096000
132930221 kant97 E Oct. 24, 2021, 1:32 p.m. OK GNU C++17 (64) TESTS 25 93 4403200
132968967 lelbaba E Oct. 25, 2021, 12:46 a.m. OK GNU C++17 (64) TESTS 25 93 10854400
132970113 keenlf E Oct. 25, 2021, 1:29 a.m. OK GNU C++17 (64) TESTS 25 93 11059200
132969975 AutumnKite E Oct. 25, 2021, 1:24 a.m. OK GNU C++17 (64) TESTS 25 109 3276800
132967347 bkifhr6 E Oct. 24, 2021, 11:20 p.m. OK GNU C++17 (64) TESTS 25 124 4403200
132934891 WildHamburger E Oct. 24, 2021, 2:10 p.m. OK GNU C++20 (64) TESTS 25 78 6860800
132981833 bashem E Oct. 25, 2021, 5:55 a.m. OK GNU C++20 (64) TESTS 25 109 3276800
132932507 Alice_Synthesis_Thirty E Oct. 24, 2021, 1:48 p.m. OK GNU C++20 (64) TESTS 25 155 2457600
132933926 s_jaskaran_s E Oct. 24, 2021, 2:01 p.m. OK GNU C++20 (64) TESTS 25 155 4096000
132949421 leanhduy0206 E Oct. 24, 2021, 5:03 p.m. OK GNU C++20 (64) TESTS 25 156 404480000
132949046 ljuba E Oct. 24, 2021, 4:57 p.m. OK GNU C++20 (64) TESTS 25 202 4505600
132942419 Esquire E Oct. 24, 2021, 3:30 p.m. OK GNU C++20 (64) TESTS 25 217 403660800
132951308 alpeevandrey E Oct. 24, 2021, 5:32 p.m. OK GNU C++20 (64) TESTS 25 234 203161600
132967640 coderbd E Oct. 24, 2021, 11:35 p.m. OK GNU C++20 (64) TESTS 25 249 9728000
132941717 hiddenStudent E Oct. 24, 2021, 3:22 p.m. OK GNU C++20 (64) TESTS 25 280 363212800
132940912 procrastinate7 E Oct. 24, 2021, 3:13 p.m. OK Java 11 TESTS 25 436 25088000
132942581 reverenc E Oct. 24, 2021, 3:32 p.m. OK Java 11 TESTS 25 919 536883200
132928487 _merlin_ E Oct. 24, 2021, 1:17 p.m. OK Java 11 TESTS 25 1029 536883200
132940208 Matheolympiade E Oct. 24, 2021, 3:04 p.m. OK Java 11 TESTS 25 1060 536883200
132940783 BeChameleon E Oct. 24, 2021, 3:11 p.m. OK Java 11 TESTS 25 1153 530739200
132938450 beroul E Oct. 24, 2021, 2:46 p.m. OK Java 8 TESTS 25 561 199372800
132948039 thedesalizes E Oct. 24, 2021, 4:43 p.m. OK Java 8 TESTS 25 716 536883200
132950561 Depool E Oct. 24, 2021, 5:20 p.m. OK Java 8 TESTS 25 794 536883200
132930445 Naman_123 E Oct. 24, 2021, 1:33 p.m. OK Java 8 TESTS 25 904 536883200
132938025 beroul E Oct. 24, 2021, 2:42 p.m. OK Java 8 TESTS 25 966 489062400
132928630 medude E Oct. 24, 2021, 1:18 p.m. OK Java 8 TESTS 25 1060 536883200
132927234 medude E Oct. 24, 2021, 1:09 p.m. OK Java 8 TESTS 25 1076 536883200
132937380 beroul E Oct. 24, 2021, 2:35 p.m. OK Java 8 TESTS 25 1154 536883200
132958225 NighTurs E Oct. 24, 2021, 7:17 p.m. OK Java 8 TESTS 25 1185 526745600
132937198 beroul E Oct. 24, 2021, 2:33 p.m. OK Java 8 TESTS 25 1201 536883200
132966700 Denzed E Oct. 24, 2021, 10:48 p.m. OK Kotlin 1.4 TESTS 25 966 387174400
132943080 qualdam E Oct. 24, 2021, 3:38 p.m. OK MS C++ 2017 TESTS 25 904 417075200
132942691 qualdam E Oct. 24, 2021, 3:34 p.m. OK MS C++ 2017 TESTS 25 1170 363520000
132964271 Eldies E Oct. 24, 2021, 9:22 p.m. OK MS C++ 2017 TESTS 25 1216 6144000
132927338 kakel_san E Oct. 24, 2021, 1:09 p.m. OK .NET Core C# TESTS 25 327 33280000
132959926 shehebe E Oct. 24, 2021, 7:48 p.m. OK PyPy 3-64 TESTS 25 998 417075200
132935026 oadey89 E Oct. 24, 2021, 2:11 p.m. OK PyPy 3-64 TESTS 25 1450 446464000
132949465 laplce E Oct. 24, 2021, 5:04 p.m. OK PyPy 3-64 TESTS 25 1481 398643200
132945601 zqx1392 E Oct. 24, 2021, 4:10 p.m. OK PyPy 3-64 TESTS 25 1497 419020800
132958552 Slayer_ E Oct. 24, 2021, 7:22 p.m. OK Scala TESTS 25 1918 44236800

remove filters

Back to search problems