Educational Codeforces Round 84 (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
1327 Educational Codeforces Round 84 (Rated for Div. 2) FINISHED False 7200 152378710 March 23, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1720 ) F AND Segments PROGRAMMING bitmasks combinatorics data structures dp two pointers 2500

B'You are given three integers n , k , m and m conditions (l_1, r_1, x_1), (l_2, r_2, x_2), ... , (l_m, r_m, x_m) . Calculate the number of distinct arrays a , consisting of n integers such that: Two arrays a and b are considered different if there exists such a position i that a_i neq b_i . The number can be pretty large so print it modulo 998244353 . The first line contains three integers n , k and m ( 1 <= n <= 5 cdot 10^5 , 1 <= k <= 30 , 0 <= m <= 5 cdot 10^5 ) -- the length of the array a , the value such that all numbers in a should be smaller than 2^k and the number of conditions, respectively. Each of the next m lines contains the description of a condition l_i , r_i and x_i ( 1 <= l_i <= r_i <= n , 0 <= x_i < 2^k ) -- the borders of the condition segment and the required bitwise AND value on it. Print a single integer -- the number of distinct arrays a that satisfy all the above conditions modulo 998244353 . You can recall what is a bitwise AND operation here. In the first example, the answer is the following arrays: [3, 3, 7, 6] , [3, 7, 7, 6] and [7, 3, 7, 6] . '...

Tutorials

Educational Codeforces Round 84 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
74374268 libra7z F March 26, 2020, 10:16 a.m. OK D TESTS 70 1075 94822400 2500
74372953 libra7z F March 26, 2020, 9:59 a.m. OK D TESTS 70 1154 94822400 2500
74183194 Fuyuki F March 24, 2020, 9:35 a.m. OK GNU C++11 TESTS 70 234 12185600 2500
74359995 wasa855 F March 26, 2020, 7:07 a.m. OK GNU C++11 TESTS 70 249 12083200 2500
74251465 TheShadow_DC F March 25, 2020, 3 a.m. OK GNU C++11 TESTS 70 264 12083200 2500
74389213 Glu_TtoNy F March 26, 2020, 1:13 p.m. OK GNU C++11 TESTS 70 280 12083200 2500
74389137 vjudge3 F March 26, 2020, 1:12 p.m. OK GNU C++11 TESTS 70 280 12083200 2500
74213120 Fruiteaaa F March 24, 2020, 2:52 p.m. OK GNU C++11 TESTS 70 280 12083200 2500
74285458 lx_zjk F March 25, 2020, 11:51 a.m. OK GNU C++11 TESTS 70 296 12083200 2500
74284846 lx_zjk F March 25, 2020, 11:44 a.m. OK GNU C++11 TESTS 70 296 12083200 2500
74169772 AutumnKite F March 24, 2020, 6:52 a.m. OK GNU C++11 TESTS 70 311 28876800 2500
74127491 Froggy_Lover F March 23, 2020, 4:53 p.m. OK GNU C++11 TESTS 69 311 28876800 2500
74548155 zzu20172430702 F March 27, 2020, 10:36 a.m. OK GNU C++14 TESTS 70 421 24064000 2500
74248120 tbzard F March 25, 2020, 12:56 a.m. OK GNU C++14 TESTS 70 451 16076800 2500
74549510 zzu20172430702 F March 27, 2020, 10:52 a.m. OK GNU C++14 TESTS 70 467 12083200 2500
74165496 ytriayggg F March 24, 2020, 6:03 a.m. OK GNU C++14 TESTS 69 467 14028800 2500
74228112 Limeni F March 24, 2020, 5:44 p.m. OK GNU C++14 TESTS 70 468 14028800 2500
74149208 krijgertje F March 23, 2020, 10:01 p.m. OK GNU C++14 TESTS 69 483 12083200 2500
74217613 shdut0901 F March 24, 2020, 3:44 p.m. OK GNU C++14 TESTS 70 561 12083200 2500
74202988 tienthanh214 F March 24, 2020, 1:14 p.m. OK GNU C++14 TESTS 70 561 12083200 2500
74181144 vipghn2003 F March 24, 2020, 9:10 a.m. OK GNU C++14 TESTS 70 577 16076800 2500
74199091 heyuhhh F March 24, 2020, 12:35 p.m. OK GNU C++14 TESTS 70 592 12083200 2500
74344587 alexei_pc F March 26, 2020, 1:22 a.m. OK GNU C++17 TESTS 70 405 12083200 2500
74243408 popashtefan10 F March 24, 2020, 10:01 p.m. OK GNU C++17 TESTS 70 452 14028800 2500
74228890 fleimgruber F March 24, 2020, 5:54 p.m. OK GNU C++17 TESTS 70 467 14028800 2500
74194876 Max.D. F March 24, 2020, 11:51 a.m. OK GNU C++17 TESTS 70 467 14028800 2500
74161261 tlnllkbp F March 24, 2020, 4:33 a.m. OK GNU C++17 TESTS 69 467 24064000 2500
74177250 jhdonghj112 F March 24, 2020, 8:21 a.m. OK GNU C++17 TESTS 70 514 12083200 2500
74153197 K0u1e F March 24, 2020, 12:34 a.m. OK GNU C++17 TESTS 69 514 12083200 2500
74343434 Medeowex F March 26, 2020, 12:38 a.m. OK GNU C++17 TESTS 70 514 14540800 2500
74530475 bupt_magicstar F March 27, 2020, 6:24 a.m. OK GNU C++17 TESTS 70 530 14028800 2500
74205122 AM. F March 24, 2020, 1:36 p.m. OK GNU C++17 TESTS 70 530 14028800 2500
74327472 neal F March 25, 2020, 6:50 p.m. OK GNU C++17 (64) TESTS 70 358 12083200 2500
74327303 neal F March 25, 2020, 6:48 p.m. OK GNU C++17 (64) TESTS 70 374 10035200 2500
74148306 neal F March 23, 2020, 9:37 p.m. OK GNU C++17 (64) TESTS 69 405 21299200 2500
74148190 neal F March 23, 2020, 9:34 p.m. OK GNU C++17 (64) TESTS 69 420 21299200 2500
74196739 axiomofchoice F March 24, 2020, 12:11 p.m. OK GNU C++17 (64) TESTS 70 451 16076800 2500
74189278 frogcatcher F March 24, 2020, 10:49 a.m. OK GNU C++17 (64) TESTS 70 545 20070400 2500
74218004 Kuroni F March 24, 2020, 3:48 p.m. OK GNU C++17 (64) TESTS 70 546 17920000 2500
74371544 Asagami F March 26, 2020, 9:41 a.m. OK GNU C++17 (64) TESTS 70 561 12083200 2500
74323050 ivan100sic F March 25, 2020, 6:01 p.m. OK GNU C++17 (64) TESTS 70 561 23449600 2500
74155352 UniverseofHK F March 24, 2020, 1:52 a.m. OK GNU C++17 (64) TESTS 69 577 14028800 2500
74274100 happy15 F March 25, 2020, 9:34 a.m. OK Java 11 TESTS 70 873 14540800 2500
74248021 polyakoff F March 25, 2020, 12:52 a.m. OK Java 11 TESTS 70 1590 33894400 2500
74128339 SecondThread F March 23, 2020, 4:58 p.m. OK Java 8 TESTS 69 2776 74240000 2500
74129834 SecondThread F March 23, 2020, 5:10 p.m. OK Java 8 TESTS 69 2838 74240000 2500
74129777 SecondThread F March 23, 2020, 5:09 p.m. OK Java 8 TESTS 69 2869 74240000 2500
74215820 SecondThread F March 24, 2020, 3:22 p.m. OK Java 8 TESTS 70 2963 74240000 2500
74353858 Spheniscine F March 26, 2020, 5:40 a.m. OK Kotlin TESTS 70 997 34713600 2500
74254156 Spheniscine F March 25, 2020, 4:13 a.m. OK Kotlin TESTS 70 1482 34713600 2500
74253771 Spheniscine F March 25, 2020, 4:02 a.m. OK Kotlin TESTS 70 2152 34201600 2500
74118055 Electromaster F March 23, 2020, 4:22 p.m. OK Kotlin TESTS 69 2464 29593600 2500
74372252 tarattata1 F March 26, 2020, 9:50 a.m. OK MS C++ TESTS 70 1731 33996800 2500
74527258 Monotonic F March 27, 2020, 5:26 a.m. OK MS C++ 2017 TESTS 70 685 14028800 2500
74293375 vjudge3 F March 25, 2020, 1:12 p.m. OK MS C++ 2017 TESTS 70 873 12083200 2500
74580288 60D9 F March 27, 2020, 4:38 p.m. OK MS C++ 2017 TESTS 70 1793 20070400 2500
74277203 tamato F March 25, 2020, 10:12 a.m. OK PyPy 3 TESTS 70 1700 145612800 2500
74120365 sansen F March 23, 2020, 4:27 p.m. OK Rust TESTS 69 670 33894400 2500
74351387 lucifer1004 F March 26, 2020, 4:51 a.m. OK Rust TESTS 70 1341 204083200 2500

remove filters

Back to search problems