Codeforces Round 934 (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
1943 Codeforces Round 934 (Div. 1) FINISHED False 8700 21223499 March 16, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1507 ) D1 Counting Is Fun (Easy Version) PROGRAMMING combinatorics dp

B'This is the easy version of the problem. The only difference between the two versions is the constraint on n . You can make hacks only if both versions of the problem are solved. An array b of m non-negative integers is said to be good if all the elements of b can be made equal to 0 using the following operation some (possibly, zero) times: You are given two positive integers n , k and a prime number p . Over all (k+1)^n arrays of length n such that 0 <= q a_i <= q k for all 1 <= q i <= q n , count the number of good arrays. Since the number might be too large, you are only required to find it modulo p . Each test contains multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^3 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains three positive integers n , k and p ( 3 <= q n <= q 400 , 1 <= q k <= q n , 10^8 < p < 10^9 ) -- the length of the array a , the upper bound on the elements of a and modulus p . It is guaranteed that the sum of n^2 over all test cases does not exceed 2 cdot 10^5 , and p is prime. For each test case, on a new line, output the number of good arrays modulo p . In the first test case, the 4 good arrays a are: '...

Tutorials

Codeforces Round #934 (Div1, Div2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
251746173 crazy_sea D1 March 16, 2024, 3:28 p.m. OK C++14 (GCC 6-32) TESTS 21 15 201318400
251779997 ppltn D1 March 16, 2024, 4:29 p.m. OK C++14 (GCC 6-32) TESTS 21 46 204800
251787984 keko37 D1 March 16, 2024, 4:47 p.m. OK C++14 (GCC 6-32) TESTS 21 140 1945600
251782942 JCY_ D1 March 16, 2024, 4:35 p.m. OK C++14 (GCC 6-32) TESTS 21 156 1331200
251727921 Crystally D1 March 16, 2024, 3:05 p.m. OK C++14 (GCC 6-32) TESTS 21 187 716800
251868362 MCYang D1 March 17, 2024, 6 a.m. OK C++14 (GCC 6-32) TESTS 21 296 1331200
251826463 MCYang D1 March 16, 2024, 9:09 p.m. OK C++14 (GCC 6-32) TESTS 21 296 1331200
251788775 caoshurui D1 March 16, 2024, 4:49 p.m. OK C++14 (GCC 6-32) TESTS 21 296 1331200
251772010 Alekseyka20x D1 March 16, 2024, 4:12 p.m. OK C++14 (GCC 6-32) TESTS 21 374 1638400
251785195 ZifanWang D1 March 16, 2024, 4:40 p.m. OK C++14 (GCC 6-32) TESTS 21 405 263577600
251775376 superguymj D1 March 16, 2024, 4:19 p.m. OK C++17 (GCC 7-32) TESTS 21 15 204800
251749314 rui_er D1 March 16, 2024, 3:33 p.m. OK C++17 (GCC 7-32) TESTS 21 15 1331200
251787690 Legitimity D1 March 16, 2024, 4:47 p.m. OK C++17 (GCC 7-32) TESTS 21 15 38400000
251737934 KaguyaH D1 March 16, 2024, 3:17 p.m. OK C++17 (GCC 7-32) TESTS 21 15 72294400
251802074 NeverCompromise D1 March 16, 2024, 6:33 p.m. OK C++17 (GCC 7-32) TESTS 21 30 102400
251746112 ksun48 D1 March 16, 2024, 3:28 p.m. OK C++17 (GCC 7-32) TESTS 21 30 512000
251764434 zhangjianjuncd D1 March 16, 2024, 3:58 p.m. OK C++17 (GCC 7-32) TESTS 21 30 217190400
251814294 abc864197532 D1 March 16, 2024, 7:30 p.m. OK C++17 (GCC 7-32) TESTS 21 31 921600
251860056 CodeFurces D1 March 17, 2024, 4:57 a.m. OK C++17 (GCC 7-32) TESTS 21 31 5427200
251841858 llloserqz D1 March 17, 2024, 12:45 a.m. OK C++17 (GCC 7-32) TESTS 21 31 36249600
251780259 iakovlev.zakhar D1 March 16, 2024, 4:29 p.m. OK Java 8 TESTS 21 1731 0
251801348 yvbf D1 March 16, 2024, 6:29 p.m. OK Java 8 TESTS 21 1746 838963200
251740861 arvindf232 D1 March 16, 2024, 3:21 p.m. OK Kotlin 1.7 TESTS 21 1404 214118400
251810499 shade34 D1 March 16, 2024, 7:03 p.m. OK PyPy 3-64 TESTS 21 124 5017600
251761802 conqueror_of_tourist D1 March 16, 2024, 3:53 p.m. OK PyPy 3-64 TESTS 21 155 7680000
251778702 dabbler1 D1 March 16, 2024, 4:26 p.m. OK PyPy 3-64 TESTS 21 2120 15052800
251775565 misorin D1 March 16, 2024, 4:19 p.m. OK PyPy 3-64 TESTS 21 2261 15769600
251769961 sansen D1 March 16, 2024, 4:08 p.m. OK Rust 2021 TESTS 21 499 1945600
251786285 toomer D1 March 16, 2024, 4:43 p.m. OK Rust 2021 TESTS 21 748 1945600
251785117 brown_amaurotis D1 March 16, 2024, 4:40 p.m. OK Rust 2021 TESTS 21 763 3584000
251789208 ngtkana D1 March 16, 2024, 4:50 p.m. OK Rust 2021 TESTS 21 1263 3584000
251759592 Egor D1 March 16, 2024, 3:49 p.m. OK Rust 2021 TESTS 21 1996 1033830400

remove filters

Back to search problems