Educational Codeforces Round 133 (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
1716 Educational Codeforces Round 133 (Rated for Div. 2) FINISHED False 7200 72199499 Aug. 4, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1102 ) E Swap and Maximum Block PROGRAMMING bitmasks data structures divide and conquer dp

B'You are given an array of length 2^n . The elements of the array are numbered from 1 to 2^n . You have to process q queries to this array. In the i -th query, you will be given an integer k ( 0 <= k <= n-1 ). To process the query, you should do the following: For example, if the array a is [-3, 5, -3, 2, 8, -20, 6, -1] , and k = 1 , the query is processed as follows: So, the array becomes [-3, 2, -3, 5, 6, -1, 8, -20] . The subsegment with the maximum sum is [5, 6, -1, 8] , and the answer to the query is 18 . Note that the queries actually change the array, i. xe2 x80 x89e. after a query is performed, the array does not return to its original state, and the next query will be applied to the modified array. The first line contains one integer n ( 1 <= n <= 18 ). The second line contains 2^n integers a_1, a_2, ... , a_{2^n} ( -10^9 <= a_i <= 10^9 ). The third line contains one integer q ( 1 <= q <= 2 cdot 10^5 ). Then q lines follow, the i -th of them contains one integer k ( 0 <= k <= n-1 ) describing the i -th query. For each query, print one integer -- the maximum sum over all contiguous subsegments of the array (including the empty subsegment) after processing the query. Transformation of the array in the example: [-3, 5, -3, 2, 8, -20, 6, -1] rightarrow [-3, 2, -3, 5, 6, -1, 8, -20] rightarrow [2, -3, 5, -3, -1, 6, -20, 8] rightarrow [5, -3, 2, -3, -20, 8, -1, 6] . '...

Tutorials

105653

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
167010167 Hencecho E Aug. 4, 2022, 4:46 p.m. OK GNU C++14 TESTS 43 171 144998400
167048702 DX2009 E Aug. 5, 2022, 2:28 a.m. OK GNU C++14 TESTS 43 296 25497600
167002257 phtniit4cnround E Aug. 4, 2022, 4:21 p.m. OK GNU C++14 TESTS 43 327 53248000
167041351 lixp E Aug. 5, 2022, 12:28 a.m. OK GNU C++14 TESTS 43 343 64921600
167024092 DeaphetS E Aug. 4, 2022, 6:52 p.m. OK GNU C++14 TESTS 43 373 193536000
167047879 METHOD_METAFALICA E Aug. 5, 2022, 2:16 a.m. OK GNU C++14 TESTS 43 374 25497600
167047826 win10 E Aug. 5, 2022, 2:16 a.m. OK GNU C++14 TESTS 43 374 25497600
167004869 lhq_djuanlao E Aug. 4, 2022, 4:29 p.m. OK GNU C++14 TESTS 43 389 161792000
167050966 E-ray E Aug. 5, 2022, 3:02 a.m. OK GNU C++14 TESTS 43 405 177561600
167013869 _zhyh E Aug. 4, 2022, 5:10 p.m. OK GNU C++14 TESTS 43 421 48128000
167040653 Siberian E Aug. 5, 2022, 12:08 a.m. OK GNU C++17 TESTS 43 171 9420800
167059618 Bobocan E Aug. 5, 2022, 5:18 a.m. OK GNU C++17 TESTS 43 187 8908800
167054969 QuangBuiCP E Aug. 5, 2022, 4:07 a.m. OK GNU C++17 TESTS 43 280 8396800
167001505 Nitil E Aug. 4, 2022, 4:19 p.m. OK GNU C++17 TESTS 43 312 22630400
167010631 _mobius_ E Aug. 4, 2022, 4:48 p.m. OK GNU C++17 TESTS 43 342 26316800
167006530 qjatn0120 E Aug. 4, 2022, 4:32 p.m. OK GNU C++17 TESTS 43 342 42086400
167061429 Marckess E Aug. 5, 2022, 5:40 a.m. OK GNU C++17 TESTS 43 358 19558400
167009695 T500 E Aug. 4, 2022, 4:44 p.m. OK GNU C++17 TESTS 43 374 33587200
167010564 lingfunny E Aug. 4, 2022, 4:48 p.m. OK GNU C++17 TESTS 43 405 38604800
167035398 Luscious_Lopez E Aug. 4, 2022, 9:47 p.m. OK GNU C++17 TESTS 43 420 14848000
167008484 Siberian E Aug. 4, 2022, 4:37 p.m. OK GNU C++17 (64) TESTS 43 186 272179200
167009763 Lawali E Aug. 4, 2022, 4:44 p.m. OK GNU C++17 (64) TESTS 43 187 8396800
167056067 enslaved E Aug. 5, 2022, 4:25 a.m. OK GNU C++17 (64) TESTS 43 187 11878400
167046103 Kude E Aug. 5, 2022, 1:50 a.m. OK GNU C++17 (64) TESTS 43 202 8396800
167006655 Siberian E Aug. 4, 2022, 4:32 p.m. OK GNU C++17 (64) TESTS 43 234 20070400
167033874 iLLusio E Aug. 4, 2022, 9:20 p.m. OK GNU C++17 (64) TESTS 43 248 32870400
167004992 Siberian E Aug. 4, 2022, 4:29 p.m. OK GNU C++17 (64) TESTS 43 280 21094400
167024304 CoderAnshu E Aug. 4, 2022, 6:55 p.m. OK GNU C++17 (64) TESTS 43 280 54681600
167012660 Siberian E Aug. 4, 2022, 5:01 p.m. OK GNU C++17 (64) TESTS 43 296 9420800
167027804 maxwellzen E Aug. 4, 2022, 7:43 p.m. OK GNU C++17 (64) TESTS 43 343 183705600
167040667 Siberian E Aug. 5, 2022, 12:09 a.m. OK GNU C++20 (64) TESTS 43 77 9420800
167040713 Siberian E Aug. 5, 2022, 12:09 a.m. OK GNU C++20 (64) TESTS 43 93 9420800
167040694 Siberian E Aug. 5, 2022, 12:09 a.m. OK GNU C++20 (64) TESTS 43 93 9420800
167012613 Siberian E Aug. 4, 2022, 5 p.m. OK GNU C++20 (64) TESTS 43 93 9420800
167040647 Siberian E Aug. 5, 2022, 12:08 a.m. OK GNU C++20 (64) TESTS 43 108 9420800
167040736 Siberian E Aug. 5, 2022, 12:10 a.m. OK GNU C++20 (64) TESTS 43 109 9420800
167009109 Siberian E Aug. 4, 2022, 4:40 p.m. OK GNU C++20 (64) TESTS 43 124 272179200
167061435 YYYLLL2021 E Aug. 5, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 43 140 21299200
167009234 Siberian E Aug. 4, 2022, 4:41 p.m. OK GNU C++20 (64) TESTS 43 140 137625600
167010286 Siberian E Aug. 4, 2022, 4:47 p.m. OK GNU C++20 (64) TESTS 43 155 87244800
167009111 topon998244353ly E Aug. 4, 2022, 4:40 p.m. OK Kotlin 1.6 TESTS 43 857 51609600
167037567 magnus.hegdahl E Aug. 4, 2022, 10:37 p.m. OK Rust 2021 TESTS 43 93 20889600
167009464 sansen E Aug. 4, 2022, 4:42 p.m. OK Rust 2021 TESTS 43 202 44851200
167028868 tngyl E Aug. 4, 2022, 7:58 p.m. OK Rust 2021 TESTS 43 1996 159744000
167027548 tngyl E Aug. 4, 2022, 7:39 p.m. OK Rust 2021 TESTS 43 2074 159744000
167027893 tngyl E Aug. 4, 2022, 7:44 p.m. OK Rust 2021 TESTS 43 2136 159744000
167028496 tngyl E Aug. 4, 2022, 7:53 p.m. OK Rust 2021 TESTS 43 2245 159744000

remove filters

Back to search problems