Codeforces Round 1004 (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
2066 Codeforces Round 1004 (Div. 1) FINISHED False 7200 37121123 Feb. 11, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1420 ) D1 Club of Young Aircraft Builders (easy version) PROGRAMMING combinatorics dp math

This is the easy version of the problem. The difference between the versions is that in this version, all (a_i = 0). You can hack only if you solved all versions of this problem. There is an (n)-story building, with floors numbered from (1) to (n) from bottom to top. There is exactly one person living on each floor. All the residents of the building have a very important goal today: to launch at least (c) paper airplanes collectively. The residents will launch the airplanes in turn. When a person from the (i)-th floor launches an airplane, all residents on the floors from (1) to (i) can see it as it descends to the ground. If, from the perspective of the resident on the (i)-th floor, at least (c) airplanes have already been launched, they will not launch any more airplanes themselves. It is also known that by the end of the day, from the perspective of each resident in the building, at least (c) airplanes have been launched, and a total of (m) airplanes were thrown. You carefully monitored this flash mob and recorded which resident from which floor threw each airplane. Unfortunately, the information about who exactly threw some airplanes has been lost. Find the number of ways to fill in the gaps so that the information could be credible. Since the answer can be quite large, output it modulo (10^9 + 7). In this version of the problem, all information has been lost, and the entire array consists of gaps. It is also possible that you made a mistake in your records, and there is no possible way to restore the gaps. In that case, the answer is considered to be (0). Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test case contains three integers (n, c, m) ((1 \le n \le 100), (1 \le c \le 100), (c \le m \le n \cdot c)) — the number of floors in the buil

Tutorials

139415

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
305699005 MrPizza D1 Feb. 11, 2025, 4:34 p.m. OK C++17 (GCC 7-32) TESTS 29 77 0
305688986 SinhaSatwik D1 Feb. 11, 2025, 4:19 p.m. OK C++17 (GCC 7-32) TESTS 29 77 0
305698907 aaronkim00 D1 Feb. 11, 2025, 4:34 p.m. OK C++17 (GCC 7-32) TESTS 29 77 204800
305693137 4927618350 D1 Feb. 11, 2025, 4:27 p.m. OK C++17 (GCC 7-32) TESTS 29 93 102400
305753490 Lacrymira D1 Feb. 12, 2025, 4:01 a.m. OK C++17 (GCC 7-32) TESTS 29 93 19251200
305684370 liympanda D1 Feb. 11, 2025, 4:11 p.m. OK C++17 (GCC 7-32) TESTS 29 108 5427200
305690879 saaaalty D1 Feb. 11, 2025, 4:23 p.m. OK C++17 (GCC 7-32) TESTS 29 202 4300800
305688549 Zqr123456 D1 Feb. 11, 2025, 4:18 p.m. OK C++17 (GCC 7-32) TESTS 29 234 401203200
305688775 Az3ar D1 Feb. 11, 2025, 4:19 p.m. OK C++17 (GCC 7-32) TESTS 29 406 5427200
305755922 vanisthebest D1 Feb. 12, 2025, 4:30 a.m. OK C++17 (GCC 7-32) TESTS 29 421 5427200
305749677 Donaldqian0712 D1 Feb. 12, 2025, 3:06 a.m. OK C++20 (GCC 13-64) TESTS 29 46 102400
305738298 maxplus D1 Feb. 11, 2025, 11:06 p.m. OK C++20 (GCC 13-64) TESTS 29 61 102400
305674242 nishkarsh D1 Feb. 11, 2025, 3:52 p.m. OK C++20 (GCC 13-64) TESTS 29 62 102400
305694297 TheScrasse D1 Feb. 11, 2025, 4:28 p.m. OK C++20 (GCC 13-64) TESTS 29 62 204800
305673238 EnEm D1 Feb. 11, 2025, 3:51 p.m. OK C++20 (GCC 13-64) TESTS 29 62 204800
305730586 stan23456 D1 Feb. 11, 2025, 9:12 p.m. OK C++20 (GCC 13-64) TESTS 29 62 307200
305714158 miscalculation53 D1 Feb. 11, 2025, 6:23 p.m. OK C++20 (GCC 13-64) TESTS 29 62 307200
305730702 AKSLEGION D1 Feb. 11, 2025, 9:14 p.m. OK C++20 (GCC 13-64) TESTS 29 77 102400
305677554 Kude D1 Feb. 11, 2025, 3:58 p.m. OK C++20 (GCC 13-64) TESTS 29 77 819200
305696511 culver0412 D1 Feb. 11, 2025, 4:30 p.m. OK C++20 (GCC 13-64) TESTS 29 77 4915200
305710369 rewhile D1 Feb. 11, 2025, 5:58 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 62 102400
305674248 maspy D1 Feb. 11, 2025, 3:52 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 62 307200
305721779 itsiftikar02 D1 Feb. 11, 2025, 7:31 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 77 102400
305709459 Ivan_len D1 Feb. 11, 2025, 5:52 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 77 102400
305657926 Sugar_fan D1 Feb. 11, 2025, 3:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 77 102400
305654725 Naruto_x D1 Feb. 11, 2025, 3:21 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 77 204800
305659869 Endagorion D1 Feb. 11, 2025, 3:29 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 77 307200
305660139 ecnerwala D1 Feb. 11, 2025, 3:29 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 93 102400
305661469 ProjectCF D1 Feb. 11, 2025, 3:31 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 108 8089600
305676469 waipoli D1 Feb. 11, 2025, 3:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 124 2048000
305722169 Gassa D1 Feb. 11, 2025, 7:34 p.m. OK D TESTS 29 937 2867200
305740904 rainboy D1 Feb. 12, 2025, 12:20 a.m. OK GNU C11 TESTS 29 1452 204800
305653612 Electromaster D1 Feb. 11, 2025, 3:20 p.m. OK Kotlin 1.9 TESTS 29 1906 6758400
305750574 smilences D1 Feb. 12, 2025, 3:19 a.m. OK PyPy 3-64 TESTS 29 171 4505600
305743184 conqueror_of_tourist D1 Feb. 12, 2025, 1:12 a.m. OK PyPy 3-64 TESTS 29 202 7782400
305745949 smilences D1 Feb. 12, 2025, 2:04 a.m. OK PyPy 3-64 TESTS 29 218 4608000
305686053 aPNJ777 D1 Feb. 11, 2025, 4:14 p.m. OK PyPy 3-64 TESTS 29 296 28774400
305685060 shade34 D1 Feb. 11, 2025, 4:12 p.m. OK PyPy 3-64 TESTS 29 577 9011200
305665904 chinerist D1 Feb. 11, 2025, 3:38 p.m. OK PyPy 3-64 TESTS 29 828 13209600
305703963 eepsilon D1 Feb. 11, 2025, 5:24 p.m. OK PyPy 3-64 TESTS 29 1030 8704000
305717188 teekaytai D1 Feb. 11, 2025, 6:46 p.m. OK PyPy 3-64 TESTS 29 3452 4812800
305683346 cologne1723 D1 Feb. 11, 2025, 4:09 p.m. OK Rust 2021 TESTS 29 436 102400
305669671 sansen D1 Feb. 11, 2025, 3:45 p.m. OK Rust 2021 TESTS 29 483 0
305662877 Egor D1 Feb. 11, 2025, 3:34 p.m. OK Rust 2021 TESTS 29 686 4505600

remove filters

Back to search problems