Codeforces Beta Round 17

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
17 Codeforces Beta Round 17 FINISHED False 7200 455641199 June 10, 2010, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1598 ) E Palisection PROGRAMMING strings 2900

B"In an English class Nick had nothing to do at all, and remembered about wonderful strings called palindromes. We should remind you that a string is called a palindrome if it can be read the same way both from left to right and from right to left. Here are examples of such strings: xc2 xabeye xc2 xbb, xc2 xabpop xc2 xbb, xc2 xablevel xc2 xbb, xc2 xababa xc2 xbb, xc2 xabdeed xc2 xbb, xc2 xabracecar xc2 xbb, xc2 xabrotor xc2 xbb, xc2 xabmadam xc2 xbb. Nick started to look carefully for all palindromes in the text that they were reading in the class. For each occurrence of each palindrome in the text he wrote a pair -- the position of the beginning and the position of the ending of this occurrence in the text. Nick called each occurrence of each palindrome he found in the text subpalindrome. When he found all the subpalindromes, he decided to find out how many different pairs among these subpalindromes cross. Two subpalindromes cross if they cover common positions in the text. No palindrome can cross itself. Let's look at the actions, performed by Nick, by the example of text xc2 xabbabb xc2 xbb. At first he wrote out all subpalindromes: Then Nick counted the amount of different pairs among these subpalindromes that cross. These pairs were six: Since it's very exhausting to perform all the described actions manually, Nick asked you to help him and write a program that can find out the amount of different subpalindrome pairs that cross. Two subpalindrome pairs are regarded as different if one of the pairs contains a subpalindrome that the other does not. The first input line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7106) -- length of the text. The following line contains n lower-case Latin letters (from a to z). In the only line output the amount of different pairs of two subpalindromes that cross each other. Output the answer modulo 51123987."...

Tutorials

Codeforces Beta Round #17 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
79300 Georgy E July 27, 2010, 4:25 p.m. OK Delphi TESTS 54 970 70656000 2900
256371 agul E Jan. 21, 2011, 3:30 p.m. OK Delphi TESTS 54 1090 72601600 2900
79303 Georgy E July 27, 2010, 4:28 p.m. OK Delphi TESTS 54 1130 72499200 2900
2105172 ccad2015 E Sept. 9, 2012, 1:58 a.m. OK FPC TESTS 54 234 53145600 2900
4173128 PeterTong97 E July 27, 2013, 4:30 a.m. OK FPC TESTS 54 312 52224000 2900
3502030 edified E April 11, 2013, 5:51 a.m. OK FPC TESTS 54 312 69632000 2900
79298 Georgy E July 27, 2010, 4:19 p.m. OK FPC TESTS 54 330 46387200 2900
79297 Georgy E July 27, 2010, 4:17 p.m. OK FPC TESTS 54 330 46387200 2900
6928547 SanSiroWaltz E June 20, 2014, 3:10 p.m. OK FPC TESTS 54 340 41472000 2900
403947 Sereja E April 20, 2011, 5:32 p.m. OK FPC TESTS 54 340 54579200 2900
79302 Georgy E July 27, 2010, 4:28 p.m. OK FPC TESTS 54 340 74035200 2900
10647280 ez_cjb E April 10, 2015, 10:48 a.m. OK FPC TESTS 54 342 69529600 2900
79301 Georgy E July 27, 2010, 4:27 p.m. OK FPC TESTS 54 380 70758400 2900
2630176 Leo_Yu E Nov. 23, 2012, 5:53 a.m. OK GNU C++ TESTS 54 125 52121600 2900
1049241 ACCEPT E Jan. 16, 2012, 6:44 a.m. OK GNU C++ TESTS 54 140 43417600 2900
2875338 shyoshyohw1 E Jan. 5, 2013, 2:49 p.m. OK GNU C++ TESTS 54 140 65126400 2900
20195698 liujunhao E Aug. 27, 2016, 1:07 p.m. OK GNU C++ TESTS 54 156 29900800 2900
2522034 YuukaKazami E Nov. 8, 2012, 9:25 a.m. OK GNU C++ TESTS 54 156 34099200 2900
2794110 CMHJT E Dec. 19, 2012, 10:22 a.m. OK GNU C++ TESTS 54 156 36044800 2900
3647306 fatsheep_LF E April 28, 2013, 10:26 a.m. OK GNU C++ TESTS 54 156 38092800 2900
34730290 vjudge1 E Jan. 31, 2018, 7:59 a.m. OK GNU C++ TESTS 54 156 40140800 2900
35671275 White_Devil E Feb. 25, 2018, 7:35 a.m. OK GNU C++ TESTS 54 156 41984000 2900
2757309 master_miu E Dec. 13, 2012, 9:24 a.m. OK GNU C++ TESTS 54 156 42086400 2900
2805567 llj_bash E Dec. 22, 2012, 6:34 a.m. OK GNU C++0x TESTS 54 171 86220800 2900
574150 DDDDDDDDDDDDDDDDDDDDDDDD E July 31, 2011, 5:54 p.m. OK GNU C++0x TESTS 54 220 83558400 2900
2675011 Archon.JK E Nov. 28, 2012, 10:29 p.m. OK GNU C++0x TESTS 54 234 34099200 2900
2670799 Archon.JK E Nov. 27, 2012, 11:14 p.m. OK GNU C++0x TESTS 54 234 43315200 2900
2670795 Archon.JK E Nov. 27, 2012, 11:12 p.m. OK GNU C++0x TESTS 54 234 43315200 2900
7299843 zimpha E July 31, 2014, 1:18 p.m. OK GNU C++0x TESTS 54 248 36044800 2900
8219456 veckal E Oct. 13, 2014, 2:42 p.m. OK GNU C++0x TESTS 54 342 54067200 2900
9356599 segg E Jan. 3, 2015, 11:27 p.m. OK GNU C++0x TESTS 54 404 55808000 2900
2790736 apia E Dec. 18, 2012, 12:35 p.m. OK GNU C++0x TESTS 54 515 52224000 2900
8759062 andrew.volchek E Nov. 19, 2014, 9:10 p.m. OK GNU C++0x TESTS 54 528 116428800 2900
59209612 LanrTabe E Aug. 21, 2019, 8:06 a.m. OK GNU C++11 TESTS 54 124 43929600 2900
68835162 luogu_bot5 E Jan. 15, 2020, 2:36 a.m. OK GNU C++11 TESTS 54 154 56115200 2900
68832651 luogu_bot2 E Jan. 15, 2020, 12:08 a.m. OK GNU C++11 TESTS 54 154 56115200 2900
63909693 zs__std E Oct. 31, 2019, 7:49 a.m. OK GNU C++11 TESTS 54 154 56115200 2900
59706659 JKLover E Aug. 30, 2019, 12:57 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
59704731 luogu_bot1 E Aug. 30, 2019, 12:11 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
59704686 JKLover E Aug. 30, 2019, 12:09 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
54495143 WOSHIGEPACHONG2 E May 22, 2019, 5:21 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
46969775 luogu_bot1 E Dec. 13, 2018, 1:14 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
44951147 jzzcjb E Oct. 27, 2018, 12:10 p.m. OK GNU C++11 TESTS 54 154 56115200 2900
31475623 tourist E Oct. 18, 2017, 9:50 a.m. OK GNU C++14 TESTS 54 156 36352000 2900
31475516 tourist E Oct. 18, 2017, 9:45 a.m. OK GNU C++14 TESTS 54 156 36352000 2900
45768481 I_love_Y_UME E Nov. 15, 2018, 1:19 p.m. OK GNU C++14 TESTS 54 186 26316800 2900
47358285 hfccccccccccccc E Dec. 22, 2018, 7:23 a.m. OK GNU C++14 TESTS 54 186 34201600 2900
31985785 sehun01 E Nov. 2, 2017, 4:13 p.m. OK GNU C++14 TESTS 54 186 34406400 2900
31729061 fer334 E Oct. 26, 2017, 5:29 a.m. OK GNU C++14 TESTS 54 186 34508800 2900
31475739 tourist E Oct. 18, 2017, 9:54 a.m. OK GNU C++14 TESTS 54 186 36352000 2900
31475728 tourist E Oct. 18, 2017, 9:54 a.m. OK GNU C++14 TESTS 54 186 36352000 2900
58250135 vjudge5 E Aug. 4, 2019, 7:27 a.m. OK GNU C++14 TESTS 54 186 56115200 2900
50649351 BestMSN E March 1, 2019, 5:01 p.m. OK GNU C++14 TESTS 54 186 56115200 2900
49907697 .tourist. E Feb. 14, 2019, 12:46 p.m. OK GNU C++17 TESTS 54 154 62156800 2900
49907535 vjudge3 E Feb. 14, 2019, 12:43 p.m. OK GNU C++17 TESTS 54 154 62156800 2900
49905688 libra9z E Feb. 14, 2019, 11:50 a.m. OK GNU C++17 TESTS 54 154 68096000 2900
69596620 hjk1030 E Jan. 27, 2020, 5:12 a.m. OK GNU C++17 TESTS 54 156 38092800 2900
68123653 NMFF0B0H E Jan. 3, 2020, 2:18 p.m. OK GNU C++17 TESTS 54 186 56115200 2900
49904281 Hacheylight E Feb. 14, 2019, 11:09 a.m. OK GNU C++17 TESTS 54 186 62156800 2900
41209774 BaCl2 E Aug. 4, 2018, 9:53 a.m. OK GNU C++17 TESTS 54 216 38092800 2900
66208997 Lower_Rating E Dec. 3, 2019, 5:32 a.m. OK GNU C++17 TESTS 54 216 74137600 2900
60922115 Sooke E Sept. 20, 2019, 11:03 a.m. OK GNU C++17 TESTS 54 218 56115200 2900
60245565 MinecraftFuns E Sept. 8, 2019, 2:18 a.m. OK GNU C++17 TESTS 54 218 56115200 2900
77551 ivan.popelyshev E June 10, 2010, 4:55 p.m. OK Java 6 TESTS 54 560 85708800 2900
77042 winger E June 10, 2010, 4:35 p.m. OK Java 6 TESTS 54 660 115712000 2900
691753 OgieKako E Sept. 12, 2011, 11:29 p.m. OK Java 6 TESTS 54 690 109056000 2900
691757 OgieKako E Sept. 12, 2011, 11:34 p.m. OK Java 6 TESTS 54 770 109056000 2900
2822709 mostafa_fahim E Dec. 24, 2012, 2:44 p.m. OK Java 7 TESTS 54 562 63897600 2900
10900918 dspstanky E April 27, 2015, midnight OK Java 7 TESTS 54 810 121753600 2900
48559835 Mandir_Wahi_Banayenge E Jan. 19, 2019, 6:55 a.m. OK Java 8 TESTS 54 592 44441600 2900
23872227 hama-du E Jan. 16, 2017, 3:16 a.m. OK Java 8 TESTS 54 622 90624000 2900
11327045 ProjectYoung E May 28, 2015, 12:04 a.m. OK Java 8 TESTS 54 810 113049600 2900
11308069 ProjectYoung E May 26, 2015, 7:41 p.m. OK Java 8 TESTS 54 872 112947200 2900
18125770 azukun E May 28, 2016, 5 a.m. OK MS C# TESTS 54 372 68505600 2900
18125784 azukun E May 28, 2016, 5:01 a.m. OK MS C# TESTS 54 374 51404800 2900
18125794 azukun E May 28, 2016, 5:02 a.m. OK MS C# TESTS 54 374 51609600 2900
4912214 Kazim E Oct. 27, 2013, 11:31 a.m. OK MS C++ TESTS 54 124 50073600 2900
4912159 Kazim E Oct. 27, 2013, 11:24 a.m. OK MS C++ TESTS 54 124 50073600 2900
78988 eik0u E June 16, 2010, 9:40 a.m. OK MS C++ TESTS 54 170 28672000 2900
79504 t__nt E Nov. 14, 2010, 5:48 p.m. OK MS C++ TESTS 54 170 37376000 2900
79003 Medium E June 16, 2010, 10:24 p.m. OK MS C++ TESTS 54 190 36966400 2900
79503 t__nt E Nov. 14, 2010, 5:47 p.m. OK MS C++ TESTS 54 190 53452800 2900
2690946 numitus E Dec. 3, 2012, 12:35 p.m. OK MS C++ TESTS 54 234 72704000 2900
41005526 ReaLNero1 E July 31, 2018, 9:26 a.m. OK MS C++ TESTS 54 280 50073600 2900
79422 july E Sept. 26, 2010, 4:42 a.m. OK MS C++ TESTS 54 280 58163200 2900
58435754 vjudge4 E Aug. 7, 2019, 1:47 p.m. OK MS C++ TESTS 54 280 82124800 2900
57884982 nuchenghao E July 28, 2019, 9:26 a.m. OK MS C++ 2017 TESTS 54 310 74137600 2900
57883883 nuchenghao E July 28, 2019, 8:58 a.m. OK MS C++ 2017 TESTS 54 310 74137600 2900
7679994 ShingRay E Sept. 4, 2014, 8:27 a.m. OK Ocaml TESTS 54 1152 104755200 2900

remove filters

Back to search problems