Codeforces Beta Round 92 (Div. 1 Only)

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
123 Codeforces Beta Round 92 (Div. 1 Only) FINISHED False 7200 416846963 Nov. 3, 2011, 3:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1237 ) D String PROGRAMMING string suffix structures 2300

B'You are given a string s. Each pair of numbers l and r that fulfill the condition 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s|, correspond to a substring of the string s, starting in the position l and ending in the position r (inclusive). Let 's define the function of two strings F(x, xe2 x80 x89y) like this. We 'll find a list of such pairs of numbers for which the corresponding substrings of string x are equal to string y. Let 's sort this list of pairs according to the pair 's first number 's increasing. The value of function F(x, xe2 x80 x89y) equals the number of non-empty continuous sequences in the list. For example: F(babbabbababbab, xe2 x80 x89babb) xe2 x80 x89= xe2 x80 x896. The list of pairs is as follows: (1, xe2 x80 x894), xe2 x80 x89(4, xe2 x80 x897), xe2 x80 x89(9, xe2 x80 x8912) Its continuous sequences are: Your task is to calculate for the given string s the sum F(s, xe2 x80 x89x) for all x, that x belongs to the set of all substrings of a string s. The only line contains the given string s, consisting only of small Latin letters (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Print the single number -- the sought sum. Please do not use the %lld specificator to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specificator. In the first sample the function values at x equal to "a", "aa", "aaa" and "aaaa" equal 10, 6, 3 and 1 correspondingly. In the second sample for any satisfying x the function value is 1.'...

Tutorials

Codeforces Beta Round #92 - Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
12246157 maroonrk D July 28, 2015, 1:10 a.m. OK D TESTS 50 92 3174400 2300
828220 CherryTree D Nov. 3, 2011, 3:29 p.m. OK Delphi TESTS 50 90 57241600 2300
829997 tourist D Nov. 3, 2011, 4:02 p.m. OK Delphi TESTS 50 830 9113600 2300
886753 coolinging D Nov. 23, 2011, 3:41 a.m. OK FPC TESTS 50 110 5836800 2300
861876 alexej D Nov. 13, 2011, 2:05 p.m. OK FPC TESTS 50 110 40755200 2300
861604 alexej D Nov. 13, 2011, 11:08 a.m. OK FPC TESTS 50 110 43110400 2300
933804 zanoes D Dec. 7, 2011, 12:39 a.m. OK FPC TESTS 50 130 5529600 2300
933798 zanoes D Dec. 7, 2011, 12:09 a.m. OK FPC TESTS 50 140 9216000 2300
1808661 blackapple D June 18, 2012, 10:40 a.m. OK FPC TESTS 50 160 7168000 2300
889460 suanrong D Nov. 24, 2011, 2:09 p.m. OK FPC TESTS 50 340 3891200 2300
889481 suanrong D Nov. 24, 2011, 2:20 p.m. OK FPC TESTS 50 520 3891200 2300
1350467 sillycross D March 12, 2012, 6:25 a.m. OK FPC TESTS 50 690 6553600 2300
889323 waterkid D Nov. 24, 2011, 1:04 p.m. OK FPC TESTS 50 800 18124800 2300
27725722 logarithm D June 11, 2017, 6:30 p.m. OK GNU C TESTS 50 92 41881600 2300
831932 LayCurse D Nov. 3, 2011, 5:05 p.m. OK GNU C TESTS 50 220 15052800 2300
7307412 vjudge3 D Aug. 1, 2014, 12:34 p.m. OK GNU C++ TESTS 50 30 4096000 2300
829555 unicef D Nov. 3, 2011, 3:51 p.m. OK GNU C++ TESTS 50 30 5017600 2300
1116413 oimaster D Jan. 25, 2012, 8:42 a.m. OK GNU C++ TESTS 50 30 5529600 2300
841024 vjudge4 D Nov. 8, 2011, 8:09 a.m. OK GNU C++ TESTS 50 30 5529600 2300
1650173 pty D May 3, 2012, 3:53 a.m. OK GNU C++ TESTS 50 30 11366400 2300
27762652 hiram1122 D June 13, 2017, 8:04 p.m. OK GNU C++ TESTS 50 30 12902400 2300
4619913 vjudge4 D Oct. 1, 2013, 12:16 p.m. OK GNU C++ TESTS 50 30 25497600 2300
4619900 alpc104 D Oct. 1, 2013, 12:14 p.m. OK GNU C++ TESTS 50 30 25497600 2300
4291460 hime D Aug. 16, 2013, 4:39 p.m. OK GNU C++ TESTS 50 30 25804800 2300
4928056 problem-solved D Oct. 29, 2013, 11:14 a.m. OK GNU C++ TESTS 50 31 4505600 2300
6610028 howsiwei D May 13, 2014, 1:12 p.m. OK GNU C++0x TESTS 50 62 3584000 2300
6610012 howsiwei D May 13, 2014, 1:09 p.m. OK GNU C++0x TESTS 50 62 4198400 2300
10032260 huantwofat D Feb. 26, 2015, 12:47 p.m. OK GNU C++0x TESTS 50 62 5222400 2300
6859783 anta D June 10, 2014, 3:22 p.m. OK GNU C++0x TESTS 50 62 7065600 2300
10213672 sd0061 D March 9, 2015, 12:40 a.m. OK GNU C++0x TESTS 50 62 25907200 2300
4260697 littlepanda D Aug. 10, 2013, 9 a.m. OK GNU C++0x TESTS 50 92 4505600 2300
5929901 BIT_silence D March 5, 2014, 9:07 a.m. OK GNU C++0x TESTS 50 92 25395200 2300
4210358 harhrayr D July 31, 2013, 4:48 p.m. OK GNU C++0x TESTS 50 92 28672000 2300
8328602 I_love_Hoang_Yen D Oct. 20, 2014, 9:25 a.m. OK GNU C++0x TESTS 50 122 7270400 2300
9373428 sdya D Jan. 6, 2015, 2:57 p.m. OK GNU C++0x TESTS 50 122 12288000 2300
60695892 rainboy D Sept. 16, 2019, 7:34 p.m. OK GNU C11 TESTS 50 124 3276800 2300
14426756 JayYe D Nov. 23, 2015, 1:18 p.m. OK GNU C++11 TESTS 50 30 4915200 2300
28501392 lzr_010506 D July 13, 2017, 12:03 p.m. OK GNU C++11 TESTS 50 30 8294400 2300
11374825 ShingRay D June 1, 2015, 8:40 a.m. OK GNU C++11 TESTS 50 60 2764800 2300
29844190 vjudge2 D Aug. 28, 2017, 11:33 a.m. OK GNU C++11 TESTS 50 60 5632000 2300
58975744 LuoshuiTianyi D Aug. 18, 2019, 12:31 a.m. OK GNU C++11 TESTS 50 62 2867200 2300
58975749 LuoshuiTianyi D Aug. 18, 2019, 12:32 a.m. OK GNU C++11 TESTS 50 62 2867200 2300
12303234 Vlad_kv D Aug. 1, 2015, 11:55 a.m. OK GNU C++11 TESTS 50 62 3276800 2300
52929332 luogu_bot5 D April 17, 2019, 11:47 p.m. OK GNU C++11 TESTS 50 62 3276800 2300
65519707 2016smy D Nov. 22, 2019, 7:42 a.m. OK GNU C++11 TESTS 50 62 3379200 2300
51844080 CLT D March 26, 2019, 2:30 a.m. OK GNU C++11 TESTS 50 62 3481600 2300
26591897 ian9696 D April 22, 2017, 9:27 p.m. OK GNU C++14 TESTS 50 30 6451200 2300
33520263 -Morass- D Dec. 22, 2017, 8:35 p.m. OK GNU C++14 TESTS 50 30 23552000 2300
52714336 uccoa D April 13, 2019, 4:33 p.m. OK GNU C++14 TESTS 50 62 3584000 2300
40809959 Cmise D July 26, 2018, 4:58 p.m. OK GNU C++14 TESTS 50 62 4608000 2300
52773715 walht D April 15, 2019, 10:44 a.m. OK GNU C++14 TESTS 50 62 24985600 2300
27661171 RNS_JKS D June 8, 2017, 1:42 a.m. OK GNU C++14 TESTS 50 62 25088000 2300
49884129 lis D Feb. 13, 2019, 7:57 p.m. OK GNU C++14 TESTS 50 92 5939200 2300
32075209 smu201111192 D Nov. 5, 2017, 11:50 a.m. OK GNU C++14 TESTS 50 92 9625600 2300
28141835 2360 D June 29, 2017, 2:32 p.m. OK GNU C++14 TESTS 50 92 15257600 2300
21977797 marX D Nov. 1, 2016, 8:31 p.m. OK GNU C++14 TESTS 50 92 24780800 2300
53992036 cwhao D May 11, 2019, 12:45 p.m. OK GNU C++17 TESTS 50 60 65945600 2300
47484607 amnesiac_dusk D Dec. 25, 2018, 7:48 a.m. OK GNU C++17 TESTS 50 62 2457600 2300
38554531 RUSH_D_CAT D May 23, 2018, 7:38 a.m. OK GNU C++17 TESTS 50 62 8192000 2300
62628170 Ycircle D Oct. 15, 2019, 2:39 p.m. OK GNU C++17 TESTS 50 62 25804800 2300
53992078 cwhao D May 11, 2019, 12:46 p.m. OK GNU C++17 TESTS 50 62 65945600 2300
40096234 majk D July 8, 2018, 10:59 p.m. OK GNU C++17 TESTS 50 92 3891200 2300
39988743 LiChenKoh D July 5, 2018, 3:32 p.m. OK GNU C++17 TESTS 50 92 5017600 2300
44356570 vjudge1 D Oct. 15, 2018, 12:41 p.m. OK GNU C++17 TESTS 50 92 24985600 2300
41584701 jonathansilver D Aug. 14, 2018, 10:18 a.m. OK GNU C++17 TESTS 50 92 28160000 2300
47886684 Lcentury D Jan. 4, 2019, 12:20 a.m. OK GNU C++17 TESTS 50 92 56422400 2300
2983685 Egor D Jan. 22, 2013, 12:49 p.m. OK Java 6 TESTS 50 171 14131200 2300
8476819 meijun D Oct. 30, 2014, 7:44 a.m. OK Java 6 TESTS 50 280 3276800 2300
830759 OgieKako D Nov. 3, 2011, 4:25 p.m. OK Java 6 TESTS 50 280 43212800 2300
8476821 vjudge5 D Oct. 30, 2014, 7:45 a.m. OK Java 6 TESTS 50 310 3174400 2300
831999 uwi D Nov. 3, 2011, 5:07 p.m. OK Java 6 TESTS 50 310 43110400 2300
2927494 uwi D Jan. 15, 2013, 3:54 p.m. OK Java 6 TESTS 50 312 2252800 2300
830326 Petr D Nov. 3, 2011, 4:11 p.m. OK Java 6 TESTS 50 390 43520000 2300
10206175 a654889339 D March 8, 2015, 12:37 p.m. OK Java 7 TESTS 50 248 19968000 2300
6861852 uwi D June 11, 2014, 1:12 a.m. OK Java 7 TESTS 50 466 15360000 2300
10206211 vjudge5 D March 8, 2015, 12:38 p.m. OK Java 8 TESTS 50 342 18636800 2300
11990464 pashka D July 9, 2015, 8:38 p.m. OK Java 8 TESTS 50 342 26112000 2300
9212804 AlexFetisov D Dec. 21, 2014, 5:58 a.m. OK Java 8 TESTS 50 374 18636800 2300
11990087 pashka D July 9, 2015, 7:45 p.m. OK Java 8 TESTS 50 374 108032000 2300
57560283 Ahmed_Diab D July 22, 2019, 11:49 p.m. OK Java 8 TESTS 50 436 37273600 2300
60695893 Dukkha D Sept. 16, 2019, 7:34 p.m. OK Java 8 TESTS 50 498 0 2300
46637094 qiyue D Dec. 5, 2018, 7:25 a.m. OK Java 8 TESTS 50 590 38092800 2300
59977863 vjudge2 D Sept. 4, 2019, 6:52 a.m. OK Java 8 TESTS 50 622 0 2300
34661718 AhmedGhazaly D Jan. 29, 2018, 12:54 p.m. OK Java 8 TESTS 50 622 67891200 2300
59954121 aminul D Sept. 3, 2019, 3:31 p.m. OK Java 8 TESTS 50 624 0 2300
1879126 eric16 D July 9, 2012, 1:24 p.m. OK MS C++ TESTS 50 50 5120000 2300
49935751 vjudge3 D Feb. 15, 2019, 7:13 a.m. OK MS C++ TESTS 50 62 4096000 2300
835027 M.H. D Nov. 4, 2011, 5:26 p.m. OK MS C++ TESTS 50 90 3788800 2300
834812 M.H. D Nov. 4, 2011, 3:26 p.m. OK MS C++ TESTS 50 90 3788800 2300
831883 vitar D Nov. 3, 2011, 5:04 p.m. OK MS C++ TESTS 50 90 9523200 2300
34445990 guoshiyuan484 D Jan. 22, 2018, 12:05 p.m. OK MS C++ TESTS 50 92 15974400 2300
9373599 Milanin D Jan. 6, 2015, 3:27 p.m. OK MS C++ TESTS 50 124 7168000 2300
4241522 wadefk D Aug. 8, 2013, 2:06 a.m. OK MS C++ TESTS 50 124 96153600 2300
836947 Kharybin D Nov. 5, 2011, 6:07 p.m. OK MS C++ TESTS 50 140 5529600 2300
12019568 bloat D July 12, 2015, 1:31 p.m. OK MS C++ TESTS 50 154 23654400 2300

remove filters

Back to search problems