Codeforces Round 861 (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
1808 Codeforces Round 861 (Div. 2) FINISHED False 7200 57099263 March 29, 2023, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1387 ) E1 Minibuses on Venus (easy version) PROGRAMMING brute force combinatorics dp 2200

B"This is the easy version of the problem. The only difference between the three versions is the constraints on n and k . You can make hacks only if all versions of the problem are solved. Maxim is a minibus driver on Venus. To ride on Maxim's minibus, you need a ticket. Each ticket has a number consisting of n digits. However, as we know, the residents of Venus use a numeral system with base k , rather than the decimal system. Therefore, the ticket number can be considered as a sequence of n integers from 0 to k-1 , inclusive. The residents of Venus consider a ticket to be lucky if there is a digit on it that is equal to the sum of the remaining digits, modulo k . For example, if k=10 , then the ticket 7135 is lucky because 7 + 1 + 5 equiv 3 pmod{10} . On the other hand, the ticket 7136 is not lucky because no digit is equal to the sum of the others modulo 10 . Once, while on a trip, Maxim wondered: how many lucky tickets exist? At the same time, Maxim understands that this number can be very large, so he is interested only in the answer modulo some prime number m . The only line of the input contains three integers n , k and m ( 1 <= n <= 100 , 1 <= k <= 30 , 10^8 <= m <= 10^9 + 7 , m is a prime number) -- the number of digits on the ticket, the base of the numeral system on Venus, and the module for answer calculation. Print one integer -- the number of lucky tickets modulo m , i. e. the remainder after dividing the answer by m . In the first example, there are only four lucky tickets: 000 , 011 , 101 , and 110 ."...

Tutorials

Codeforces Round #861 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
200069197 liaopengfei E1 April 1, 2023, 3:48 a.m. OK GNU C++14 TESTS 62 15 0 2200
199931176 Lucky_Glass E1 March 31, 2023, 10:15 a.m. OK GNU C++14 TESTS 62 15 0 2200
199798469 caijianhong E1 March 30, 2023, 8:34 a.m. OK GNU C++14 TESTS 62 15 0 2200
199772492 Leasier E1 March 30, 2023, 1:53 a.m. OK GNU C++14 TESTS 62 15 0 2200
199933120 hhhyyyfff E1 March 31, 2023, 10:36 a.m. OK GNU C++14 TESTS 62 15 102400 2200
199902281 GK_Leo0 E1 March 31, 2023, 3:32 a.m. OK GNU C++14 TESTS 62 31 0 2200
199920601 SqrtSecond E1 March 31, 2023, 8:16 a.m. OK GNU C++14 TESTS 62 31 204800 2200
199831469 omeganot E1 March 30, 2023, 1:45 p.m. OK GNU C++14 TESTS 62 31 204800 2200
199951174 Galetx E1 March 31, 2023, 1:32 p.m. OK GNU C++14 TESTS 62 31 409600 2200
199898160 heqiu E1 March 31, 2023, 1:55 a.m. OK GNU C++14 TESTS 62 31 409600 2200
200031093 Md._Nahid_Ullah_Joy E1 March 31, 2023, 6:04 p.m. OK GNU C++17 TESTS 62 15 0 2200
199924136 E-ray E1 March 31, 2023, 8:57 a.m. OK GNU C++17 TESTS 62 15 0 2200
199912528 hanchangseo E1 March 31, 2023, 6:27 a.m. OK GNU C++17 TESTS 62 15 0 2200
199827568 Sung.An E1 March 30, 2023, 1:15 p.m. OK GNU C++17 TESTS 62 15 0 2200
199770739 zft_4995 E1 March 30, 2023, 1:12 a.m. OK GNU C++17 TESTS 62 15 0 2200
199948616 Solashiro E1 March 31, 2023, 1:07 p.m. OK GNU C++17 TESTS 62 15 102400 2200
199898288 Arktomson E1 March 31, 2023, 1:58 a.m. OK GNU C++17 TESTS 62 15 102400 2200
199884311 kondasujay2 E1 March 30, 2023, 9:09 p.m. OK GNU C++17 TESTS 62 15 204800 2200
199908945 krijesnica E1 March 31, 2023, 5:40 a.m. OK GNU C++17 TESTS 62 15 307200 2200
199772686 gabrielwu E1 March 30, 2023, 1:57 a.m. OK GNU C++17 TESTS 62 15 307200 2200
199936689 Travellerbug E1 March 31, 2023, 11:15 a.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199903502 vjudge2 E1 March 31, 2023, 3:59 a.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199902865 bkifhr8 E1 March 31, 2023, 3:45 a.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199874957 birka0 E1 March 30, 2023, 7:22 p.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199818958 wygzgyw E1 March 30, 2023, noon OK GNU C++17 (64) TESTS 62 15 0 2200
199771655 enslaved E1 March 30, 2023, 1:32 a.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199744902 MarcosK E1 March 29, 2023, 6:42 p.m. OK GNU C++17 (64) TESTS 62 15 0 2200
199872302 ImmortalPhoenix E1 March 30, 2023, 6:47 p.m. OK GNU C++17 (64) TESTS 62 15 921600 2200
199791537 afuafu E1 March 30, 2023, 7:11 a.m. OK GNU C++17 (64) TESTS 62 15 1126400 2200
199919843 Weobe E1 March 31, 2023, 8:06 a.m. OK GNU C++17 (64) TESTS 62 15 1433600 2200
200042492 36champ E1 March 31, 2023, 8:02 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
200040592 1RONMAN E1 March 31, 2023, 7:42 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199955088 ikaurov E1 March 31, 2023, 2:11 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199949934 jiuzheba E1 March 31, 2023, 1:19 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199948915 coderdhanraj E1 March 31, 2023, 1:10 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199946817 G_LX E1 March 31, 2023, 12:51 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199945192 Omer223 E1 March 31, 2023, 12:36 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199944273 Chime E1 March 31, 2023, 12:27 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199901843 Reanap E1 March 31, 2023, 3:23 a.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199892045 Osama_Saleh E1 March 30, 2023, 11:24 p.m. OK GNU C++20 (64) TESTS 62 15 0 2200
199949196 sasikirannallapu E1 March 31, 2023, 1:12 p.m. OK Java 11 TESTS 62 217 0 2200
199751622 dzhi E1 March 29, 2023, 8:02 p.m. OK Java 11 TESTS 62 436 6348800 2200
199745185 dzhi E1 March 29, 2023, 6:46 p.m. OK Java 11 TESTS 62 452 6348800 2200
199913059 Socrates1232 E1 March 31, 2023, 6:34 a.m. OK Java 17 TESTS 62 280 512000 2200
199887334 lpychemistry E1 March 30, 2023, 9:52 p.m. OK Java 8 TESTS 62 124 0 2200
199917889 bvf E1 March 31, 2023, 7:39 a.m. OK PyPy 3 TESTS 62 108 1740800 2200
200026525 Lyle0711 E1 March 31, 2023, 5:28 p.m. OK PyPy 3 TESTS 62 124 2457600 2200
199912698 undefinedZer0 E1 March 31, 2023, 6:29 a.m. OK PyPy 3-64 TESTS 62 62 0 2200
199770334 bronze_coder E1 March 30, 2023, 1:03 a.m. OK PyPy 3-64 TESTS 62 62 0 2200
199753252 Alex239 E1 March 29, 2023, 8:21 p.m. OK PyPy 3-64 TESTS 62 124 4403200 2200
199827713 sushmanth.dampur8780 E1 March 30, 2023, 1:16 p.m. OK PyPy 3-64 TESTS 62 686 17612800 2200

remove filters

Back to search problems