Codeforces Round 635 (Div. 1)

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
1336 Codeforces Round 635 (Div. 1) FINISHED False 9000 144861899 April 15, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3621 ) C Kaavi and Magic Spell PROGRAMMING dp strings 2200

B'Kaavi, the mysterious fortune teller, deeply believes that one 's fate is inevitable and unavoidable. Of course, she makes her living by predicting others ' future. While doing divination, Kaavi believes that magic spells can provide great power for her to see the future. Kaavi has a string T of length m and all the strings with the prefix T are magic spells. Kaavi also has a string S of length n and an empty string A . During the divination, Kaavi needs to perform a sequence of operations. There are two different operations: Kaavi can perform no more than n operations. To finish the divination, she wants to know the number of different operation sequences to make A a magic spell (i.e. with the prefix T ). As her assistant, can you help her? The answer might be huge, so Kaavi only needs to know the answer modulo 998 ,244 ,353 . Two operation sequences are considered different if they are different in length or there exists an i that their i -th operation is different. A substring is a contiguous sequence of characters within a string. A prefix of a string S is a substring of S that occurs at the beginning of S . The first line contains a string S of length n ( 1 <= q n <= q 3000 ). The second line contains a string T of length m ( 1 <= q m <= q n ). Both strings contain only lowercase Latin letters. The output contains only one integer -- the answer modulo 998 ,244 ,353 . The first test: The red ones are the magic spells. In the first operation, Kaavi can either add the first character "a" at the front or the back of A , although the results are the same, they are considered as different operations. So the answer is 6 x 2=12 . '...

Tutorials

Codeforces Round #635 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
77206997 PKU-Erica C April 18, 2020, 5:02 p.m. OK Clang++17 Diagnostics TESTS 67 935 72908800 2200
76863631 Gassa C April 15, 2020, 3:45 p.m. OK D TESTS 67 93 54476800 2200
76819669 hos.lyric C April 15, 2020, 2:45 p.m. OK D TESTS 67 109 54476800 2200
76951576 cyaegha C April 16, 2020, 9:22 a.m. OK GNU C11 TESTS 67 77 36556800 2200
76952528 cyaegha C April 16, 2020, 9:33 a.m. OK GNU C11 TESTS 67 78 36352000 2200
76951735 cyaegha C April 16, 2020, 9:24 a.m. OK GNU C11 TESTS 67 78 36556800 2200
76867550 physics0523 C April 15, 2020, 3:54 p.m. OK GNU C11 TESTS 67 109 307200 2200
76932041 TrivialMan C April 16, 2020, 5:46 a.m. OK GNU C++11 TESTS 67 46 36249600 2200
76863497 howardyang C April 15, 2020, 3:45 p.m. OK GNU C++11 TESTS 67 46 36249600 2200
76847836 panole C April 15, 2020, 3:14 p.m. OK GNU C++11 TESTS 67 46 36556800 2200
76971047 Backseat-Stargazer C April 16, 2020, 12:42 p.m. OK GNU C++11 TESTS 67 46 37273600 2200
77034731 -Empty- C April 17, 2020, 4:44 a.m. OK GNU C++11 TESTS 67 46 38400000 2200
76868487 fanache99 C April 15, 2020, 3:56 p.m. OK GNU C++11 TESTS 67 61 36147200 2200
76877148 He_Ren C April 15, 2020, 4:17 p.m. OK GNU C++11 TESTS 67 61 36352000 2200
76857477 memset0c C April 15, 2020, 3:32 p.m. OK GNU C++11 TESTS 67 61 36556800 2200
76880452 dysyn1314 C April 15, 2020, 4:26 p.m. OK GNU C++11 TESTS 67 61 72601600 2200
77164745 Arberto C April 18, 2020, 9:30 a.m. OK GNU C++11 TESTS 67 62 102400 2200
76868918 Will_Dearborn C April 15, 2020, 3:57 p.m. OK GNU C++14 TESTS 67 31 102400 2200
76861507 xiaowuc1 C April 15, 2020, 3:40 p.m. OK GNU C++14 TESTS 67 46 102400 2200
76839412 zhaodahao C April 15, 2020, 3:02 p.m. OK GNU C++14 TESTS 67 46 36147200 2200
77462754 mayaohua2003 C April 21, 2020, 11:54 a.m. OK GNU C++14 TESTS 67 46 36249600 2200
76927069 hellomath C April 16, 2020, 4:34 a.m. OK GNU C++14 TESTS 67 46 36352000 2200
76863826 yhx-12243 C April 15, 2020, 3:45 p.m. OK GNU C++14 TESTS 67 46 112128000 2200
76818388 Merkurev C April 15, 2020, 2:44 p.m. OK GNU C++14 TESTS 67 61 36249600 2200
76857850 nealchen C April 15, 2020, 3:32 p.m. OK GNU C++14 TESTS 67 61 36249600 2200
77033467 unk2001 C April 17, 2020, 4:17 a.m. OK GNU C++14 TESTS 67 61 36249600 2200
76909344 hackerwizard C April 15, 2020, 9:43 p.m. OK GNU C++14 TESTS 67 61 36352000 2200
77110846 kessido C April 17, 2020, 6:08 p.m. OK GNU C++17 TESTS 67 31 102400 2200
77364446 dus0506 C April 20, 2020, 1:25 p.m. OK GNU C++17 TESTS 67 46 0 2200
77125779 Arberto C April 17, 2020, 9:10 p.m. OK GNU C++17 TESTS 67 46 102400 2200
77164691 Arberto C April 18, 2020, 9:29 a.m. OK GNU C++17 TESTS 67 46 102400 2200
76864415 Roundgod C April 15, 2020, 3:47 p.m. OK GNU C++17 TESTS 67 46 36249600 2200
76925386 sewage C April 16, 2020, 4:05 a.m. OK GNU C++17 TESTS 67 46 36249600 2200
76878651 cerberus97 C April 15, 2020, 4:21 p.m. OK GNU C++17 TESTS 67 46 36352000 2200
76868118 huzecong C April 15, 2020, 3:55 p.m. OK GNU C++17 TESTS 67 46 36352000 2200
76863330 Fedosik C April 15, 2020, 3:44 p.m. OK GNU C++17 TESTS 67 46 41779200 2200
76895111 Lich_Ning C April 15, 2020, 5:03 p.m. OK GNU C++17 TESTS 67 46 72396800 2200
77125841 Arberto C April 17, 2020, 9:11 p.m. OK GNU C++17 (64) TESTS 67 31 0 2200
77164630 Arberto C April 18, 2020, 9:29 a.m. OK GNU C++17 (64) TESTS 67 31 102400 2200
76842145 aid C April 15, 2020, 3:06 p.m. OK GNU C++17 (64) TESTS 67 46 0 2200
76929265 iefnah06 C April 16, 2020, 5:07 a.m. OK GNU C++17 (64) TESTS 67 46 0 2200
76834558 ecnerwala C April 15, 2020, 2:57 p.m. OK GNU C++17 (64) TESTS 67 46 102400 2200
76914190 Mohammad_Yasser C April 15, 2020, 11:48 p.m. OK GNU C++17 (64) TESTS 67 46 102400 2200
76847843 kefaa2 C April 15, 2020, 3:14 p.m. OK GNU C++17 (64) TESTS 67 46 36249600 2200
77804618 Felerius C April 23, 2020, 3:28 p.m. OK GNU C++17 (64) TESTS 68 46 36249600 2200
76974030 TAB_0905 C April 16, 2020, 1:11 p.m. OK GNU C++17 (64) TESTS 67 61 102400 2200
77305127 LiChenKoh C April 19, 2020, 6:45 p.m. OK GNU C++17 (64) TESTS 67 61 36454400 2200
76878504 Musin C April 15, 2020, 4:20 p.m. OK Java 11 TESTS 67 280 40345600 2200
76887121 Suzukaze C April 15, 2020, 4:44 p.m. OK Java 11 TESTS 67 358 0 2200
76857414 uwi C April 15, 2020, 3:32 p.m. OK Java 11 TESTS 67 358 79462400 2200
76871715 adamjamil C April 15, 2020, 4:04 p.m. OK Java 11 TESTS 67 701 79667200 2200
77096298 Harpae C April 17, 2020, 3:52 p.m. OK Java 8 TESTS 67 156 39116800 2200
76862175 DarLam C April 15, 2020, 3:42 p.m. OK Java 8 TESTS 67 218 0 2200
77094191 ravan C April 17, 2020, 3:34 p.m. OK Java 8 TESTS 67 218 39116800 2200
76883609 Xylenox C April 15, 2020, 4:34 p.m. OK Java 8 TESTS 67 280 78131200 2200
76960084 cwise C April 16, 2020, 10:53 a.m. OK Java 8 TESTS 67 280 90624000 2200
76869897 SergeyMelnikov C April 15, 2020, 3:59 p.m. OK Java 8 TESTS 67 296 78131200 2200
76857103 SecondThread C April 15, 2020, 3:31 p.m. OK Java 8 TESTS 67 311 78233600 2200
77155851 eng_hardik C April 18, 2020, 7:50 a.m. OK Java 8 TESTS 67 312 77926400 2200
77213215 yaoct C April 18, 2020, 6:20 p.m. OK Java 8 TESTS 67 358 78233600 2200
76872187 DanielW48 C April 15, 2020, 4:05 p.m. OK Java 8 TESTS 67 358 78233600 2200
76852335 Tlatoani C April 15, 2020, 3:22 p.m. OK Kotlin TESTS 67 358 1536000 2200
76919205 camypaper C April 16, 2020, 2 a.m. OK Mono C# TESTS 67 202 181350400 2200
76907488 lxhgww C April 15, 2020, 9:07 p.m. OK MS C++ TESTS 67 155 72601600 2200
76870051 nukeykt C April 15, 2020, 4 p.m. OK MS C++ 2017 TESTS 67 202 102400 2200
77190047 danilgrig C April 18, 2020, 2 p.m. OK MS C++ 2017 TESTS 67 264 144896000 2200
76871464 MrLolthe1st C April 15, 2020, 4:03 p.m. OK MS C++ 2017 TESTS 67 265 72499200 2200
77231760 P___ C April 19, 2020, 1:34 a.m. OK MS C++ 2017 TESTS 67 1684 180736000 2200
76851546 pajenegod C April 15, 2020, 3:21 p.m. OK PyPy 2 TESTS 67 312 41062400 2200
76961450 neterukun C April 16, 2020, 11:07 a.m. OK PyPy 3 TESTS 67 327 105472000 2200
76921147 tamato C April 16, 2020, 2:44 a.m. OK PyPy 3 TESTS 67 452 40652800 2200
77039220 McDonald C April 17, 2020, 6 a.m. OK PyPy 3 TESTS 67 514 50688000 2200
77039690 UncleGrandpa C April 17, 2020, 6:07 a.m. OK PyPy 3 TESTS 67 514 50790400 2200
76924354 sansen C April 16, 2020, 3:47 a.m. OK Rust TESTS 67 124 37888000 2200

remove filters

Back to search problems