Codeforces Round 291 (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
514 Codeforces Round 291 (Div. 2) FINISHED False 7200 307891799 Feb. 14, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1445 ) E Darth Vader and Tree PROGRAMMING dp matrices 2500

B"When Darth Vader gets bored, he sits down on the sofa, closes his eyes and thinks of an infinite rooted tree where each node has exactly n sons, at that for each node, the distance between it an its i-th left child equals to di. The Sith Lord loves counting the number of nodes in the tree that are at a distance at most x from the root. The distance is the sum of the lengths of edges on the path between nodes. But he has got used to this activity and even grew bored of it. 'Why does he do that, then?' -- you may ask. It's just that he feels superior knowing that only he can solve this problem. Do you want to challenge Darth Vader himself? Count the required number of nodes. As the answer can be rather large, find it modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line contains two space-separated integers n and x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the number of children of each node and the distance from the root within the range of which you need to count the nodes. The next line contains n space-separated integers di (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89di xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the length of the edge that connects each node with its i-th child. Print a single number -- the number of vertexes in the tree at distance from the root equal to at most x. Pictures to the sample (the yellow color marks the nodes the distance to which is at most three)"...

Tutorials

Codeforces Round #291 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27770509 vjudge4 E June 14, 2017, 8:36 a.m. OK FPC TESTS 35 546 1740800 2500
27772929 vjudge2 E June 14, 2017, 11:18 a.m. OK FPC TESTS 35 608 409600 2500
27768791 vjudge1 E June 14, 2017, 6:36 a.m. OK FPC TESTS 35 608 3276800 2500
35904208 yyhhenry E March 4, 2018, 12:50 a.m. OK FPC TESTS 35 904 2355200 2500
22670325 pparwal12 E Dec. 3, 2016, 6:43 a.m. OK GNU C++ TESTS 35 156 204800 2500
22665572 abhi1agarwal E Dec. 2, 2016, 8:25 p.m. OK GNU C++ TESTS 35 218 716800 2500
27768644 Timsei E June 14, 2017, 6:26 a.m. OK GNU C++ TESTS 35 265 102400 2500
27788836 vjudge1 E June 15, 2017, 7:49 a.m. OK GNU C++ TESTS 35 343 1331200 2500
36291840 yasugongshang E March 15, 2018, 6:47 a.m. OK GNU C++ TESTS 35 343 2355200 2500
27769880 vjudge1 E June 14, 2017, 7:53 a.m. OK GNU C++ TESTS 35 421 1024000 2500
23680005 Minology E Jan. 10, 2017, 11:37 a.m. OK GNU C++ TESTS 35 436 11161600 2500
27773724 vjudge5 E June 14, 2017, 12:09 p.m. OK GNU C++ TESTS 35 468 716800 2500
35202242 AutumnKite E Feb. 13, 2018, 2:29 p.m. OK GNU C++ TESTS 35 468 2355200 2500
25232373 BeLikeIroh E March 5, 2017, 4:24 a.m. OK GNU C++ TESTS 35 468 3276800 2500
40987302 ReaLNero1 E July 30, 2018, 9:09 p.m. OK GNU C++11 TESTS 35 139 204800 2500
30276067 Rezwan.Arefin01 E Sept. 12, 2017, 12:36 a.m. OK GNU C++11 TESTS 35 171 204800 2500
30275974 Rezwan.Arefin01 E Sept. 12, 2017, 12:30 a.m. OK GNU C++11 TESTS 35 171 204800 2500
30656013 newgate E Sept. 24, 2017, 3:22 a.m. OK GNU C++11 TESTS 35 249 204800 2500
53648920 The.Last.Wizard E May 1, 2019, 9:52 p.m. OK GNU C++11 TESTS 35 264 1536000 2500
50738657 Kalam E March 3, 2019, 2:09 p.m. OK GNU C++11 TESTS 35 312 921600 2500
53009234 vjudge1 E April 19, 2019, 11:15 a.m. OK GNU C++11 TESTS 35 343 307200 2500
68742862 Yang1208 E Jan. 14, 2020, 2:33 a.m. OK GNU C++11 TESTS 35 358 204800 2500
56030736 Hongzy E June 25, 2019, 9:24 a.m. OK GNU C++11 TESTS 35 358 204800 2500
54705236 ShafinKhadem E May 27, 2019, 4:31 a.m. OK GNU C++11 TESTS 35 373 1843200 2500
66415814 vjudge4 E Dec. 6, 2019, 5:03 p.m. OK GNU C++14 TESTS 35 93 716800 2500
22670359 abhi_1595 E Dec. 3, 2016, 6:45 a.m. OK GNU C++14 TESTS 35 249 409600 2500
57579989 kobor E July 23, 2019, 8:31 a.m. OK GNU C++14 TESTS 35 296 307200 2500
57558489 kobor E July 22, 2019, 9:40 p.m. OK GNU C++14 TESTS 35 311 204800 2500
57580068 kobor E July 23, 2019, 8:32 a.m. OK GNU C++14 TESTS 35 327 204800 2500
38768927 OmarHashim E May 30, 2018, 10:29 a.m. OK GNU C++14 TESTS 35 343 4096000 2500
36335244 TadijaSebez E March 16, 2018, 7:23 p.m. OK GNU C++14 TESTS 35 374 3584000 2500
40399131 LODB---D E July 16, 2018, 6:49 a.m. OK GNU C++14 TESTS 35 390 204800 2500
60348128 mohitk15 E Sept. 10, 2019, 1:19 p.m. OK GNU C++14 TESTS 35 405 204800 2500
50547170 vjudge5 E Feb. 26, 2019, 10:44 p.m. OK GNU C++14 TESTS 35 405 614400 2500
56375131 lxdlam E July 1, 2019, 6:12 a.m. OK GNU C++17 TESTS 35 218 204800 2500
68418858 vjudge3 E Jan. 8, 2020, 8:25 p.m. OK GNU C++17 TESTS 35 296 204800 2500
62426303 roll_no_1 E Oct. 12, 2019, 2:23 p.m. OK GNU C++17 TESTS 35 342 307200 2500
62426042 roll_no_1 E Oct. 12, 2019, 2:19 p.m. OK GNU C++17 TESTS 35 343 307200 2500
49174645 ivan100sic E Jan. 29, 2019, 7:45 p.m. OK GNU C++17 TESTS 35 343 6348800 2500
54419343 vjudge4 E May 20, 2019, 2:30 p.m. OK GNU C++17 TESTS 35 373 204800 2500
64752362 jahangard E Nov. 12, 2019, 3:41 p.m. OK GNU C++17 TESTS 35 373 307200 2500
53203905 aryanc403 E April 23, 2019, 7:45 p.m. OK GNU C++17 TESTS 35 390 12083200 2500
53203402 aryanc403 E April 23, 2019, 7:24 p.m. OK GNU C++17 TESTS 35 404 12083200 2500
54459722 RedStone E May 21, 2019, 5:55 p.m. OK GNU C++17 TESTS 35 420 409600 2500
46940796 ankurdua15 E Dec. 12, 2018, 4:28 p.m. OK Java 8 TESTS 35 452 0 2500
56186646 Ahmad E June 28, 2019, 5:18 a.m. OK Java 8 TESTS 35 763 0 2500
23910220 sweiss E Jan. 17, 2017, 8:21 p.m. OK Java 8 TESTS 35 1060 20684800 2500
46940723 ankurdua15 E Dec. 12, 2018, 4:26 p.m. OK Java 8 TESTS 35 1184 0 2500
40591267 jport E July 20, 2018, 11:51 p.m. OK Java 8 TESTS 35 1263 0 2500
35884962 ______u______ E March 3, 2018, 1:21 p.m. OK PyPy 2 TESTS 35 171 27136000 2500
35884629 ______n______ E March 3, 2018, 1:15 p.m. OK PyPy 2 TESTS 35 171 27136000 2500
35883908 _____k_____ E March 3, 2018, 1:03 p.m. OK PyPy 2 TESTS 35 171 27136000 2500
35883604 _____i_____ E March 3, 2018, 12:57 p.m. OK PyPy 2 TESTS 35 171 27136000 2500
35873138 ______k______ E March 3, 2018, 7:24 a.m. OK PyPy 2 TESTS 35 171 27136000 2500
35873112 ______h______ E March 3, 2018, 7:23 a.m. OK PyPy 2 TESTS 35 171 27136000 2500
35872407 ______i______ E March 3, 2018, 7:10 a.m. OK PyPy 2 TESTS 35 171 27136000 2500
35870601 ______M______ E March 3, 2018, 6:33 a.m. OK PyPy 2 TESTS 35 171 27136000 2500

remove filters

Back to search problems