Codeforces Round 483 (Div. 1) [Thanks, Botan Investments and Victor Shaburov!]

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
983 Codeforces Round 483 (Div. 1) [Thanks, Botan Investments and Victor Shaburov!] FINISHED False 7200 205427699 May 15, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5569 ) B XOR-pyramid PROGRAMMING dp 1900

B'For an array b of length m we define the function f as where oplus is bitwise exclusive OR. For example, f(1,2,4,8)=f(1 oplus2,2 oplus4,4 oplus8)=f(3,6,12)=f(3 oplus6,6 oplus12)=f(5,10)=f(5 oplus10)=f(15)=15 You are given an array a and a few queries. Each query is represented as two integers l and r . The answer is the maximum value of f on all continuous subsegments of the array a_l, a_{l+1}, ldots, a_r . The first line contains a single integer n ( 1 <= n <= 5000 ) -- the length of a . The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 2^{30}-1 ) -- the elements of the array. The third line contains a single integer q ( 1 <= q <= 100 ,000 ) -- the number of queries. Each of the next q lines contains a query represented as two integers l , r ( 1 <= l <= r <= n ). Print q lines -- the answers for the queries. In first sample in both queries the maximum value of the function is reached on the subsegment that is equal to the whole segment. In second sample, optimal segment for first query are [3,6] , for second query -- [2,5] , for third -- [3,4] , for fourth -- [1,2] . '...

Tutorials

Codeforces Round #483 [Thanks, Botan Investments and Victor Shaburov!] Editoral

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
38283588 Gassa B May 15, 2018, 3:27 p.m. OK D TESTS 51 248 77004800 1900
38286281 fluffyowl B May 15, 2018, 3:42 p.m. OK D TESTS 51 935 450457600 1900
38778885 LeoPro B May 30, 2018, 3:56 p.m. OK FPC TESTS 51 342 103219200 1900
55849490 luogu_bot4 B June 21, 2019, 2:13 a.m. OK FPC TESTS 51 498 100249600 1900
41934628 imalhio B Aug. 21, 2018, 12:18 p.m. OK GNU C TESTS 51 140 201318400 1900
41994462 imalhio B Aug. 23, 2018, 11:12 a.m. OK GNU C TESTS 51 171 201728000 1900
39902880 zhongson2125 B July 3, 2018, 2:55 p.m. OK GNU C TESTS 51 530 200806400 1900
38621671 zhangzhiyuan B May 26, 2018, 3:10 a.m. OK GNU C TESTS 51 561 288563200 1900
38458114 robinliu B May 20, 2018, 11:42 a.m. OK GNU C++ TESTS 51 109 1638400 1900
38693734 vjudge2 B May 28, 2018, 12:18 p.m. OK GNU C++ TESTS 51 109 100044800 1900
39240931 Ctrl2333 B June 14, 2018, 11:01 a.m. OK GNU C++ TESTS 51 109 100454400 1900
38413900 thx B May 19, 2018, 1:31 a.m. OK GNU C++ TESTS 51 109 100556800 1900
38962168 vjudge2 B June 5, 2018, 7:25 a.m. OK GNU C++ TESTS 51 124 103731200 1900
39007850 vjudge2 B June 7, 2018, 3:27 a.m. OK GNU C++ TESTS 51 124 200806400 1900
41084412 vjudge5 B Aug. 1, 2018, 1:31 p.m. OK GNU C++ TESTS 51 139 100147200 1900
38306919 ACetate B May 16, 2018, 3:01 a.m. OK GNU C++ TESTS 51 139 103936000 1900
40909938 vjudge4 B July 29, 2018, 8:13 a.m. OK GNU C++ TESTS 51 139 200601600 1900
38488809 vjudge1 B May 21, 2018, 2:55 p.m. OK GNU C++ TESTS 51 139 201011200 1900
47680685 vjudge4 B Dec. 29, 2018, 11:56 a.m. OK GNU C11 TESTS 51 436 200499200 1900
47293721 vjudge1 B Dec. 20, 2018, 10:51 a.m. OK GNU C11 TESTS 51 467 200499200 1900
47194779 vjudge4 B Dec. 18, 2018, 2 p.m. OK GNU C11 TESTS 51 483 100454400 1900
47780741 vjudge2 B Dec. 31, 2018, 7:58 a.m. OK GNU C11 TESTS 51 499 200601600 1900
47779849 vjudge3 B Dec. 31, 2018, 7:19 a.m. OK GNU C11 TESTS 51 499 200601600 1900
47779816 vjudge1 B Dec. 31, 2018, 7:18 a.m. OK GNU C11 TESTS 51 499 200601600 1900
47779794 vjudge5 B Dec. 31, 2018, 7:17 a.m. OK GNU C11 TESTS 51 499 200601600 1900
47815132 vjudge2 B Jan. 1, 2019, 1:55 p.m. OK GNU C11 TESTS 51 561 102195200 1900
47814788 vjudge3 B Jan. 1, 2019, 1:42 p.m. OK GNU C11 TESTS 51 561 102195200 1900
47095991 vjudge2 B Dec. 16, 2018, 8:26 a.m. OK GNU C11 TESTS 51 576 201113600 1900
40932093 ReaLNero1 B July 30, 2018, 1:35 a.m. OK GNU C++11 TESTS 51 92 204492800 1900
57711554 luogu_bot1 B July 25, 2019, 12:16 a.m. OK GNU C++11 TESTS 51 93 100044800 1900
38693707 Peter_Z B May 28, 2018, 12:18 p.m. OK GNU C++11 TESTS 51 108 100044800 1900
47537341 luogu_bot4 B Dec. 27, 2018, 3:39 a.m. OK GNU C++11 TESTS 51 108 100659200 1900
47535758 Althen B Dec. 27, 2018, 1:15 a.m. OK GNU C++11 TESTS 51 108 100659200 1900
43106346 luogu_bot1 B Sept. 20, 2018, 8:54 a.m. OK GNU C++11 TESTS 51 108 225894400 1900
38281745 Georeth B May 15, 2018, 3:18 p.m. OK GNU C++11 TESTS 51 108 304742400 1900
59669405 Tqiang B Aug. 29, 2019, 3:24 p.m. OK GNU C++11 TESTS 51 109 100044800 1900
63267503 X_o_r B Oct. 24, 2019, 1:26 a.m. OK GNU C++11 TESTS 51 109 100249600 1900
63364219 luogu_bot3 B Oct. 25, 2019, 6:52 a.m. OK GNU C++11 TESTS 51 109 100454400 1900
38328678 eric574 B May 16, 2018, 5:25 p.m. OK GNU C++14 TESTS 51 124 103936000 1900
46697092 markotee B Dec. 6, 2018, 8:41 p.m. OK GNU C++14 TESTS 51 139 100454400 1900
53179323 AMnu B April 23, 2019, 6:36 a.m. OK GNU C++14 TESTS 51 139 100454400 1900
38540589 jisan047 B May 22, 2018, 3:45 p.m. OK GNU C++14 TESTS 51 139 100659200 1900
38426516 asusp4s333 B May 19, 2018, 10:09 a.m. OK GNU C++14 TESTS 51 139 100864000 1900
52268742 bgrm B April 3, 2019, 12:22 p.m. OK GNU C++14 TESTS 51 139 101888000 1900
38324617 nk_xyz B May 16, 2018, 2:10 p.m. OK GNU C++14 TESTS 51 139 103731200 1900
41313379 vjudge1 B Aug. 7, 2018, 5:40 p.m. OK GNU C++14 TESTS 51 139 301465600 1900
50547934 bhargav_0085 B Feb. 26, 2019, 11:56 p.m. OK GNU C++14 TESTS 51 140 100249600 1900
58992156 Yashar_H B Aug. 18, 2019, 9:40 a.m. OK GNU C++14 TESTS 51 140 100249600 1900
68451762 user202729_ B Jan. 9, 2020, 2:36 p.m. OK GNU C++17 TESTS 51 124 1740800 1900
38284625 Eran B May 15, 2018, 3:33 p.m. OK GNU C++17 TESTS 51 124 5529600 1900
51257571 vjudge2 B March 13, 2019, 11:58 a.m. OK GNU C++17 TESTS 51 124 102195200 1900
41313368 aumit B Aug. 7, 2018, 5:40 p.m. OK GNU C++17 TESTS 51 124 301465600 1900
39201167 Lvitsa B June 12, 2018, 8:49 p.m. OK GNU C++17 TESTS 51 139 200806400 1900
51101381 sifat_15 B March 9, 2019, 7:10 p.m. OK GNU C++17 TESTS 51 140 100352000 1900
53486274 cxsy B April 29, 2019, 4:04 a.m. OK GNU C++17 TESTS 51 140 100454400 1900
39078472 God_of_thunder B June 9, 2018, 8:43 p.m. OK GNU C++17 TESTS 51 140 100454400 1900
38416709 biggf B May 19, 2018, 4:33 a.m. OK GNU C++17 TESTS 51 140 100659200 1900
38682289 Hope_amasser B May 28, 2018, 1:21 a.m. OK GNU C++17 TESTS 51 140 100659200 1900
38340322 mishagam B May 17, 2018, 6:55 a.m. OK Go TESTS 51 436 131174400 1900
38298815 Martynas B May 15, 2018, 6:26 p.m. OK Go TESTS 51 436 237465600 1900
39856950 robot-dreams B July 2, 2018, 4:43 a.m. OK Go TESTS 51 670 222412800 1900
38325415 cheater2k B May 16, 2018, 2:33 p.m. OK Go TESTS 51 826 240025600 1900
67933322 O_E B Dec. 29, 2019, 6:54 p.m. OK Java 8 TESTS 51 327 73932800 1900
38351719 _whatever B May 17, 2018, 2:12 p.m. OK Java 8 TESTS 51 343 144896000 1900
45211941 KulikAlex B Nov. 2, 2018, 3:36 p.m. OK Java 8 TESTS 51 358 142745600 1900
38328197 prakhar897 B May 16, 2018, 5:07 p.m. OK Java 8 TESTS 51 358 167731200 1900
38276644 Egor B May 15, 2018, 2:59 p.m. OK Java 8 TESTS 51 374 100659200 1900
38713612 rds__98 B May 29, 2018, 8:51 a.m. OK Java 8 TESTS 51 374 144793600 1900
38461615 dipankar12 B May 20, 2018, 1:49 p.m. OK Java 8 TESTS 51 389 142848000 1900
44231226 omarnvidia B Oct. 13, 2018, 12:21 a.m. OK Java 8 TESTS 51 389 263270400 1900
66570821 gouh9qn B Dec. 10, 2019, 4:18 a.m. OK Java 8 TESTS 51 405 254156800 1900
38446170 Itwazonce B May 20, 2018, 3:12 a.m. OK Java 8 TESTS 51 452 262758400 1900
38286984 ymatsux B May 15, 2018, 3:46 p.m. OK Kotlin TESTS 51 420 315289600 1900
38592511 antofik B May 24, 2018, 4:49 p.m. OK Mono C# TESTS 51 998 209920000 1900
54578073 vjudge1 B May 25, 2019, 1:54 a.m. OK MS C++ TESTS 51 124 108441600 1900
53955238 vjudge4 B May 10, 2019, 11:37 a.m. OK MS C++ TESTS 51 124 121241600 1900
38991821 vjudge5 B June 6, 2018, 10:41 a.m. OK MS C++ TESTS 51 124 200396800 1900
53885483 vjudge5 B May 8, 2019, 5:48 p.m. OK MS C++ TESTS 51 124 242483200 1900
38384097 Mr_Cao B May 17, 2018, 10:37 p.m. OK MS C++ TESTS 51 186 242483200 1900
47782593 vjudge3 B Dec. 31, 2018, 8:58 a.m. OK MS C++ TESTS 51 202 200806400 1900
53566719 vjudge2 B April 30, 2019, 12:50 p.m. OK MS C++ TESTS 51 202 402432000 1900
53687014 vjudge1 B May 3, 2019, 1:52 a.m. OK MS C++ TESTS 51 218 402432000 1900
53660968 vjudge4 B May 2, 2019, 7:40 a.m. OK MS C++ TESTS 51 280 200806400 1900
47363752 vjudge3 B Dec. 22, 2018, 10:18 a.m. OK MS C++ TESTS 51 280 200806400 1900
57937618 System_Y B July 29, 2019, 11:24 a.m. OK MS C++ 2017 TESTS 51 295 201216000 1900
48357772 syzymon B Jan. 13, 2019, 4:56 p.m. OK Ocaml TESTS 51 1294 200601600 1900
38336017 belkka B May 17, 2018, 2:03 a.m. OK PyPy 2 TESTS 51 842 119705600 1900
38298721 pajenegod B May 15, 2018, 6:25 p.m. OK PyPy 2 TESTS 51 1091 239616000 1900
38336267 belkka B May 17, 2018, 2:27 a.m. OK PyPy 2 TESTS 51 1106 120934400 1900
38468750 cristi.dana2 B May 20, 2018, 8:02 p.m. OK PyPy 2 TESTS 51 1107 98611200 1900
38336297 belkka B May 17, 2018, 2:30 a.m. OK PyPy 2 TESTS 51 1107 120934400 1900
38336189 belkka B May 17, 2018, 2:21 a.m. OK PyPy 2 TESTS 51 1107 121139200 1900
38336099 belkka B May 17, 2018, 2:11 a.m. OK PyPy 2 TESTS 51 1138 119910400 1900
38336322 belkka B May 17, 2018, 2:32 a.m. OK PyPy 2 TESTS 51 1138 120934400 1900
38336111 belkka B May 17, 2018, 2:12 a.m. OK PyPy 2 TESTS 51 1138 121344000 1900
44733067 YESMAths B Oct. 23, 2018, 11:35 a.m. OK PyPy 2 TESTS 51 1185 322764800 1900
40054696 orailly B July 7, 2018, 7:58 a.m. OK PyPy 3 TESTS 51 685 71270400 1900
43278206 Stephan B Sept. 23, 2018, 2:27 a.m. OK PyPy 3 TESTS 51 1044 124928000 1900
68826455 UTMoonlight B Jan. 14, 2020, 7:25 p.m. OK PyPy 3 TESTS 51 1949 120422400 1900

remove filters

Back to search problems