Educational Codeforces Round 157 (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
1895 Educational Codeforces Round 157 (Rated for Div. 2) FINISHED False 7200 38157863 Nov. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 795 ) F Fancy Arrays PROGRAMMING combinatorics math matrices

B"Let's call an array a of n non-negative integers fancy if the following conditions hold: You are given n , x and k . Your task is to calculate the number of fancy arrays of length n . Since the answer can be large, print it modulo 10^9+7 . The first line contains a single integer t ( 1 <= t <= 50 ) -- the number of test cases. The only line of each test case contains three integers n , x and k ( 1 <= n, k <= 10^9 ; 0 <= x <= 40 ). For each test case, print a single integer -- the number of fancy arrays of length n , taken modulo 10^9+7 . In the first test case of the example, the following arrays are fancy: "...

Tutorials

Educational Codeforces Round 157 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
231202191 rfpermen F Nov. 3, 2023, 4:29 p.m. OK GNU C++14 TESTS 33 421 9625600
231201576 Jimanbanashi F Nov. 3, 2023, 4:28 p.m. OK GNU C++14 TESTS 33 1014 409600
231272091 ciuim F Nov. 4, 2023, 3:43 a.m. OK GNU C++14 TESTS 33 1123 102400
231271856 slenbol F Nov. 4, 2023, 3:40 a.m. OK GNU C++14 TESTS 33 2074 102400
231269464 StranGePants F Nov. 4, 2023, 3:09 a.m. OK GNU C++14 TESTS 33 2152 102400
231267948 a_little_cute F Nov. 4, 2023, 2:50 a.m. OK GNU C++14 TESTS 33 2308 14336000
231267775 a_little_cute F Nov. 4, 2023, 2:48 a.m. OK GNU C++14 TESTS 33 2355 14336000
231196045 prvocislo F Nov. 3, 2023, 4:16 p.m. OK GNU C++17 TESTS 33 1185 0
231213353 ParsaS F Nov. 3, 2023, 5:16 p.m. OK GNU C++17 TESTS 33 1606 512000
231272330 Kriz_Wu F Nov. 4, 2023, 3:47 a.m. OK GNU C++17 TESTS 33 1778 3891200
231240838 Md._Nahid_Ullah_Joy F Nov. 3, 2023, 7:53 p.m. OK GNU C++17 TESTS 33 2137 102400
231240603 patou F Nov. 3, 2023, 7:51 p.m. OK GNU C++17 TESTS 33 2137 614400
231269519 QWERTY_123456 F Nov. 4, 2023, 3:10 a.m. OK GNU C++17 TESTS 33 2262 819200
231264731 hokarikanae F Nov. 4, 2023, 2:06 a.m. OK GNU C++17 (64) TESTS 33 187 0
231259909 LXH-cat F Nov. 4, 2023, 12:56 a.m. OK GNU C++17 (64) TESTS 33 280 0
231237287 chappy1 F Nov. 3, 2023, 7:30 p.m. OK GNU C++17 (64) TESTS 33 312 8499200
231245865 supine F Nov. 3, 2023, 8:36 p.m. OK GNU C++17 (64) TESTS 33 327 102400
231260867 DJ2006 F Nov. 4, 2023, 1:11 a.m. OK GNU C++17 (64) TESTS 33 374 0
231266885 grass8sheep F Nov. 4, 2023, 2:36 a.m. OK GNU C++17 (64) TESTS 33 421 102400
231205098 czhxm F Nov. 3, 2023, 4:34 p.m. OK GNU C++17 (64) TESTS 33 530 0
231272913 Superposition F Nov. 4, 2023, 3:55 a.m. OK GNU C++17 (64) TESTS 33 639 307200
231240033 Kirill22 F Nov. 3, 2023, 7:47 p.m. OK GNU C++17 (64) TESTS 33 639 409600
231229570 liympanda F Nov. 3, 2023, 6:46 p.m. OK GNU C++17 (64) TESTS 33 639 5017600
231266821 aryan.kadyrov F Nov. 4, 2023, 2:35 a.m. OK GNU C++20 (64) TESTS 33 31 102400
231233892 shobonvip F Nov. 3, 2023, 7:10 p.m. OK GNU C++20 (64) TESTS 33 187 921600
231198692 tonegawa F Nov. 3, 2023, 4:22 p.m. OK GNU C++20 (64) TESTS 33 234 102400
231281960 __Misuki F Nov. 4, 2023, 5:51 a.m. OK GNU C++20 (64) TESTS 33 249 0
231274111 itz_sam F Nov. 4, 2023, 4:12 a.m. OK GNU C++20 (64) TESTS 33 265 102400
231217319 K-423 F Nov. 3, 2023, 5:43 p.m. OK GNU C++20 (64) TESTS 33 265 102400
231215433 K-423 F Nov. 3, 2023, 5:30 p.m. OK GNU C++20 (64) TESTS 33 265 102400
231221369 menezesd2 F Nov. 3, 2023, 6:08 p.m. OK GNU C++20 (64) TESTS 33 280 204800
231274724 A_G F Nov. 4, 2023, 4:21 a.m. OK GNU C++20 (64) TESTS 33 296 102400
231195937 How_to_solve_problem_B F Nov. 3, 2023, 4:16 p.m. OK GNU C++20 (64) TESTS 33 296 102400
231274146 Antonio_Colapso_07 F Nov. 4, 2023, 4:12 a.m. OK PyPy 3-64 TESTS 33 1060 13926400
231249122 Sparkle_Twilight F Nov. 3, 2023, 9:15 p.m. OK PyPy 3-64 TESTS 33 1544 11878400

remove filters

Back to search problems