Educational Codeforces Round 58 (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
1101 Educational Codeforces Round 58 (Rated for Div. 2) FINISHED False 7200 184605899 Jan. 11, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1733 ) G (Zero XOR Subset)-less PROGRAMMING math matrices 2400

B"You are given an array a_1, a_2, ... , a_n of integer numbers. Your task is to divide the array into the maximum number of segments in such a way that: Print the maximum number of segments the array can be divided into. Print -1 if no suitable division exists. The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the size of the array. The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 10^9 ). Print the maximum number of segments the array can be divided into while following the given constraints. Print -1 if no suitable division exists. In the first example 2 is the maximum number. If you divide the array into {[5], [5, 7, 2] } , the XOR value of the subset of only the second segment is 5 oplus 7 oplus 2 = 0 . {[5, 5], [7, 2] } has the value of the subset of only the first segment being 5 oplus 5 = 0 . However, {[5, 5, 7], [2] } will lead to subsets {[5, 5, 7] } of XOR 7 , {[2] } of XOR 2 and {[5, 5, 7], [2] } of XOR 5 oplus 5 oplus 7 oplus 2 = 5 . Let's take a look at some division on 3 segments -- {[5], [5, 7], [2] } . It will produce subsets: As you can see, subset {[5, 7], [2] } has its XOR equal to 0 , which is unacceptable. You can check that for other divisions of size 3 or 4 , non-empty subset with 0 XOR always exists. The second example has no suitable divisions. The third example array can be divided into {[3], [1], [10] } . No subset of these segments has its XOR equal to 0 . "...

Tutorials

64483

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
48307724 rainboy G Jan. 12, 2019, 9:12 p.m. OK GNU C11 TESTS 40 62 0 2400
48956005 mrsrz G Jan. 26, 2019, 4:38 a.m. OK GNU C11 TESTS 40 62 819200 2400
48956046 mrsrz G Jan. 26, 2019, 4:39 a.m. OK GNU C11 TESTS 40 78 1024000 2400
48654276 ReaLNero1 G Jan. 21, 2019, 1:26 a.m. OK GNU C++11 TESTS 40 31 0 2400
48657458 EncodeTalker G Jan. 21, 2019, 3:47 a.m. OK GNU C++11 TESTS 40 31 819200 2400
51065842 Big_black_jujube G March 9, 2019, 5:51 a.m. OK GNU C++11 TESTS 40 31 819200 2400
48496715 Miracle_2001 G Jan. 17, 2019, 1:17 p.m. OK GNU C++11 TESTS 40 31 1638400 2400
49763140 snowflake G Feb. 11, 2019, 10:09 a.m. OK GNU C++11 TESTS 40 31 2048000 2400
49763123 cwystc G Feb. 11, 2019, 10:09 a.m. OK GNU C++11 TESTS 40 31 2048000 2400
48315706 Dilute G Jan. 13, 2019, 6:26 a.m. OK GNU C++11 TESTS 40 46 0 2400
48316260 lzqwq G Jan. 13, 2019, 6:43 a.m. OK GNU C++11 TESTS 40 46 0 2400
48315726 Dilute G Jan. 13, 2019, 6:27 a.m. OK GNU C++11 TESTS 40 46 0 2400
68750756 vjudge2 G Jan. 14, 2020, 6:35 a.m. OK GNU C++11 TESTS 40 46 819200 2400
48779660 interestingLSY G Jan. 23, 2019, 6:16 a.m. OK GNU C++14 TESTS 40 46 1024000 2400
48779691 HatsuneMikuo G Jan. 23, 2019, 6:16 a.m. OK GNU C++14 TESTS 40 46 1024000 2400
62334914 idxcalcal G Oct. 10, 2019, 11:57 p.m. OK GNU C++14 TESTS 40 46 1843200 2400
48403611 q234rty G Jan. 15, 2019, 1:03 a.m. OK GNU C++14 TESTS 40 46 10035200 2400
48409293 NotNight G Jan. 15, 2019, 6:41 a.m. OK GNU C++14 TESTS 40 62 0 2400
51569806 skrydg G March 20, 2019, 11:11 a.m. OK GNU C++14 TESTS 40 62 0 2400
48527415 akumar1503 G Jan. 18, 2019, 9:45 a.m. OK GNU C++14 TESTS 40 62 0 2400
48933207 CrazyDiamond G Jan. 25, 2019, 1:10 p.m. OK GNU C++14 TESTS 40 62 819200 2400
51208798 Rabbittank G March 12, 2019, 6:40 a.m. OK GNU C++14 TESTS 40 62 819200 2400
51208548 Rabbittank G March 12, 2019, 6:31 a.m. OK GNU C++14 TESTS 40 62 819200 2400
48420700 Trisolaris G Jan. 15, 2019, 12:42 p.m. OK GNU C++17 TESTS 40 46 102400 2400
61962611 disposrestfuIly G Oct. 6, 2019, 7:55 a.m. OK GNU C++17 TESTS 40 46 8396800 2400
50563441 Errichto G Feb. 27, 2019, 12:07 p.m. OK GNU C++17 TESTS 40 62 0 2400
58862608 Mohammad_Kartoumeh G Aug. 15, 2019, 12:12 p.m. OK GNU C++17 TESTS 40 62 0 2400
48325866 despair G Jan. 13, 2019, 11:47 a.m. OK GNU C++17 TESTS 40 62 307200 2400
52536607 vjudge3 G April 9, 2019, 3:56 p.m. OK GNU C++17 TESTS 40 62 819200 2400
49355703 dendi239 G Feb. 2, 2019, 10:57 a.m. OK GNU C++17 TESTS 40 62 1024000 2400
48378506 Asagami G Jan. 14, 2019, 9:04 a.m. OK GNU C++17 TESTS 40 62 1024000 2400
48267775 ramchandra G Jan. 11, 2019, 9:41 p.m. OK GNU C++17 TESTS 40 62 1843200 2400
63434422 S.K G Oct. 26, 2019, 10:10 a.m. OK GNU C++17 TESTS 40 77 0 2400
48371613 xodiac G Jan. 14, 2019, 4:48 a.m. OK Java 8 TESTS 40 124 0 2400
49810288 PrakharJain G Feb. 11, 2019, 11:48 p.m. OK Java 8 TESTS 40 155 0 2400
61083007 beginner1010 G Sept. 22, 2019, 5:08 p.m. OK Java 8 TESTS 40 156 0 2400
48307723 Dukkha G Jan. 12, 2019, 9:12 p.m. OK Java 8 TESTS 40 170 9216000 2400
48526704 wadissimo G Jan. 18, 2019, 9:23 a.m. OK Java 8 TESTS 40 171 11264000 2400
66622902 dalt G Dec. 11, 2019, 7:43 a.m. OK Java 8 TESTS 40 186 19148800 2400
49810281 PrakharJain G Feb. 11, 2019, 11:47 p.m. OK Java 8 TESTS 40 358 0 2400
49178976 Intrincantation G Jan. 29, 2019, 11:27 p.m. OK Java 8 TESTS 40 405 0 2400
48780389 just_soso G Jan. 23, 2019, 6:34 a.m. OK Java 8 TESTS 40 405 0 2400
49810066 PrakharJain G Feb. 11, 2019, 11:28 p.m. OK Java 8 TESTS 40 561 1843200 2400
61317177 vjudge3 G Sept. 26, 2019, 11:28 a.m. OK MS C++ TESTS 40 78 0 2400
55175120 YESMAths G June 5, 2019, 6:19 p.m. OK PyPy 2 TESTS 40 217 13004800 2400
48591182 limabeans G Jan. 20, 2019, 2:26 a.m. OK PyPy 3 TESTS 40 483 25702400 2400
48592468 limabeans G Jan. 20, 2019, 3:47 a.m. OK PyPy 3 TESTS 40 498 25292800 2400
48509422 romit17 G Jan. 17, 2019, 7:42 p.m. OK Python 2 TESTS 40 1684 11161600 2400
48312716 neal G Jan. 13, 2019, 4 a.m. OK Python 2 TESTS 40 1699 11161600 2400
48363055 rustaurance G Jan. 13, 2019, 7:39 p.m. OK Rust TESTS 40 77 819200 2400

remove filters

Back to search problems