Codeforces Round 662 (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
1393 Codeforces Round 662 (Div. 2) FINISHED False 7200 140455463 Aug. 7, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 393 ) E1 Twilight and Ancient Scroll (easier version) PROGRAMMING dp hashing implementation string suffix structures strings

B'This is an easier version of the problem E with smaller constraints. Twilight Sparkle has received a new task from Princess Celestia. This time she asked to decipher the ancient scroll containing important knowledge of pony origin. To hide the crucial information from evil eyes, pony elders cast a spell on the scroll. That spell adds exactly one letter in any place to each word it is cast on. To make the path to the knowledge more tangled elders chose some of words in the scroll and cast a spell on them. Twilight Sparkle knows that the elders admired the order in all things so the scroll original scroll contained words in lexicographically non-decreasing order. She is asked to delete one letter from some of the words of the scroll (to undo the spell) to get some version of the original scroll. Unfortunately, there may be more than one way to recover the ancient scroll. To not let the important knowledge slip by Twilight has to look through all variants of the original scroll and find the required one. To estimate the maximum time Twilight may spend on the work she needs to know the number of variants she has to look through. She asks you to find that number! Since that number can be very big, Twilight asks you to find it modulo 10^9+7 . It may occur that princess Celestia has sent a wrong scroll so the answer may not exist. A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line contains a single integer n ( 1 <= n <= 1000 ): the number of words in the scroll. The i -th of the next n lines contains a string consisting of lowercase English letters: the i -th word in the scroll. The length of each word is more or equal than 1 . The sum of lengths of words does not exceed 20000 . Print one integer: the number of ways to get a version of the original from the scroll modulo 10^9+7 . Notice that the elders could have written an empty word (but '...

Tutorials

Codeforces Round #662 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
89348536 npng E1 Aug. 8, 2020, 3:54 p.m. OK GNU C++11 TESTS 62 31 22118400
89878447 yueyuanzhiyyz E1 Aug. 14, 2020, 2:32 p.m. OK GNU C++11 TESTS 62 31 155648000
89451282 Paniago E1 Aug. 9, 2020, 4:28 p.m. OK GNU C++11 TESTS 62 46 14336000
89475852 ybw051114 E1 Aug. 10, 2020, 3:12 a.m. OK GNU C++11 TESTS 62 46 42803200
89381666 dysyn1314 E1 Aug. 9, 2020, 7:34 a.m. OK GNU C++11 TESTS 62 46 150220800
89912919 2005lz E1 Aug. 14, 2020, 3:06 p.m. OK GNU C++11 TESTS 62 61 38297600
89875342 yueyuanzhiyyz E1 Aug. 14, 2020, 1:46 p.m. OK GNU C++11 TESTS 62 61 39219200
91711514 cnMember E1 Sept. 3, 2020, 11:19 a.m. OK GNU C++11 TESTS 62 62 35020800
89556706 frodakcin E1 Aug. 11, 2020, 7:17 a.m. OK GNU C++11 TESTS 62 62 37273600
90674712 huayucaiji E1 Aug. 22, 2020, 9:30 a.m. OK GNU C++11 TESTS 62 78 70656000
89457752 siddharthjoshi120 E1 Aug. 9, 2020, 5:45 p.m. OK GNU C++14 TESTS 62 46 20377600
89365694 Seyaua E1 Aug. 8, 2020, 10:51 p.m. OK GNU C++14 TESTS 62 46 22220800
90060515 selia E1 Aug. 16, 2020, 6:15 a.m. OK GNU C++14 TESTS 62 46 58675200
89610908 krijgertje E1 Aug. 11, 2020, 10:14 p.m. OK GNU C++14 TESTS 62 46 60006400
89383758 Drice E1 Aug. 9, 2020, 8:08 a.m. OK GNU C++14 TESTS 62 46 86425600
89395312 Devil_G E1 Aug. 9, 2020, 11:23 a.m. OK GNU C++14 TESTS 62 46 101376000
89639915 rhdeng E1 Aug. 12, 2020, 9:51 a.m. OK GNU C++14 TESTS 62 62 42803200
89639881 rhdeng E1 Aug. 12, 2020, 9:51 a.m. OK GNU C++14 TESTS 62 62 42905600
89508632 Even_Bao E1 Aug. 10, 2020, 12:24 p.m. OK GNU C++14 TESTS 62 62 42905600
91349263 oipotato E1 Aug. 30, 2020, 2:16 p.m. OK GNU C++14 TESTS 62 78 36864000
89467751 Feechka_ E1 Aug. 9, 2020, 9:34 p.m. OK GNU C++17 TESTS 62 31 4198400
89509319 Akiha E1 Aug. 10, 2020, 12:34 p.m. OK GNU C++17 TESTS 62 31 31948800
90724387 yzyz E1 Aug. 23, 2020, 3:11 a.m. OK GNU C++17 TESTS 62 46 7372800
91124875 Max.D. E1 Aug. 27, 2020, 10:39 a.m. OK GNU C++17 TESTS 62 46 12288000
89403092 I_Love_Tourist_ E1 Aug. 9, 2020, 1:34 p.m. OK GNU C++17 TESTS 62 46 15974400
90383841 t3018210153 E1 Aug. 19, 2020, 11:32 a.m. OK GNU C++17 TESTS 62 46 17920000
90378931 t3018210153 E1 Aug. 19, 2020, 10:21 a.m. OK GNU C++17 TESTS 62 46 17920000
89785425 mahdi.hasnat E1 Aug. 13, 2020, 10:43 a.m. OK GNU C++17 TESTS 62 46 67481600
89392526 xyz. E1 Aug. 9, 2020, 10:35 a.m. OK GNU C++17 TESTS 62 46 103731200
89381781 Orangestar E1 Aug. 9, 2020, 7:36 a.m. OK GNU C++17 TESTS 62 46 150323200
89841635 emthrm E1 Aug. 14, 2020, 4:55 a.m. OK GNU C++17 (64) TESTS 62 31 512000
89491580 nagasawa E1 Aug. 10, 2020, 7:58 a.m. OK GNU C++17 (64) TESTS 62 31 5324800
90173522 oskarfiuk1 E1 Aug. 16, 2020, 7:44 p.m. OK GNU C++17 (64) TESTS 62 31 9318400
89744083 Ernestico E1 Aug. 12, 2020, 8:52 p.m. OK GNU C++17 (64) TESTS 62 46 4505600
89359573 Geothermal E1 Aug. 8, 2020, 7:23 p.m. OK GNU C++17 (64) TESTS 62 46 21606400
89435143 brunomont E1 Aug. 9, 2020, 3:17 p.m. OK GNU C++17 (64) TESTS 62 46 22937600
90295655 andrei_boaca E1 Aug. 18, 2020, 9:47 a.m. OK GNU C++17 (64) TESTS 62 46 33177600
89806166 Siberian E1 Aug. 13, 2020, 3:08 p.m. OK GNU C++17 (64) TESTS 62 46 35635200
89806063 Siberian E1 Aug. 13, 2020, 3:06 p.m. OK GNU C++17 (64) TESTS 62 46 35635200
89359498 Geothermal E1 Aug. 8, 2020, 7:21 p.m. OK GNU C++17 (64) TESTS 62 62 21504000
89570185 PizzaLovers007 E1 Aug. 11, 2020, 10:51 a.m. OK Java 11 TESTS 62 218 24064000
89559105 Ksenia_C E1 Aug. 11, 2020, 7:55 a.m. OK MS C++ 2017 TESTS 62 46 4608000
89638180 Ksenia_C E1 Aug. 12, 2020, 9:25 a.m. OK MS C++ 2017 TESTS 62 109 13004800

remove filters

Back to search problems