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
( 382 ) E2 Twilight and Ancient Scroll (harder version) PROGRAMMING dp implementation string suffix structures strings

B'This is a harder version of the problem E with larger 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 <= 10^5 ): 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 at least one. The sum of lengths of words does not exceed 10^6 . 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 they surely cast '...

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
89451328 Paniago E2 Aug. 9, 2020, 4:28 p.m. OK GNU C++11 TESTS 102 249 65945600
89347343 npng E2 Aug. 8, 2020, 3:36 p.m. OK GNU C++11 TESTS 102 265 29286400
90066776 xiejun E2 Aug. 16, 2020, 8:04 a.m. OK GNU C++11 TESTS 102 483 102297600
89765631 fuxiaoxin E2 Aug. 13, 2020, 6:16 a.m. OK GNU C++11 TESTS 102 483 125644800
89568202 frodakcin E2 Aug. 11, 2020, 10:18 a.m. OK GNU C++11 TESTS 102 624 233574400
89476296 Paniago E2 Aug. 10, 2020, 3:23 a.m. OK GNU C++11 TESTS 102 670 94003200
89475875 ybw051114 E2 Aug. 10, 2020, 3:13 a.m. OK GNU C++11 TESTS 102 702 78233600
89878416 yueyuanzhiyyz E2 Aug. 14, 2020, 2:31 p.m. OK GNU C++11 TESTS 102 733 155648000
91711417 cnMember E2 Sept. 3, 2020, 11:18 a.m. OK GNU C++11 TESTS 102 842 70348800
89375058 ZegWe E2 Aug. 9, 2020, 5:28 a.m. OK GNU C++11 TESTS 102 873 65740800
89610918 krijgertje E2 Aug. 11, 2020, 10:14 p.m. OK GNU C++14 TESTS 102 108 60108800
89600357 danya090699 E2 Aug. 11, 2020, 5:53 p.m. OK GNU C++14 TESTS 102 249 35840000
89871545 Quang E2 Aug. 14, 2020, 12:48 p.m. OK GNU C++14 TESTS 102 358 85504000
89457260 siddharthjoshi120 E2 Aug. 9, 2020, 5:38 p.m. OK GNU C++14 TESTS 102 405 43417600
89457140 siddharthjoshi120 E2 Aug. 9, 2020, 5:35 p.m. OK GNU C++14 TESTS 102 405 43417600
90060478 selia E2 Aug. 16, 2020, 6:15 a.m. OK GNU C++14 TESTS 102 421 61542400
91543496 oipotato E2 Sept. 1, 2020, 7:11 a.m. OK GNU C++14 TESTS 102 436 60825600
91544556 oipotato E2 Sept. 1, 2020, 7:25 a.m. OK GNU C++14 TESTS 102 670 64819200
91538681 oipotato E2 Sept. 1, 2020, 5:45 a.m. OK GNU C++14 TESTS 102 732 74342400
89475997 Devil E2 Aug. 10, 2020, 3:16 a.m. OK GNU C++14 TESTS 102 794 137113600
89403096 I_Love_Tourist_ E2 Aug. 9, 2020, 1:34 p.m. OK GNU C++17 TESTS 102 78 15974400
89467572 Feechka_ E2 Aug. 9, 2020, 9:27 p.m. OK GNU C++17 TESTS 102 93 21401600
89828744 Dgeka24 E2 Aug. 13, 2020, 9:47 p.m. OK GNU C++17 TESTS 102 171 26931200
91682276 gongsuidashen E2 Sept. 3, 2020, 2:26 a.m. OK GNU C++17 TESTS 102 249 25497600
90383917 t3018210153 E2 Aug. 19, 2020, 11:33 a.m. OK GNU C++17 TESTS 102 280 67379200
89549707 JJLeo E2 Aug. 11, 2020, 5:18 a.m. OK GNU C++17 TESTS 102 296 96460800
89518689 nowrin_brown E2 Aug. 10, 2020, 2:38 p.m. OK GNU C++17 TESTS 102 311 38809600
89509291 Akiha E2 Aug. 10, 2020, 12:33 p.m. OK GNU C++17 TESTS 102 311 38809600
89828812 Dgeka24 E2 Aug. 13, 2020, 9:50 p.m. OK GNU C++17 TESTS 102 312 46694400
89461630 PSDEV E2 Aug. 9, 2020, 6:46 p.m. OK GNU C++17 TESTS 102 327 38809600
89828782 Dgeka24 E2 Aug. 13, 2020, 9:49 p.m. OK GNU C++17 (64) TESTS 102 140 49254400
89435333 brunomont E2 Aug. 9, 2020, 3:17 p.m. OK GNU C++17 (64) TESTS 102 202 82227200
90295531 andrei_boaca E2 Aug. 18, 2020, 9:45 a.m. OK GNU C++17 (64) TESTS 102 233 73216000
89491696 nagasawa E2 Aug. 10, 2020, 8 a.m. OK GNU C++17 (64) TESTS 102 249 44953600
89806188 Siberian E2 Aug. 13, 2020, 3:08 p.m. OK GNU C++17 (64) TESTS 102 311 41779200
89471579 Marckess E2 Aug. 10, 2020, 12:53 a.m. OK GNU C++17 (64) TESTS 102 342 192614400
90173573 oskarfiuk1 E2 Aug. 16, 2020, 7:45 p.m. OK GNU C++17 (64) TESTS 102 343 21606400
89744095 Ernestico E2 Aug. 12, 2020, 8:52 p.m. OK GNU C++17 (64) TESTS 102 373 34611200
89744545 Ernestico E2 Aug. 12, 2020, 9:05 p.m. OK GNU C++17 (64) TESTS 102 374 34611200
89519007 Falcon__ E2 Aug. 10, 2020, 2:42 p.m. OK GNU C++17 (64) TESTS 102 546 49561600
89570129 PizzaLovers007 E2 Aug. 11, 2020, 10:50 a.m. OK Java 11 TESTS 102 1419 111616000
89638253 Ksenia_C E2 Aug. 12, 2020, 9:26 a.m. OK MS C++ 2017 TESTS 102 1357 48947200

remove filters

Back to search problems