Codeforces Round 635 (Div. 1)

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
1336 Codeforces Round 635 (Div. 1) FINISHED False 9000 150391511 April 15, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 358 ) E2 Chiori and Doll Picking (hard version) PROGRAMMING bitmasks brute force combinatorics math 3400

B'This is the hard version of the problem. The only difference between easy and hard versions is the constraint of m . You can make hacks only if both versions are solved. Chiori loves dolls and now she is going to decorate her bedroom! As a doll collector, Chiori has got n dolls. The i -th doll has a non-negative integer value a_i ( a_i < 2^m , m is given). Chiori wants to pick some (maybe zero) dolls for the decoration, so there are 2^n different picking ways. Let x be the bitwise-xor-sum of values of dolls Chiori picks (in case Chiori picks no dolls x = 0 ). The value of this picking way is equal to the number of 1 -bits in the binary representation of x . More formally, it is also equal to the number of indices 0 <= q i < m , such that <= ft lfloor frac{x}{2^i} right rfloor is odd. Tell her the number of picking ways with value i for each integer i from 0 to m . Due to the answers can be very huge, print them by modulo 998 ,244 ,353 . The first line contains two integers n and m ( 1 <= n <= 2 cdot 10^5 , 0 <= m <= 53 ) -- the number of dolls and the maximum value of the picking way. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i < 2^m ) -- the values of dolls. Print m+1 integers p_0, p_1, ldots, p_m -- p_i is equal to the number of picking ways with value i by modulo 998 ,244 ,353 . '...

Tutorials

Codeforces Round #635 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
77065704 dqa2020 E2 April 17, 2020, 11:14 a.m. OK GNU C++11 TESTS 120 327 1638400 3400
77140174 ohweonfire E2 April 18, 2020, 4:11 a.m. OK GNU C++11 TESTS 121 343 102400 3400
77072550 dqa2020 E2 April 17, 2020, 12:22 p.m. OK GNU C++11 TESTS 120 343 1638400 3400
77451823 mobu233 E2 April 21, 2020, 9:53 a.m. OK GNU C++11 TESTS 121 436 2150400 3400
77065243 dqa2020 E2 April 17, 2020, 11:10 a.m. OK GNU C++11 TESTS 120 452 2560000 3400
77055382 dqa2020 E2 April 17, 2020, 9:21 a.m. OK GNU C++11 TESTS 120 483 2560000 3400
77139889 ohweonfire E2 April 18, 2020, 4:04 a.m. OK GNU C++11 TESTS 121 498 307200 3400
77050555 Backseat-Stargazer E2 April 17, 2020, 8:25 a.m. OK GNU C++11 TESTS 120 498 1126400 3400
76928917 WZYYN E2 April 16, 2020, 5:02 a.m. OK GNU C++11 TESTS 120 498 1536000 3400
76974183 zxyoi E2 April 16, 2020, 1:13 p.m. OK GNU C++11 TESTS 120 530 7475200 3400
77129768 krijgertje E2 April 17, 2020, 10:43 p.m. OK GNU C++14 TESTS 121 420 1638400 3400
76978793 yhx-12243 E2 April 16, 2020, 1:56 p.m. OK GNU C++14 TESTS 120 452 0 3400
77438031 nealchen E2 April 21, 2020, 6:54 a.m. OK GNU C++14 TESTS 121 468 307200 3400
77332964 zx2003 E2 April 20, 2020, 6:42 a.m. OK GNU C++14 TESTS 121 530 1331200 3400
77251841 jerome_wei E2 April 19, 2020, 7:48 a.m. OK GNU C++14 TESTS 121 576 102400 3400
77234382 crasysky E2 April 19, 2020, 3:05 a.m. OK GNU C++14 TESTS 121 577 102400 3400
77027873 mayaohua2003 E2 April 17, 2020, 1:54 a.m. OK GNU C++14 TESTS 120 592 0 3400
77311393 nw_cpp E2 April 19, 2020, 8:37 p.m. OK GNU C++14 TESTS 121 592 5427200 3400
76849352 boboniu E2 April 15, 2020, 3:17 p.m. OK GNU C++14 TESTS 120 592 5427200 3400
77575850 Combi E2 April 21, 2020, 5:31 p.m. OK GNU C++14 TESTS 121 608 0 3400
77451152 nickluo E2 April 21, 2020, 9:45 a.m. OK GNU C++17 TESTS 121 529 512000 3400
77127676 marwa_gamal5 E2 April 17, 2020, 9:49 p.m. OK GNU C++17 TESTS 121 561 1638400 3400
77358508 Feechka_ E2 April 20, 2020, 12:18 p.m. OK GNU C++17 TESTS 121 561 270643200 3400
77097440 aid E2 April 17, 2020, 4:02 p.m. OK GNU C++17 TESTS 121 577 1638400 3400
77453619 arnab_nandy7 E2 April 21, 2020, 10:14 a.m. OK GNU C++17 TESTS 121 577 5427200 3400
77322522 guyan E2 April 20, 2020, 2:57 a.m. OK GNU C++17 TESTS 121 592 0 3400
77957829 RobeZH E2 April 24, 2020, 9:09 p.m. OK GNU C++17 TESTS 121 623 307200 3400
77043024 yhchang3 E2 April 17, 2020, 6:51 a.m. OK GNU C++17 TESTS 120 639 0 3400
77962985 RobeZH E2 April 24, 2020, 11:08 p.m. OK GNU C++17 TESTS 121 701 307200 3400
77957994 RobeZH E2 April 24, 2020, 9:12 p.m. OK GNU C++17 TESTS 121 701 307200 3400
77032081 ecnerwala E2 April 17, 2020, 3:45 a.m. OK GNU C++17 (64) TESTS 120 233 0 3400
77033466 scott_wu E2 April 17, 2020, 4:17 a.m. OK GNU C++17 (64) TESTS 120 249 0 3400
76901435 HIR180 E2 April 15, 2020, 7:01 p.m. OK GNU C++17 (64) TESTS 120 358 120524800 3400
76903834 Benq E2 April 15, 2020, 8:05 p.m. OK GNU C++17 (64) TESTS 120 452 1638400 3400
77025981 vjudge4 E2 April 17, 2020, 12:48 a.m. OK GNU C++17 (64) TESTS 120 530 5427200 3400
77097781 aid E2 April 17, 2020, 4:05 p.m. OK GNU C++17 (64) TESTS 121 561 1638400 3400
77378545 YangDavid E2 April 20, 2020, 3:27 p.m. OK GNU C++17 (64) TESTS 121 826 102400 3400
77067200 Nyaan E2 April 17, 2020, 11:29 a.m. OK GNU C++17 (64) TESTS 120 904 3276800 3400
77029403 aaaaajack E2 April 17, 2020, 2:40 a.m. OK GNU C++17 (64) TESTS 120 1013 102400 3400
77067065 Nyaan E2 April 17, 2020, 11:28 a.m. OK GNU C++17 (64) TESTS 120 1746 3276800 3400

remove filters

Back to search problems