Technocup 2021 - Elimination Round 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
1415 Technocup 2021 - Elimination Round 2 FINISHED False 7200 125189699 Nov. 29, 2020, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5491 ) D XOR-gun PROGRAMMING bitmasks brute force constructive algorithms

B"Arkady owns a non-decreasing array a_1, a_2, ldots, a_n . You are jealous of its beauty and want to destroy this property. You have a so-called XOR-gun that you can use one or more times. In one step you can select two consecutive elements of the array, let's say x and y , remove them from the array and insert the integer x oplus y on their place, where oplus denotes the bitwise XOR operation. Note that the length of the array decreases by one after the operation. You can't perform this operation when the length of the array reaches one. For example, if the array is [2, 5, 6, 8] , you can select 5 and 6 and replace them with 5 oplus 6 = 3 . The array becomes [2, 3, 8] . You want the array no longer be non-decreasing. What is the minimum number of steps needed? If the array stays non-decreasing no matter what you do, print -1 . The first line contains a single integer n ( 2 <= n <= 10^5 ) -- the initial 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. It is guaranteed that a_i <= a_{i + 1} for all 1 <= i < n . Print a single integer -- the minimum number of steps needed. If there is no solution, print -1 . In the first example you can select 2 and 5 and the array becomes [7, 6, 8] . In the second example you can only obtain arrays [1, 1] , [3, 3] and [0] which are all non-decreasing. In the third example you can select 1 and 2 and the array becomes [3, 4, 6, 20] . Then you can, for example, select 3 and 4 and the array becomes [7, 6, 20] , which is no longer non-decreasing. "...

Tutorials

Editorial of Codeforces Round 687 (Technocup 2021 — Elimitation Round 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
99905959 Intro. D Nov. 29, 2020, 1:12 p.m. OK GNU C++11 TESTS 63 31 0
99955615 Tinkidinki D Nov. 30, 2020, 5:51 a.m. OK GNU C++11 TESTS 65 31 819200
99953815 wwch D Nov. 30, 2020, 5:10 a.m. OK GNU C++11 TESTS 65 31 819200
99948563 FlyBell D Nov. 30, 2020, 2:48 a.m. OK GNU C++11 TESTS 65 31 819200
99919218 vjudge5 D Nov. 29, 2020, 2:59 p.m. OK GNU C++11 TESTS 65 31 819200
99907044 xuan13853715014 D Nov. 29, 2020, 1:26 p.m. OK GNU C++11 TESTS 63 31 819200
99906979 xuan13853715014 D Nov. 29, 2020, 1:25 p.m. OK GNU C++11 TESTS 63 31 819200
99901091 vjudge1 D Nov. 29, 2020, 12:11 p.m. OK GNU C++11 TESTS 63 31 819200
99900498 tiantian666 D Nov. 29, 2020, 12:02 p.m. OK GNU C++11 TESTS 63 31 819200
99892274 N_xiongyx D Nov. 29, 2020, 10:21 a.m. OK GNU C++11 TESTS 63 31 819200
99949921 madhuekshk3 D Nov. 30, 2020, 3:31 a.m. OK GNU C++14 TESTS 65 31 409600
99935565 aim_cm D Nov. 29, 2020, 7:54 p.m. OK GNU C++14 TESTS 65 31 819200
99953025 15158022064 D Nov. 30, 2020, 4:49 a.m. OK GNU C++14 TESTS 65 31 4096000
99926018 Bedo_Sayed D Nov. 29, 2020, 4:41 p.m. OK GNU C++14 TESTS 65 31 7987200
99922136 shabad.k8244 D Nov. 29, 2020, 3:39 p.m. OK GNU C++14 TESTS 65 46 409600
99874941 GrishaIvanenko D Nov. 29, 2020, 8:23 a.m. OK GNU C++14 TESTS 63 46 409600
99851019 Kirill22 D Nov. 29, 2020, 7:24 a.m. OK GNU C++14 TESTS 63 46 819200
99908134 uin D Nov. 29, 2020, 1:41 p.m. OK GNU C++14 TESTS 63 46 1638400
99874099 grandshrimp D Nov. 29, 2020, 8:20 a.m. OK GNU C++14 TESTS 63 46 8806400
99870710 _-- D Nov. 29, 2020, 8:10 a.m. OK GNU C++14 TESTS 63 61 1638400
99946688 kym2006 D Nov. 30, 2020, 1:33 a.m. OK GNU C++17 TESTS 65 31 0
99895159 robert.barbu27 D Nov. 29, 2020, 10:52 a.m. OK GNU C++17 TESTS 63 31 0
99886652 Iamnothere D Nov. 29, 2020, 9:04 a.m. OK GNU C++17 TESTS 63 31 0
99862822 AliceG D Nov. 29, 2020, 7:49 a.m. OK GNU C++17 TESTS 63 31 0
99899639 Dmitry10005 D Nov. 29, 2020, 11:48 a.m. OK GNU C++17 TESTS 63 31 409600
99899482 DR.KOKS D Nov. 29, 2020, 11:46 a.m. OK GNU C++17 TESTS 63 31 409600
99899028 talant110726 D Nov. 29, 2020, 11:40 a.m. OK GNU C++17 TESTS 63 31 409600
99889245 _overrated_ D Nov. 29, 2020, 9:54 a.m. OK GNU C++17 TESTS 63 31 409600
99883538 MADKIRUS D Nov. 29, 2020, 8:52 a.m. OK GNU C++17 TESTS 63 31 409600
99879226 Biran_Anastasiya D Nov. 29, 2020, 8:37 a.m. OK GNU C++17 TESTS 63 31 409600
99923316 ScarletS D Nov. 29, 2020, 3:56 p.m. OK GNU C++17 (64) TESTS 65 31 0
99937587 Didedoshka D Nov. 29, 2020, 8:56 p.m. OK GNU C++17 (64) TESTS 65 31 409600
99924719 frangl D Nov. 29, 2020, 4:18 p.m. OK GNU C++17 (64) TESTS 65 31 409600
99893294 egneeS D Nov. 29, 2020, 10:33 a.m. OK GNU C++17 (64) TESTS 63 31 409600
99891619 alimq D Nov. 29, 2020, 10:15 a.m. OK GNU C++17 (64) TESTS 63 31 409600
99849790 Mr.Robot_28 D Nov. 29, 2020, 7:21 a.m. OK GNU C++17 (64) TESTS 63 31 409600
99949137 run_time_terror D Nov. 30, 2020, 3:10 a.m. OK GNU C++17 (64) TESTS 65 31 819200
99948791 ayush_nishad D Nov. 30, 2020, 2:57 a.m. OK GNU C++17 (64) TESTS 65 31 819200
99939770 vjudge3 D Nov. 29, 2020, 10:21 p.m. OK GNU C++17 (64) TESTS 65 31 819200
99932002 ArtemGucci D Nov. 29, 2020, 6:32 p.m. OK GNU C++17 (64) TESTS 65 31 819200
99940481 2020akadaver D Nov. 29, 2020, 10:56 p.m. OK Java 8 TESTS 65 109 0
99936478 Taran_1407 D Nov. 29, 2020, 8:19 p.m. OK Java 8 TESTS 65 155 0
99894613 davgogol D Nov. 29, 2020, 10:46 a.m. OK Java 8 TESTS 63 249 0
99936542 Megalitum D Nov. 29, 2020, 8:21 p.m. OK MS C++ 2017 TESTS 65 93 409600
99894444 pospeloval123 D Nov. 29, 2020, 10:44 a.m. OK MS C++ 2017 TESTS 63 93 819200
99872544 nexus.chebykin D Nov. 29, 2020, 8:16 a.m. OK PyPy 3 TESTS 63 171 3276800
99932942 wishcode D Nov. 29, 2020, 6:51 p.m. OK PyPy 3 TESTS 65 233 10649600
99890326 myotra D Nov. 29, 2020, 10:01 a.m. OK PyPy 3 TESTS 63 233 12288000
99892912 myotra D Nov. 29, 2020, 10:28 a.m. OK PyPy 3 TESTS 63 233 12492800
99890648 myotra D Nov. 29, 2020, 10:04 a.m. OK PyPy 3 TESTS 63 234 12288000
99889964 Nil2007 D Nov. 29, 2020, 9:58 a.m. OK PyPy 3 TESTS 63 904 10649600
99886376 ulyabelyaeva D Nov. 29, 2020, 9:03 a.m. OK PyPy 3 TESTS 63 935 10649600
99891583 Gleefre D Nov. 29, 2020, 10:14 a.m. OK PyPy 3 TESTS 63 1310 25600000
99910583 animeshbit D Nov. 29, 2020, 2:13 p.m. OK Python 3 TESTS 65 124 7577600

remove filters

Back to search problems