Codeforces Round 295 (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
520 Codeforces Round 295 (Div. 2) FINISHED False 7500 312332404 March 2, 2015, 7 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1900 ) E Pluses everywhere PROGRAMMING combinatorics dp math number theory 2500

B'Vasya is sitting on an extremely boring math class. To have fun, he took a piece of paper and wrote out n numbers on a single line. After that, Vasya began to write out different ways to put pluses ("+") in the line between certain digits in the line so that the result was a correct arithmetic expression; formally, no two pluses in such a partition can stand together (between any two adjacent pluses there must be at least one digit), and no plus can stand at the beginning or the end of a line. For example, in the string 100500, ways 100500 (add no pluses), 1+00+500 or 10050+0 are correct, and ways 100++500, +1+0+0+5+0+0 or 100500+ are incorrect. The lesson was long, and Vasya has written all the correct ways to place exactly k pluses in a string of digits. At this point, he got caught having fun by a teacher and he was given the task to calculate the sum of all the resulting arithmetic expressions by the end of the lesson (when calculating the value of an expression the leading zeros should be ignored). As the answer can be large, Vasya is allowed to get only its remainder modulo 109 xe2 x80 x89+ xe2 x80 x897. Help him! The first line contains two integers, n and k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89< xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains a string consisting of n digits. Print the answer to the problem modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first sample the result equals (1 xe2 x80 x89+ xe2 x80 x8908) xe2 x80 x89+ xe2 x80 x89(10 xe2 x80 x89+ xe2 x80 x898) xe2 x80 x89= xe2 x80 x8927. In the second sample the result equals 1 xe2 x80 x89+ xe2 x80 x890 xe2 x80 x89+ xe2 x80 x898 xe2 x80 x89= xe2 x80 x899.'...

Tutorials

Codeforces Round #295 Editorial (now with bonuses!)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
37634800 luogu_bot4 E April 26, 2018, 12:08 p.m. OK GNU C++ TESTS 34 30 6041600 2500
41148689 vjudge2 E Aug. 3, 2018, 7:47 a.m. OK GNU C++ TESTS 34 31 1638400 2500
41290626 luogu_bot4 E Aug. 7, 2018, 2:37 a.m. OK GNU C++ TESTS 34 31 1740800 2500
40986942 ReaLNero1 E July 30, 2018, 8:51 p.m. OK GNU C++ TESTS 34 31 1945600 2500
41244749 luogu_bot2 E Aug. 5, 2018, 12:28 p.m. OK GNU C++ TESTS 34 31 3686400 2500
41244758 vjudge5 E Aug. 5, 2018, 12:28 p.m. OK GNU C++ TESTS 34 31 3686400 2500
37571632 luogu_bot2 E April 24, 2018, 12:07 p.m. OK GNU C++ TESTS 34 31 6246400 2500
37855365 heower E May 3, 2018, 7:01 a.m. OK GNU C++ TESTS 34 31 7680000 2500
42261326 Scut82 E Aug. 30, 2018, 3:27 a.m. OK GNU C++ TESTS 34 46 2355200 2500
41242379 vjudge2 E Aug. 5, 2018, 11:10 a.m. OK GNU C++ TESTS 34 46 2969600 2500
39260604 popovicirobert E June 15, 2018, 7:59 a.m. OK GNU C++11 TESTS 34 30 1740800 2500
59795707 vjudge4 E Aug. 31, 2019, 8:35 a.m. OK GNU C++11 TESTS 34 31 921600 2500
59795678 orangejuice9 E Aug. 31, 2019, 8:35 a.m. OK GNU C++11 TESTS 34 31 921600 2500
64338267 Heartlessly E Nov. 5, 2019, 11:58 p.m. OK GNU C++11 TESTS 34 31 1638400 2500
64748779 qtyghost_mask E Nov. 12, 2019, 2:29 p.m. OK GNU C++11 TESTS 34 31 1638400 2500
64435609 yugao E Nov. 7, 2019, 1:03 a.m. OK GNU C++11 TESTS 34 31 1638400 2500
64309350 Heartlessly E Nov. 5, 2019, 12:17 p.m. OK GNU C++11 TESTS 34 31 1638400 2500
59130830 EASHWATCH E Aug. 20, 2019, 10:55 a.m. OK GNU C++11 TESTS 34 31 1740800 2500
64309269 bdcaknoip E Nov. 5, 2019, 12:16 p.m. OK GNU C++11 TESTS 34 31 1740800 2500
59131695 yzh666 E Aug. 20, 2019, 11:15 a.m. OK GNU C++11 TESTS 34 31 1740800 2500
38798632 Ashkan_Zarkhah E May 31, 2018, 10:53 a.m. OK GNU C++14 TESTS 34 30 5632000 2500
38693193 4l5n3 E May 28, 2018, 11:57 a.m. OK GNU C++14 TESTS 34 31 1740800 2500
67188704 yan-zp E Dec. 19, 2019, 6:07 a.m. OK GNU C++14 TESTS 34 31 2150400 2500
59351848 vjudge2 E Aug. 23, 2019, 12:06 p.m. OK GNU C++14 TESTS 34 31 3276800 2500
59351640 Cavalier. E Aug. 23, 2019, 12:02 p.m. OK GNU C++14 TESTS 34 31 3276800 2500
43095887 vjudge2 E Sept. 19, 2018, 11:44 p.m. OK GNU C++14 TESTS 34 31 3276800 2500
59956402 Jeffrey E Sept. 3, 2019, 4:20 p.m. OK GNU C++14 TESTS 34 31 3481600 2500
41243446 vjudge3 E Aug. 5, 2018, 11:45 a.m. OK GNU C++14 TESTS 34 31 4096000 2500
41243427 Eden_CY E Aug. 5, 2018, 11:45 a.m. OK GNU C++14 TESTS 34 31 4096000 2500
41246962 vjudge5 E Aug. 5, 2018, 1:39 p.m. OK GNU C++14 TESTS 34 31 4915200 2500
43278767 vjudge4 E Sept. 23, 2018, 3:03 a.m. OK GNU C++17 TESTS 34 31 1331200 2500
59211465 vjudge5 E Aug. 21, 2019, 8:42 a.m. OK GNU C++17 TESTS 34 31 1331200 2500
41290733 vjudge1 E Aug. 7, 2018, 2:44 a.m. OK GNU C++17 TESTS 34 31 1740800 2500
43183423 vjudge4 E Sept. 21, 2018, 2:22 p.m. OK GNU C++17 TESTS 34 31 2560000 2500
53804978 bulb_jalega_boss E May 5, 2019, 11:12 p.m. OK GNU C++17 TESTS 34 31 2662400 2500
59134426 panmotian_2018 E Aug. 20, 2019, 12:10 p.m. OK GNU C++17 TESTS 34 31 2867200 2500
41261379 Zerokei E Aug. 6, 2018, 3:01 a.m. OK GNU C++17 TESTS 34 31 3276800 2500
41261396 vjudge1 E Aug. 6, 2018, 3:01 a.m. OK GNU C++17 TESTS 34 31 3276800 2500
43098237 vjudge5 E Sept. 20, 2018, 2:40 a.m. OK GNU C++17 TESTS 34 31 12288000 2500
64741581 Mohammad_Amin E Nov. 12, 2019, 12:10 p.m. OK GNU C++17 TESTS 34 46 1433600 2500
41647684 7dan E Aug. 16, 2018, 9:39 a.m. OK Java 8 TESTS 34 218 0 2500
61849145 Eva E Oct. 4, 2019, 12:13 p.m. OK Kotlin TESTS 34 202 0 2500
43293301 vjudge5 E Sept. 23, 2018, 11:58 a.m. OK MS C++ TESTS 34 31 3174400 2500
50817150 vjudge1 E March 5, 2019, noon OK MS C++ TESTS 34 31 6656000 2500
43444230 vjudge1 E Sept. 26, 2018, 10:37 a.m. OK MS C++ TESTS 34 31 14745600 2500
43570626 vjudge5 E Sept. 29, 2018, 12:49 p.m. OK MS C++ TESTS 34 93 1740800 2500
43570680 vjudge3 E Sept. 29, 2018, 12:50 p.m. OK MS C++ TESTS 34 93 1740800 2500
43098767 vjudge5 E Sept. 20, 2018, 3:08 a.m. OK MS C++ TESTS 34 109 2560000 2500
43391607 vjudge2 E Sept. 25, 2018, 1:44 a.m. OK MS C++ TESTS 34 140 2560000 2500

remove filters

Back to search problems