Codeforces Round 779 (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
1658 Codeforces Round 779 (Div. 2) FINISHED False 7200 88788263 March 27, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2618 ) D2 388535 (Hard Version) PROGRAMMING bitmasks brute force data structures math

B'This is the hard version of the problem. The difference in the constraints between both versions are colored below in red. You can make hacks only if all versions of the problem are solved. Marin and Gojou are playing hide-and-seek with an array. Gojou initially perform the following steps: Marin is then given the values of l,r and the final array a . She needs to find the secret integer x to win. Can you help her? Note that there may be multiple possible x that Gojou could have chosen. Marin can find any possible x that could have resulted in the final value of a . The first line contains a single integer t ( 1 <= q t <= q 10^5 ) -- the number of test cases. In the first line of each test case contains two integers l and r ( color{red}{ boldsymbol{0} boldsymbol{ <= } boldsymbol{l}} <= r < 2^{17} ). The second line contains r - l + 1 space-seperated integers of a_1,a_2, ldots,a_{r-l+1} ( 0 <= a_i < 2^{17} ). It is guaranteed that array a is valid. It is guaranteed that the sum of r - l + 1 over all test cases does not exceed 2^{17} . For each test case print an integer x . If there are multiple answers, print any. In the first test case, the original array is [7, 6, 5, 4] . In the second test case, the original array is [4, 7, 6, 5] . In the third test case, the original array is [3, 1, 2] . '...

Tutorials

Codeforces Round #779 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
151185397 ppsracchriskim D2 March 27, 2022, 8:40 p.m. OK GNU C11 TESTS 40 311 512000
151204270 et3_tsy2.0 D2 March 28, 2022, 5:07 a.m. OK GNU C++14 TESTS 40 31 10342400
151204764 win10 D2 March 28, 2022, 5:15 a.m. OK GNU C++14 TESTS 40 31 33382400
151168194 XG0000 D2 March 27, 2022, 5 p.m. OK GNU C++14 TESTS 39 62 19456000
151195969 XZC__Bobby D2 March 28, 2022, 2:04 a.m. OK GNU C++14 TESTS 40 77 18432000
151182866 obaydullahmhs D2 March 27, 2022, 7:53 p.m. OK GNU C++14 TESTS 40 78 512000
151160913 dreamoon_love_AA D2 March 27, 2022, 4:24 p.m. OK GNU C++14 TESTS 39 78 5836800
151173152 ButterflyDew D2 March 27, 2022, 5:42 p.m. OK GNU C++14 TESTS 39 78 7475200
151195350 A_normal_OIer D2 March 28, 2022, 1:46 a.m. OK GNU C++14 TESTS 40 78 18432000
151204706 2020gangbazi D2 March 28, 2022, 5:14 a.m. OK GNU C++14 TESTS 40 78 49356800
151203906 yiwu D2 March 28, 2022, 5:01 a.m. OK GNU C++14 TESTS 40 93 1024000
151163373 shengrang D2 March 27, 2022, 4:29 p.m. OK GNU C++17 TESTS 39 62 74547200
151191366 hussein_auf D2 March 27, 2022, 11:35 p.m. OK GNU C++17 TESTS 40 77 15052800
151185953 idk321 D2 March 27, 2022, 8:52 p.m. OK GNU C++17 TESTS 40 77 16588800
151162608 katoli_2 D2 March 27, 2022, 4:27 p.m. OK GNU C++17 TESTS 39 77 21504000
151198621 Cherumi D2 March 28, 2022, 3:13 a.m. OK GNU C++17 TESTS 40 77 21504000
151174094 MiXmpoi D2 March 27, 2022, 5:53 p.m. OK GNU C++17 TESTS 39 78 819200
151197866 hoainiem D2 March 28, 2022, 2:54 a.m. OK GNU C++17 TESTS 40 78 3174400
151165349 bluesky_hope D2 March 27, 2022, 4:33 p.m. OK GNU C++17 TESTS 39 78 7987200
151200690 dargoncat D2 March 28, 2022, 3:59 a.m. OK GNU C++17 TESTS 40 78 12083200
151195111 HeIIoWorId D2 March 28, 2022, 1:39 a.m. OK GNU C++17 TESTS 40 78 24064000
151163825 lzc2001 D2 March 27, 2022, 4:30 p.m. OK GNU C++17 (64) TESTS 39 61 18432000
151164352 Merlininice D2 March 27, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 39 62 819200
151177452 soonmoo D2 March 27, 2022, 6:32 p.m. OK GNU C++17 (64) TESTS 39 62 1536000
151181170 neal D2 March 27, 2022, 7:24 p.m. OK GNU C++17 (64) TESTS 40 62 2150400
151197043 202003012001 D2 March 28, 2022, 2:34 a.m. OK GNU C++17 (64) TESTS 40 62 6348800
151196407 xietianyi D2 March 28, 2022, 2:17 a.m. OK GNU C++17 (64) TESTS 40 62 20889600
151196383 xietianyi D2 March 28, 2022, 2:16 a.m. OK GNU C++17 (64) TESTS 40 62 20889600
151200316 Eter.nal D2 March 28, 2022, 3:51 a.m. OK GNU C++17 (64) TESTS 40 62 65740800
151164522 soonmoo D2 March 27, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 39 77 1536000
151199307 bandiaoz D2 March 28, 2022, 3:29 a.m. OK GNU C++17 (64) TESTS 40 77 4812800
151198319 swz D2 March 28, 2022, 3:05 a.m. OK GNU C++20 (64) TESTS 40 46 2150400
151188156 Osbridge D2 March 27, 2022, 9:47 p.m. OK GNU C++20 (64) TESTS 40 46 3686400
151187618 Ozbridge D2 March 27, 2022, 9:32 p.m. OK GNU C++20 (64) TESTS 40 46 3686400
151195270 Fysty D2 March 28, 2022, 1:44 a.m. OK GNU C++20 (64) TESTS 40 46 4198400
151183093 jimm89 D2 March 27, 2022, 7:57 p.m. OK GNU C++20 (64) TESTS 40 46 4300800
151178205 inksamurai D2 March 27, 2022, 6:43 p.m. OK GNU C++20 (64) TESTS 39 46 4812800
151202452 xiaolaogou D2 March 28, 2022, 4:34 a.m. OK GNU C++20 (64) TESTS 40 46 6144000
151199120 violet_apricity D2 March 28, 2022, 3:24 a.m. OK GNU C++20 (64) TESTS 40 46 7987200
151203982 circletime D2 March 28, 2022, 5:02 a.m. OK GNU C++20 (64) TESTS 40 46 149094400
151204410 circletime D2 March 28, 2022, 5:09 a.m. OK GNU C++20 (64) TESTS 40 46 149094400
151175147 Restricted D2 March 27, 2022, 6:04 p.m. OK Java 11 TESTS 39 420 14540800
151193022 dzhi D2 March 28, 2022, 12:34 a.m. OK Java 11 TESTS 40 670 14438400
151173651 JunBinLiang D2 March 27, 2022, 5:47 p.m. OK Java 8 TESTS 39 373 7065600
151183696 6ziv D2 March 27, 2022, 8:08 p.m. OK MS C++ 2017 TESTS 40 93 1536000
151170857 machine_solution D2 March 27, 2022, 5:19 p.m. OK MS C++ 2017 TESTS 39 265 23347200
151169278 gerind D2 March 27, 2022, 5:07 p.m. OK MS C++ 2017 TESTS 39 904 512000
151187712 codicon D2 March 27, 2022, 9:35 p.m. OK PyPy 3 TESTS 40 280 19046400
151187878 codicon D2 March 27, 2022, 9:39 p.m. OK PyPy 3 TESTS 40 295 19148800
151201532 ruimina D2 March 28, 2022, 4:17 a.m. OK PyPy 3 TESTS 40 296 12390400
151187680 codicon D2 March 27, 2022, 9:34 p.m. OK PyPy 3 TESTS 40 343 19456000
151171753 shobonvip D2 March 27, 2022, 5:28 p.m. OK PyPy 3-64 TESTS 39 187 28467200
151172856 shobonvip D2 March 27, 2022, 5:38 p.m. OK PyPy 3-64 TESTS 39 202 28774400
151173427 shobonvip D2 March 27, 2022, 5:45 p.m. OK PyPy 3-64 TESTS 39 217 28467200
151176920 shobonvip D2 March 27, 2022, 6:25 p.m. OK PyPy 3-64 TESTS 39 233 28160000
151171918 shobonvip D2 March 27, 2022, 5:29 p.m. OK PyPy 3-64 TESTS 39 233 28467200
151171003 doudin D2 March 27, 2022, 5:21 p.m. OK PyPy 3-64 TESTS 39 358 17408000
151183834 lzumiorito D2 March 27, 2022, 8:11 p.m. OK PyPy 3-64 TESTS 40 420 25088000
151207522 Igrmi D2 March 28, 2022, 5:59 a.m. OK PyPy 3-64 TESTS 40 592 28774400
151207207 Igrmi D2 March 28, 2022, 5:55 a.m. OK PyPy 3-64 TESTS 40 701 43417600
151163350 depressed_UG D2 March 27, 2022, 4:29 p.m. OK PyPy 3-64 TESTS 39 858 171417600

remove filters

Back to search problems