Codeforces Round 339 (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
613 Codeforces Round 339 (Div. 1) FINISHED False 7200 279033899 Jan. 14, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 474 ) E Puzzle Lover PROGRAMMING dp hashing strings 3200

B"Oleg Petrov loves crossword puzzles and every Thursday he buys his favorite magazine with crosswords and other word puzzles. In the last magazine Oleg found a curious puzzle, and the magazine promised a valuable prize for it's solution. We give a formal description of the problem below. The puzzle field consists of two rows, each row contains n cells. Each cell contains exactly one small English letter. You also are given a word w, which consists of k small English letters. A solution of the puzzle is a sequence of field cells c1, ..., ck, such that: Oleg Petrov quickly found a solution for the puzzle. Now he wonders, how many distinct solutions are there for this puzzle. Oleg Petrov doesn't like too large numbers, so calculate the answer modulo 109 xe2 x80 x89+ xe2 x80 x897. Two solutions ci and c'i are considered distinct if the sequences of cells do not match in at least one position, that is there is such j in range from 1 to k, such that cj xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89c'j. The first two lines contain the state of the field for the puzzle. Each of these non-empty lines contains exactly n small English letters. The next line is left empty. The next line is non-empty and contains word w, consisting of small English letters. The length of each line doesn't exceed 2 xe2 x80 x89000. Print a single integer -- the number of distinct solutions for the puzzle modulo 109 xe2 x80 x89+ xe2 x80 x897."...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
18005997 vjudge4 E May 20, 2016, 2:15 p.m. OK GNU C++ TESTS 45 202 164044800 3200
18015037 vjudge2 E May 21, 2016, 7:45 a.m. OK GNU C++ TESTS 45 217 83148800 3200
18005529 vjudge3 E May 20, 2016, 1:39 p.m. OK GNU C++ TESTS 45 217 83251200 3200
18015429 vjtest E May 21, 2016, 8:20 a.m. OK GNU C++ TESTS 45 217 131788800 3200
18011914 vjudge2 E May 21, 2016, 12:25 a.m. OK GNU C++ TESTS 45 217 164147200 3200
18057218 vjtest E May 24, 2016, 2:57 p.m. OK GNU C++ TESTS 45 218 82841600 3200
18005435 vjudge4 E May 20, 2016, 1:31 p.m. OK GNU C++ TESTS 45 218 83148800 3200
18014299 vjudge4 E May 21, 2016, 6:31 a.m. OK GNU C++ TESTS 45 218 164147200 3200
18015423 Gintoki E May 21, 2016, 8:19 a.m. OK GNU C++ TESTS 45 233 131788800 3200
18015346 vjudge1 E May 21, 2016, 8:12 a.m. OK GNU C++ TESTS 45 233 131788800 3200
66659489 XieRujian E Dec. 12, 2019, 3:19 a.m. OK GNU C++11 TESTS 45 155 64102400 3200
64718493 zx2003 E Nov. 12, 2019, 1:13 a.m. OK GNU C++11 TESTS 45 155 146432000 3200
65522010 cjy2003 E Nov. 22, 2019, 8:45 a.m. OK GNU C++11 TESTS 45 156 0 3200
57882946 lopare E July 28, 2019, 8:37 a.m. OK GNU C++11 TESTS 45 217 96665600 3200
64579902 WZYYN E Nov. 9, 2019, 11:47 a.m. OK GNU C++11 TESTS 45 218 96665600 3200
57816410 py_ultron E July 26, 2019, 7:57 p.m. OK GNU C++11 TESTS 45 218 96665600 3200
15391423 matthew99 E Jan. 15, 2016, 3:33 p.m. OK GNU C++11 TESTS 45 234 80588800 3200
15452624 K.O.T.E.H.O.K E Jan. 20, 2016, 11:59 a.m. OK GNU C++11 TESTS 45 249 96256000 3200
15394637 Al.Cash E Jan. 15, 2016, 8:01 p.m. OK GNU C++11 TESTS 45 249 96256000 3200
35895811 ______n______ E March 3, 2018, 4:53 p.m. OK GNU C++11 TESTS 45 249 98508800 3200
68099654 cz_xuyixuan E Jan. 3, 2020, 1:11 a.m. OK GNU C++14 TESTS 45 139 43622400 3200
64433847 Cyanic E Nov. 6, 2019, 11:35 p.m. OK GNU C++14 TESTS 45 155 96665600 3200
63111603 yhx-12243 E Oct. 22, 2019, 7:42 a.m. OK GNU C++14 TESTS 45 171 101478400 3200
63726911 Jayce132 E Oct. 29, 2019, 12:55 p.m. OK GNU C++14 TESTS 45 186 147148800 3200
40985412 ReaLNero1 E July 30, 2018, 7:56 p.m. OK GNU C++14 TESTS 45 202 64819200 3200
33013575 AwD E Dec. 8, 2017, 3:48 a.m. OK GNU C++14 TESTS 45 202 66662400 3200
63622195 orbitingflea E Oct. 28, 2019, 12:18 a.m. OK GNU C++14 TESTS 45 202 112332800 3200
35993433 hahaha1850 E March 6, 2018, 1:38 p.m. OK GNU C++14 TESTS 45 234 66662400 3200
23466074 Ali.Pi E Dec. 31, 2016, 8:41 a.m. OK GNU C++14 TESTS 45 234 98201600 3200
37679746 wh2001_ZY E April 28, 2018, 8:19 a.m. OK GNU C++14 TESTS 45 248 116428800 3200
64624872 AprilGrimoire E Nov. 10, 2019, 8:12 a.m. OK GNU C++17 TESTS 45 186 129536000 3200
35992018 xehoth E March 6, 2018, 12:49 p.m. OK GNU C++17 TESTS 45 217 98201600 3200
69174026 ruo E Jan. 20, 2020, 7:20 a.m. OK GNU C++17 TESTS 45 218 96665600 3200
66444846 vjudge3 E Dec. 7, 2019, 9:15 a.m. OK GNU C++17 TESTS 45 249 33792000 3200
66444722 LJZ_C E Dec. 7, 2019, 9:12 a.m. OK GNU C++17 TESTS 45 249 33792000 3200
66206557 ppc_qjd E Dec. 3, 2019, 3:31 a.m. OK GNU C++17 TESTS 45 498 128921600 3200
57566434 Benq E July 23, 2019, 3:09 a.m. OK GNU C++17 TESTS 45 529 102400000 3200
66211795 alan_cty E Dec. 3, 2019, 7:07 a.m. OK GNU C++17 TESTS 45 623 32256000 3200
36312331 OPG E March 15, 2018, 8:57 p.m. OK GNU C++17 TESTS 45 810 132403200 3200
39139339 Rand_By_Rand E June 11, 2018, 7:16 a.m. OK GNU C++17 TESTS 45 842 32358400 3200
15376034 Petr E Jan. 14, 2016, 8 p.m. OK Java 7 TESTS 45 1465 141004800 3200
17422853 raggzy E April 21, 2016, 5:15 p.m. OK Java 8 TESTS 45 873 160460800 3200
15371872 pashka E Jan. 14, 2016, 6:27 p.m. OK Java 8 TESTS 45 1356 101580800 3200
15376090 Petr E Jan. 14, 2016, 8:02 p.m. OK Java 8 TESTS 45 1450 131891200 3200
15743935 cchli E Feb. 2, 2016, 5:23 a.m. OK Java 8 TESTS 45 1887 49049600 3200
15744201 cchli E Feb. 2, 2016, 5:50 a.m. OK Java 8 TESTS 45 1949 49049600 3200
15412664 Milanin E Jan. 17, 2016, 9:27 a.m. OK MS C++ TESTS 45 717 123699200 3200
15680940 Los_Angelos_Laycurse E Jan. 30, 2016, 3:27 p.m. OK MS C++ TESTS 45 998 123596800 3200

remove filters

Back to search problems