Codeforces Round 282 (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
494 Codeforces Round 282 (Div. 1) FINISHED False 7200 313334999 Dec. 13, 2014, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2748 ) B Obsessive String PROGRAMMING dp strings 2300

B'Hamed has recently found a string t and suddenly became quite fond of it. He spent several days trying to find all occurrences of t in other strings he had. Finally he became tired and started thinking about the following problem. Given a string s how many ways are there to extract k xe2 x80 x89 xe2 x89 xa5 xe2 x80 x891 non-overlapping substrings from it such that each of them contains string t as a substring? More formally, you need to calculate the number of ways to choose two sequences a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89ak and b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bk satisfying the following requirements: As the number of ways can be rather large print it modulo 109 xe2 x80 x89+ xe2 x80 x897. Input consists of two lines containing strings s and t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s|, xe2 x80 x89|t| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Each string consists of lowercase Latin letters. Print the answer in a single line.'...

Tutorials

15148

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50258148 armoking B Feb. 20, 2019, 9:06 p.m. OK Delphi TESTS 51 1388 2764800 2300
9981747 FrostStar B Feb. 24, 2015, 3:03 p.m. OK FPC TESTS 51 30 1945600 2300
9130625 I_Love_EEvilCatt B Dec. 14, 2014, 1:22 p.m. OK FPC TESTS 51 31 2355200 2300
9162987 AliD B Dec. 17, 2014, 3:04 p.m. OK FPC TESTS 51 31 4300800 2300
9105817 Alex_2oo8 B Dec. 13, 2014, 4:47 p.m. OK FPC TESTS 51 46 2969600 2300
50258155 armoking B Feb. 20, 2019, 9:06 p.m. OK FPC TESTS 51 498 3481600 2300
9136217 Freedom B Dec. 15, 2014, 3:30 a.m. OK FPC TESTS 51 514 2969600 2300
10118160 magieNoire B March 2, 2015, 12:16 p.m. OK GNU C TESTS 51 31 3993600 2300
18227343 TsReaper B June 3, 2016, 6:58 a.m. OK GNU C TESTS 51 31 4608000 2300
9117381 tjandra B Dec. 13, 2014, 6:26 p.m. OK GNU C TESTS 51 46 1433600 2300
9502815 fengzlzl B Jan. 22, 2015, 2:04 p.m. OK GNU C++ TESTS 51 15 1228800 2300
9881279 Khagan B Feb. 17, 2015, 11:54 a.m. OK GNU C++ TESTS 51 15 1331200 2300
9123498 poursoul B Dec. 14, 2014, 3:22 a.m. OK GNU C++ TESTS 51 15 1331200 2300
9280001 RNS B Dec. 27, 2014, 1:32 a.m. OK GNU C++ TESTS 51 15 1433600 2300
9194591 thesilione B Dec. 19, 2014, 8:25 a.m. OK GNU C++ TESTS 51 15 1433600 2300
9123462 poursoul B Dec. 14, 2014, 3:16 a.m. OK GNU C++ TESTS 51 15 1433600 2300
9139555 math10 B Dec. 15, 2014, 11:49 a.m. OK GNU C++ TESTS 51 15 1536000 2300
29603237 vjudge1 B Aug. 19, 2017, 4:14 p.m. OK GNU C++ TESTS 51 15 1638400 2300
15780387 NWO B Feb. 4, 2016, 2:59 a.m. OK GNU C++ TESTS 51 15 1638400 2300
15028866 zhouzixuan B Dec. 26, 2015, 9:01 a.m. OK GNU C++ TESTS 51 15 1638400 2300
9921053 I_love_Wang_Jing B Feb. 19, 2015, 12:29 a.m. OK GNU C++0x TESTS 51 15 1740800 2300
9135145 MinakoKojima B Dec. 14, 2014, 9:12 p.m. OK GNU C++0x TESTS 51 15 1843200 2300
9362996 bidzilya B Jan. 4, 2015, 11:28 p.m. OK GNU C++0x TESTS 51 15 2662400 2300
9335188 ffao B Dec. 31, 2014, 6:52 p.m. OK GNU C++0x TESTS 51 15 3072000 2300
9130369 Mex-Mans B Dec. 14, 2014, 1 p.m. OK GNU C++0x TESTS 51 15 3379200 2300
9143428 Isaac B Dec. 15, 2014, 3:10 p.m. OK GNU C++0x TESTS 51 15 3379200 2300
9124355 Mindyou B Dec. 14, 2014, 5:25 a.m. OK GNU C++0x TESTS 51 30 1433600 2300
9200585 Al3ks1002 B Dec. 19, 2014, 6:54 p.m. OK GNU C++0x TESTS 51 30 2252800 2300
9386422 IlyaLos B Jan. 8, 2015, 1:38 p.m. OK GNU C++0x TESTS 51 30 2457600 2300
9238413 ed1d1a8d B Dec. 24, 2014, 6:44 a.m. OK GNU C++0x TESTS 51 30 2764800 2300
60461829 rainboy B Sept. 12, 2019, 9:10 p.m. OK GNU C11 TESTS 51 31 1433600 2300
44746903 Luiso B Oct. 23, 2018, 5:22 p.m. OK GNU C11 TESTS 51 31 1843200 2300
44817504 Jigaka B Oct. 24, 2018, 10:31 p.m. OK GNU C11 TESTS 51 31 1843200 2300
44882344 santiago_acevedo B Oct. 25, 2018, 7:45 p.m. OK GNU C11 TESTS 51 31 2355200 2300
44742360 izembrandt B Oct. 23, 2018, 3:14 p.m. OK GNU C11 TESTS 51 31 2560000 2300
44674076 mfidabel B Oct. 22, 2018, 1:26 a.m. OK GNU C11 TESTS 51 31 2560000 2300
44820664 juancito B Oct. 25, 2018, 2:01 a.m. OK GNU C11 TESTS 51 31 2969600 2300
15622272 l1n4r B Jan. 28, 2016, 3:09 a.m. OK GNU C++11 TESTS 51 15 1433600 2300
13832746 vjudge3 B Oct. 25, 2015, 3:11 a.m. OK GNU C++11 TESTS 51 15 1740800 2300
15392953 Equanimity B Jan. 15, 2016, 5:28 p.m. OK GNU C++11 TESTS 51 15 1740800 2300
14815741 milk-coffee B Dec. 15, 2015, 1:25 p.m. OK GNU C++11 TESTS 51 15 1740800 2300
19175981 I_Love_Ginger B July 16, 2016, 3:37 p.m. OK GNU C++11 TESTS 51 15 1843200 2300
27686003 Sorsweet B June 9, 2017, 9:18 a.m. OK GNU C++11 TESTS 51 15 1843200 2300
29801815 newgate B Aug. 26, 2017, 8:58 a.m. OK GNU C++11 TESTS 51 15 2150400 2300
13831417 Deemo B Oct. 24, 2015, 9:56 p.m. OK GNU C++11 TESTS 51 15 2150400 2300
16292686 arnabsamanta B Feb. 23, 2016, 1 p.m. OK GNU C++11 TESTS 51 15 2252800 2300
27909936 EmanuelNrx B June 19, 2017, 5:34 p.m. OK GNU C++11 TESTS 51 15 2252800 2300
30608991 dhruvumesh25 B Sept. 22, 2017, 8:12 a.m. OK GNU C++14 TESTS 51 15 1843200 2300
27823913 Yousef_Salama B June 16, 2017, 11:43 a.m. OK GNU C++14 TESTS 51 15 1843200 2300
27911359 Kinderr B June 19, 2017, 6:58 p.m. OK GNU C++14 TESTS 51 15 1945600 2300
22024337 LAGBOYDaD3zZ B Nov. 3, 2016, 11:28 p.m. OK GNU C++14 TESTS 51 15 2252800 2300
22518658 OnionPringles B Nov. 27, 2016, 12:05 a.m. OK GNU C++14 TESTS 51 15 2457600 2300
27619517 fullbuster B June 6, 2017, 6:01 p.m. OK GNU C++14 TESTS 51 15 2457600 2300
31059287 darkkcyan B Oct. 6, 2017, 8:10 a.m. OK GNU C++14 TESTS 51 15 2662400 2300
32220893 RedStone B Nov. 11, 2017, 1:36 p.m. OK GNU C++14 TESTS 51 15 2969600 2300
27110222 nimxor B May 14, 2017, 4:58 p.m. OK GNU C++14 TESTS 51 15 3072000 2300
33225226 yashar_sb_sb B Dec. 13, 2017, 8:48 p.m. OK GNU C++14 TESTS 51 15 3276800 2300
39644268 ag_orz B June 25, 2018, 9:09 a.m. OK GNU C++17 TESTS 51 30 3891200 2300
63524504 RaFiN_ B Oct. 27, 2019, 4:50 a.m. OK GNU C++17 TESTS 51 30 11161600 2300
47369702 Atreus B Dec. 22, 2018, 1:32 p.m. OK GNU C++17 TESTS 51 31 1740800 2300
52827687 kostia244 B April 16, 2019, 2:27 p.m. OK GNU C++17 TESTS 51 31 2150400 2300
51387311 jo_ulej B March 16, 2019, 7:33 p.m. OK GNU C++17 TESTS 51 31 2355200 2300
47871942 yassin_ B Jan. 3, 2019, 1:22 p.m. OK GNU C++17 TESTS 51 31 2457600 2300
42449951 malfple B Sept. 4, 2018, 7:15 a.m. OK GNU C++17 TESTS 51 31 2560000 2300
68987523 vjudge4 B Jan. 17, 2020, 1:02 p.m. OK GNU C++17 TESTS 51 31 2662400 2300
53905328 dmkozyrev B May 9, 2019, 12:27 p.m. OK GNU C++17 TESTS 51 31 2764800 2300
53905518 dmkozyrev B May 9, 2019, 12:32 p.m. OK GNU C++17 TESTS 51 31 2764800 2300
9145112 cojna B Dec. 15, 2014, 6:34 p.m. OK Haskell TESTS 51 124 11673600 2300
67966478 ZeyadKhattab B Dec. 30, 2019, 1:31 p.m. OK Java 11 TESTS 51 265 4812800 2300
9598475 vjudge3 B Jan. 28, 2015, 7:01 a.m. OK Java 6 TESTS 51 109 0 2300
9126407 myp09 B Dec. 14, 2014, 9:11 a.m. OK Java 6 TESTS 51 124 0 2300
9112897 meijun B Dec. 13, 2014, 5:39 p.m. OK Java 6 TESTS 51 171 0 2300
9235090 AkshajK B Dec. 23, 2014, 5:50 p.m. OK Java 7 TESTS 51 92 0 2300
10646212 Sumeet.Varma B April 10, 2015, 8:05 a.m. OK Java 7 TESTS 51 93 0 2300
10297482 wonjohn.choi B March 16, 2015, 7:50 a.m. OK Java 7 TESTS 51 93 0 2300
9300937 hiro116s B Dec. 29, 2014, 8:01 p.m. OK Java 7 TESTS 51 93 0 2300
9277684 mithunmk93 B Dec. 26, 2014, 4:53 p.m. OK Java 7 TESTS 51 93 0 2300
9143550 Azat_Yusupov B Dec. 15, 2014, 3:24 p.m. OK Java 7 TESTS 51 93 0 2300
9300958 hiro116s B Dec. 29, 2014, 8:07 p.m. OK Java 7 TESTS 51 108 0 2300
9130117 Guliash B Dec. 14, 2014, 12:38 p.m. OK Java 7 TESTS 51 108 0 2300
11938655 DiegoAE B July 5, 2015, 6:58 p.m. OK Java 7 TESTS 51 108 7782400 2300
9124947 fillets B Dec. 14, 2014, 6:30 a.m. OK Java 7 TESTS 51 109 0 2300
47892604 Ahmad B Jan. 4, 2019, 7:53 a.m. OK Java 8 TESTS 51 109 0 2300
12587501 OmniSliver B Aug. 18, 2015, 10:59 a.m. OK Java 8 TESTS 51 124 0 2300
62309740 ISSAM_LAKOUAM B Oct. 10, 2019, 1:37 p.m. OK Java 8 TESTS 51 124 0 2300
57976479 jenish9599 B July 30, 2019, 7:52 a.m. OK Java 8 TESTS 51 124 0 2300
50509804 StayAwayFromBitches B Feb. 25, 2019, 10:41 p.m. OK Java 8 TESTS 51 124 0 2300
12587529 OmniSliver B Aug. 18, 2015, 11:02 a.m. OK Java 8 TESTS 51 124 0 2300
27333939 Kammola B May 25, 2017, 10:29 a.m. OK Java 8 TESTS 51 124 9113600 2300
25443660 pitfall B March 12, 2017, 9:20 p.m. OK Java 8 TESTS 51 124 20582400 2300
32926172 tomdmitriev B Dec. 4, 2017, 4:45 p.m. OK Java 8 TESTS 51 124 20684800 2300
29145090 Omar_Morsi B Aug. 3, 2017, 4:29 a.m. OK Java 8 TESTS 51 124 20684800 2300
9281933 m.radwan B Dec. 27, 2014, 8:25 a.m. OK Mono C# TESTS 51 62 2355200 2300
25396292 og.kostya B March 11, 2017, 7:23 a.m. OK MS C# TESTS 51 62 11776000 2300
9139383 azukun B Dec. 15, 2014, 11:32 a.m. OK MS C# TESTS 51 77 6144000 2300
9123208 Death_Knight_DK B Dec. 14, 2014, 2:37 a.m. OK MS C++ TESTS 51 15 3072000 2300
35254618 vjudge3 B Feb. 14, 2018, 1:22 p.m. OK MS C++ TESTS 51 15 5017600 2300
35254476 vjudge1 B Feb. 14, 2018, 1:21 p.m. OK MS C++ TESTS 51 15 5017600 2300
35554248 vjudge2 B Feb. 21, 2018, 4:40 p.m. OK MS C++ TESTS 51 15 5427200 2300
35183373 vjudge5 B Feb. 12, 2018, 4:09 p.m. OK MS C++ TESTS 51 15 28160000 2300
9131073 Signin B Dec. 14, 2014, 2:01 p.m. OK MS C++ TESTS 51 30 3584000 2300
16984320 kingofnumbers B March 28, 2016, 9:06 a.m. OK MS C++ TESTS 51 30 5324800 2300
9939199 TGIshib B Feb. 20, 2015, 3:45 p.m. OK MS C++ TESTS 51 30 6246400 2300
9287281 aangairbender B Dec. 27, 2014, 9:12 p.m. OK MS C++ TESTS 51 30 9830400 2300
9148636 nikiror B Dec. 16, 2014, 7:04 a.m. OK MS C++ TESTS 51 30 23040000 2300
9128665 nwi B Dec. 14, 2014, 10:30 a.m. OK Python 2 TESTS 51 186 4505600 2300
9216600 abufct B Dec. 21, 2014, 3:18 p.m. OK Python 2 TESTS 51 561 6758400 2300
39321088 KhaleD_ B June 16, 2018, 11:39 p.m. OK Python 2 TESTS 51 654 5017600 2300
28210938 sanchit.agrawal B July 2, 2017, 1:08 p.m. OK Python 2 TESTS 51 764 9523200 2300
9163381 hellman_ B Dec. 17, 2014, 3:40 p.m. OK Python 2 TESTS 51 811 5017600 2300
36905282 pavankatta B April 3, 2018, 2:34 p.m. OK Python 2 TESTS 51 889 10854400 2300
31723844 yugle7 B Oct. 25, 2017, 9:19 p.m. OK Python 3 TESTS 51 280 5017600 2300
31731525 yugle7 B Oct. 26, 2017, 7:44 a.m. OK Python 3 TESTS 51 312 7987200 2300
9120123 andrewzta B Dec. 13, 2014, 8:03 p.m. OK Python 3 TESTS 51 327 7065600 2300
31731394 yugle7 B Oct. 26, 2017, 7:37 a.m. OK Python 3 TESTS 51 327 8396800 2300
45987098 noelcowm B Nov. 20, 2018, 7:25 a.m. OK Python 3 TESTS 51 483 2969600 2300
53181692 meooow B April 23, 2019, 7:59 a.m. OK Python 3 TESTS 51 608 9932800 2300
31734436 yugle7 B Oct. 26, 2017, 10:04 a.m. OK Python 3 TESTS 51 623 2969600 2300
35883173 ______u______ B March 3, 2018, 12:50 p.m. OK Python 3 TESTS 51 655 8601600 2300
35882840 ______n______ B March 3, 2018, 12:45 p.m. OK Python 3 TESTS 51 655 8601600 2300
35875176 _____k_____ B March 3, 2018, 8:09 a.m. OK Python 3 TESTS 51 655 8601600 2300

remove filters

Back to search problems