Codeforces Round 759 (Div. 2, based on Technocup 2022 Elimination Round 3)

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
1591 Codeforces Round 759 (Div. 2, based on Technocup 2022 Elimination Round 3) FINISHED False 7200 92501099 Dec. 12, 2021, 3:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8454 ) B Array Eversion PROGRAMMING greedy

B"You are given an array a of length n . Let's define the eversion operation. Let x = a_n . Then array a is partitioned into two parts: left and right. The left part contains the elements of a that are not greater than x ( <= x ). The right part contains the elements of a that are strictly greater than x ( > x ). The order of elements in each part is kept the same as before the operation, i. e. the partition is stable. Then the array is replaced with the concatenation of the left and the right parts. For example, if the array a is [2, 4, 1, 5, 3] , the eversion goes like this: [2, 4, 1, 5, 3] to [2, 1, 3], [4, 5] to [2, 1, 3, 4, 5] . We start with the array a and perform eversions on this array. We can prove that after several eversions the array a stops changing. Output the minimum number k such that the array stops changing after k eversions. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 100 ). Description of the test cases follows. The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case print a single integer k -- the number of eversions after which the array stops changing. Consider the fist example. Consider the second example. "...

Tutorials

Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
138932506 DavidMeza B Dec. 12, 2021, 7:27 p.m. OK GNU C11 TESTS 63 46 819200
138905689 BILLION_mengyi B Dec. 12, 2021, 4:24 p.m. OK GNU C11 TESTS 63 46 819200
138941881 21GuoBn_Hua B Dec. 13, 2021, 12:03 a.m. OK GNU C11 TESTS 63 46 819200
138945964 dianzikejidaxue B Dec. 13, 2021, 3:03 a.m. OK GNU C11 TESTS 63 46 819200
138948831 llj21 B Dec. 13, 2021, 4:21 a.m. OK GNU C11 TESTS 63 46 819200
138946224 Hnhat1234 B Dec. 13, 2021, 3:11 a.m. OK GNU C11 TESTS 63 46 1638400
138920299 childde B Dec. 12, 2021, 5:08 p.m. OK GNU C11 TESTS 63 62 24064000
138935635 Kirtika._.Chaudhary B Dec. 12, 2021, 8:29 p.m. OK GNU C++14 TESTS 63 46 819200
138911271 BlackPanther112358 B Dec. 12, 2021, 4:38 p.m. OK GNU C++14 TESTS 63 46 1024000
138926342 LastEagle B Dec. 12, 2021, 6:02 p.m. OK GNU C++14 TESTS 63 61 819200
138922634 3.5 B Dec. 12, 2021, 5:14 p.m. OK GNU C++14 TESTS 63 61 819200
138951107 XueYJ B Dec. 13, 2021, 5:11 a.m. OK GNU C++14 TESTS 63 62 819200
138950318 V22_abhi B Dec. 13, 2021, 4:55 a.m. OK GNU C++14 TESTS 63 62 819200
138948018 Hunkihas B Dec. 13, 2021, 4 a.m. OK GNU C++14 TESTS 63 62 819200
138953001 binarypain B Dec. 13, 2021, 5:48 a.m. OK GNU C++14 TESTS 63 62 819200
138952935 why_so_much_pain B Dec. 13, 2021, 5:47 a.m. OK GNU C++14 TESTS 63 62 819200
138951223 suru_4851 B Dec. 13, 2021, 5:14 a.m. OK GNU C++14 TESTS 63 62 819200
138932125 Mohamed-Ashraf2210 B Dec. 12, 2021, 7:20 p.m. OK GNU C++17 TESTS 63 61 819200
138925437 Esraa_Taha309 B Dec. 12, 2021, 5:54 p.m. OK GNU C++17 TESTS 63 61 1024000
138911381 styrofoam B Dec. 12, 2021, 4:39 p.m. OK GNU C++17 TESTS 63 61 1843200
138951058 m_patel B Dec. 13, 2021, 5:10 a.m. OK GNU C++17 TESTS 63 62 819200
138951004 Cryptobot B Dec. 13, 2021, 5:09 a.m. OK GNU C++17 TESTS 63 62 819200
138950002 qasw110983 B Dec. 13, 2021, 4:49 a.m. OK GNU C++17 TESTS 63 62 819200
138953215 DespicableMonkey B Dec. 13, 2021, 5:52 a.m. OK GNU C++17 TESTS 63 62 819200
138949520 slamhit B Dec. 13, 2021, 4:37 a.m. OK GNU C++17 TESTS 63 62 819200
138952023 wizardo19 B Dec. 13, 2021, 5:29 a.m. OK GNU C++17 TESTS 63 62 819200
138951896 code_stacker B Dec. 13, 2021, 5:27 a.m. OK GNU C++17 TESTS 63 62 819200
138944997 luogu_bot2 B Dec. 13, 2021, 2:29 a.m. OK GNU C++17 (64) TESTS 63 31 819200
138945161 YLWang B Dec. 13, 2021, 2:37 a.m. OK GNU C++17 (64) TESTS 63 31 4096000
138938063 Thebestofthebest B Dec. 12, 2021, 9:29 p.m. OK GNU C++17 (64) TESTS 63 46 819200
138952916 mj_riffu B Dec. 13, 2021, 5:46 a.m. OK GNU C++17 (64) TESTS 63 46 819200
138952908 adityasonani B Dec. 13, 2021, 5:46 a.m. OK GNU C++17 (64) TESTS 63 46 819200
138949744 shaileshgrathod0812 B Dec. 13, 2021, 4:42 a.m. OK GNU C++17 (64) TESTS 63 46 819200
138949466 xiaoziyao B Dec. 13, 2021, 4:36 a.m. OK GNU C++17 (64) TESTS 63 46 819200
138943426 Nanako B Dec. 13, 2021, 1:20 a.m. OK GNU C++17 (64) TESTS 63 46 819200
138941052 JacksonMHoke B Dec. 12, 2021, 11:21 p.m. OK GNU C++17 (64) TESTS 63 46 819200
138937322 iAmShipul B Dec. 12, 2021, 9:09 p.m. OK GNU C++17 (64) TESTS 63 46 819200
138924250 Misbaul_Hasan B Dec. 12, 2021, 5:47 p.m. OK GNU C++20 (64) TESTS 63 31 1638400
138947355 heisenberg09 B Dec. 13, 2021, 3:43 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138946401 themonikanayak B Dec. 13, 2021, 3:17 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138945709 ivanzuki B Dec. 13, 2021, 2:55 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138944807 incogn1to B Dec. 13, 2021, 2:22 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138942501 FlowRays B Dec. 13, 2021, 12:38 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138933155 mariarifa2018 B Dec. 12, 2021, 7:38 p.m. OK GNU C++20 (64) TESTS 63 46 819200
138951821 mysteri0us7 B Dec. 13, 2021, 5:25 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138953074 danwuSBU B Dec. 13, 2021, 5:49 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138950523 grapo_Oranges B Dec. 13, 2021, 4:59 a.m. OK GNU C++20 (64) TESTS 63 46 819200
138953490 rdamir86 B Dec. 13, 2021, 5:57 a.m. OK Go TESTS 63 171 5529600
138947631 DanhDang B Dec. 13, 2021, 3:50 a.m. OK Java 11 TESTS 63 202 32460800
138912627 ei20wthinguyen B Dec. 12, 2021, 4:43 p.m. OK Java 11 TESTS 63 202 32460800
138912061 nhiemnguyen999 B Dec. 12, 2021, 4:41 p.m. OK Java 11 TESTS 63 202 32460800
138947900 sumitchavan B Dec. 13, 2021, 3:57 a.m. OK Java 11 TESTS 63 217 0
138926991 punitg8 B Dec. 12, 2021, 6:08 p.m. OK Java 11 TESTS 63 218 0
138945801 coderx_100 B Dec. 13, 2021, 2:58 a.m. OK Java 11 TESTS 63 218 0
138935339 720_khiladi B Dec. 12, 2021, 8:22 p.m. OK Java 11 TESTS 63 218 0
138917556 OKERs B Dec. 12, 2021, 5 p.m. OK Java 11 TESTS 63 218 32460800
138911940 nhannh123 B Dec. 12, 2021, 4:41 p.m. OK Java 11 TESTS 63 218 32460800
138910646 henrychenOutlook B Dec. 12, 2021, 4:36 p.m. OK Java 11 TESTS 63 233 0
138913114 tanishq044 B Dec. 12, 2021, 4:45 p.m. OK Java 8 TESTS 63 124 0
138926178 VishuTomar B Dec. 12, 2021, 6 p.m. OK Java 8 TESTS 63 139 2764800
138924910 pribic B Dec. 12, 2021, 5:50 p.m. OK Java 8 TESTS 63 155 2764800
138953607 DeepthansuGvs B Dec. 13, 2021, 6 a.m. OK Java 8 TESTS 63 155 2764800
138940816 snowyrsb B Dec. 12, 2021, 11:09 p.m. OK Java 8 TESTS 63 155 2969600
138910806 vkc932 B Dec. 12, 2021, 4:37 p.m. OK Java 8 TESTS 63 155 3379200
138942659 shanks19 B Dec. 13, 2021, 12:48 a.m. OK Java 8 TESTS 63 156 2764800
138905545 KareemAshraf_ B Dec. 12, 2021, 4:24 p.m. OK Java 8 TESTS 63 156 2969600
138926463 Mohamed-Ahmed810 B Dec. 12, 2021, 6:03 p.m. OK Java 8 TESTS 63 170 2969600
138943260 sky9313 B Dec. 13, 2021, 1:14 a.m. OK Java 8 TESTS 63 170 3072000
138918028 diajutcum B Dec. 12, 2021, 5:01 p.m. OK MS C++ 2017 TESTS 63 77 1638400
138947855 miaoyacheng1 B Dec. 13, 2021, 3:56 a.m. OK MS C++ 2017 TESTS 63 78 819200
138922586 DmtrPpl B Dec. 12, 2021, 5:14 p.m. OK MS C++ 2017 TESTS 63 202 819200
138906060 WhoTheFuck B Dec. 12, 2021, 4:26 p.m. OK MS C++ 2017 TESTS 63 202 2560000
138905826 theman100012020 B Dec. 12, 2021, 4:25 p.m. OK MS C++ 2017 TESTS 63 202 2560000
138913682 Abu-Kashan_02 B Dec. 12, 2021, 4:46 p.m. OK MS C++ 2017 TESTS 63 217 2457600
138921616 Touristinya B Dec. 12, 2021, 5:12 p.m. OK MS C++ 2017 TESTS 63 218 819200
138921292 Yosiky B Dec. 12, 2021, 5:11 p.m. OK MS C++ 2017 TESTS 63 218 819200
138929784 IvanRozb B Dec. 12, 2021, 6:43 p.m. OK MS C++ 2017 TESTS 63 218 1638400
138911463 zcyfish B Dec. 12, 2021, 4:39 p.m. OK MS C++ 2017 TESTS 63 218 2457600
138914336 Harazdii B Dec. 12, 2021, 4:49 p.m. OK .NET Core C# TESTS 63 108 16486400
138934199 anton9843 B Dec. 12, 2021, 7:57 p.m. OK .NET Core C# TESTS 63 109 16588800
138920211 jeroeng B Dec. 12, 2021, 5:08 p.m. OK .NET Core C# TESTS 63 109 17408000
138908117 satya_k B Dec. 12, 2021, 4:28 p.m. OK .NET Core C# TESTS 63 124 16588800
138924453 1_2_3_4_5_9 B Dec. 12, 2021, 5:47 p.m. OK PyPy 2 TESTS 63 124 17100800
138916394 FrozenKandy B Dec. 12, 2021, 4:56 p.m. OK PyPy 3 TESTS 63 124 16896000
138927558 legend.ary_as B Dec. 12, 2021, 6:15 p.m. OK PyPy 3 TESTS 63 155 16179200
138911568 armusman2 B Dec. 12, 2021, 4:39 p.m. OK PyPy 3 TESTS 63 249 21504000
138953230 luogu_bot4 B Dec. 13, 2021, 5:52 a.m. OK PyPy 3 TESTS 63 264 19046400
138948672 luogu_bot3 B Dec. 13, 2021, 4:17 a.m. OK PyPy 3 TESTS 63 264 19046400
138941806 prgmti1 B Dec. 12, 2021, 11:59 p.m. OK PyPy 3 TESTS 63 265 17408000
138917577 Aragorn8037 B Dec. 12, 2021, 5 p.m. OK PyPy 3 TESTS 63 265 19148800
138904557 HitoriNoShita B Dec. 12, 2021, 4:21 p.m. OK PyPy 3 TESTS 63 265 19148800
138953333 vladislav.u B Dec. 13, 2021, 5:54 a.m. OK PyPy 3 TESTS 63 280 19046400
138950503 peakhunter B Dec. 13, 2021, 4:59 a.m. OK PyPy 3 TESTS 63 280 19046400
138929994 Sir.Alireza B Dec. 12, 2021, 6:46 p.m. OK PyPy 3-64 TESTS 63 202 24371200
138926826 tyzzi B Dec. 12, 2021, 6:06 p.m. OK PyPy 3-64 TESTS 63 265 13721600
138916417 Ryoka B Dec. 12, 2021, 4:56 p.m. OK PyPy 3-64 TESTS 63 296 10342400
138930942 Enchk B Dec. 12, 2021, 7 p.m. OK PyPy 3-64 TESTS 63 311 19865600
138912920 orazbaevDev B Dec. 12, 2021, 4:44 p.m. OK PyPy 3-64 TESTS 63 311 19865600
138945546 conqueror_of_tourist B Dec. 13, 2021, 2:50 a.m. OK PyPy 3-64 TESTS 63 326 19865600
138935862 KeshNar B Dec. 12, 2021, 8:34 p.m. OK PyPy 3-64 TESTS 63 326 19865600
138924249 violist B Dec. 12, 2021, 5:47 p.m. OK PyPy 3-64 TESTS 63 327 19865600
138935123 ad451 B Dec. 12, 2021, 8:17 p.m. OK PyPy 3-64 TESTS 63 342 13926400
138910259 mepiyush2000 B Dec. 12, 2021, 4:35 p.m. OK PyPy 3-64 TESTS 63 342 19865600
138930344 elistark B Dec. 12, 2021, 6:51 p.m. OK Python 2 TESTS 63 155 11059200
138925121 OLOGY B Dec. 12, 2021, 5:51 p.m. OK Python 2 TESTS 63 156 13107200
138926546 meet2008 B Dec. 12, 2021, 6:04 p.m. OK Python 3 TESTS 63 139 13721600
138925581 sainarendragamini B Dec. 12, 2021, 5:55 p.m. OK Python 3 TESTS 63 140 15769600
138918079 goldensquirrel B Dec. 12, 2021, 5:01 p.m. OK Python 3 TESTS 63 140 15769600
138918732 Hoangtuan17F B Dec. 12, 2021, 5:03 p.m. OK Python 3 TESTS 63 155 13721600
138930661 sarthaksingh09 B Dec. 12, 2021, 6:55 p.m. OK Python 3 TESTS 63 155 15769600
138922775 sheknows B Dec. 12, 2021, 5:14 p.m. OK Python 3 TESTS 63 155 15769600
138922342 akashdeep3194 B Dec. 12, 2021, 5:14 p.m. OK Python 3 TESTS 63 155 15769600
138916936 Ajay_pathak B Dec. 12, 2021, 4:58 p.m. OK Python 3 TESTS 63 155 15769600
138914428 satyamjha7777 B Dec. 12, 2021, 4:49 p.m. OK Python 3 TESTS 63 155 15769600
138915273 bishtk435 B Dec. 12, 2021, 4:52 p.m. OK Python 3 TESTS 63 156 15769600
138907681 JohanCampos B Dec. 12, 2021, 4:27 p.m. OK Ruby 3 TESTS 63 592 18124800

remove filters

Back to search problems