Codeforces Round 305 (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
547 Codeforces Round 305 (Div. 1) FINISHED False 7200 299165099 May 26, 2015, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2115 ) E Mike and Friends PROGRAMMING data structures string suffix structures strings trees 2800

B'What-The-Fatherland is a strange country! All phone numbers there are strings consisting of lowercase English letters. What is double strange that a phone number can be associated with several bears! In that country there is a rock band called CF consisting of n bears (including Mike) numbered from 1 to n. Phone number of i-th member of CF is si. May 17th is a holiday named Phone Calls day. In the last Phone Calls day, everyone called all the numbers that are substrings of his/her number (one may call some number several times). In particular, everyone called himself (that was really strange country). Denote as call(i, xe2 x80 x89j) the number of times that i-th member of CF called the j-th member of CF. The geek Mike has q questions that he wants to ask you. In each question he gives you numbers l, xe2 x80 x89r and k and you should tell him the number The first line of input contains integers n and q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xe2 x80 x89 xc3 x97 xe2 x80 x89105 and 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xe2 x80 x89 xc3 x97 xe2 x80 x89105). The next n lines contain the phone numbers, i-th line contains a string si consisting of lowercase English letters (). The next q lines contain the information about the questions, each of them contains integers l, xe2 x80 x89r and k (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 x89n and 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n). Print the answer for each question in a separate line.'...

Tutorials

Codeforces Round #305 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
28503380 Sanja E July 13, 2017, 1:16 p.m. OK FPC TESTS 86 2994 252928000 2800
33922774 jumpmelon E Jan. 5, 2018, 1:36 p.m. OK GNU C++ TESTS 86 264 61952000 2800
40303398 Scut82 E July 14, 2018, 3:58 a.m. OK GNU C++ TESTS 86 265 91852800 2800
40986583 ReaLNero1 E July 30, 2018, 8:37 p.m. OK GNU C++ TESTS 86 280 59596800 2800
12076975 nodgd E July 16, 2015, 2:02 a.m. OK GNU C++ TESTS 86 296 70553600 2800
32427157 Scut82 E Nov. 18, 2017, 10:10 a.m. OK GNU C++ TESTS 86 296 85606400 2800
40303326 Scut82 E July 14, 2018, 3:54 a.m. OK GNU C++ TESTS 86 327 88883200 2800
33862731 ranwen2 E Jan. 2, 2018, 11:38 a.m. OK GNU C++ TESTS 86 343 58982400 2800
12892894 Newstart E Sept. 8, 2015, 6:21 a.m. OK GNU C++ TESTS 86 343 80076800 2800
32642913 Scut82 E Nov. 25, 2017, 9:36 a.m. OK GNU C++ TESTS 86 343 94105600 2800
11438638 ShinriiTin E June 5, 2015, 1:15 a.m. OK GNU C++ TESTS 86 358 80076800 2800
66514606 xht37 E Dec. 8, 2019, 6:16 p.m. OK GNU C++11 TESTS 86 265 50483200 2800
39207612 vjudge1 E June 13, 2018, 6:21 a.m. OK GNU C++11 TESTS 86 280 59904000 2800
47258228 jangjie E Dec. 19, 2018, 11:16 a.m. OK GNU C++11 TESTS 86 327 76492800 2800
69712854 luogu_bot1 E Jan. 29, 2020, 7:47 a.m. OK GNU C++11 TESTS 86 327 118579200 2800
69713007 luogu_bot3 E Jan. 29, 2020, 7:51 a.m. OK GNU C++11 TESTS 86 327 118579200 2800
69607528 Even_Bao E Jan. 27, 2020, 10:17 a.m. OK GNU C++11 TESTS 86 342 84070400 2800
33913709 ranwen E Jan. 5, 2018, 1:27 a.m. OK GNU C++11 TESTS 86 358 54272000 2800
13525784 MinakoKojima E Oct. 10, 2015, 9:45 a.m. OK GNU C++11 TESTS 86 374 53760000 2800
65507828 XieRujian E Nov. 22, 2019, 12:51 a.m. OK GNU C++11 TESTS 86 389 44339200 2800
66158377 142857 E Dec. 2, 2019, 1:44 a.m. OK GNU C++11 TESTS 86 404 61849600 2800
33857891 q234rty E Jan. 2, 2018, 4:50 a.m. OK GNU C++14 TESTS 86 202 93184000 2800
56961478 NotNight E July 13, 2019, 6:46 a.m. OK GNU C++14 TESTS 86 467 72089600 2800
56962272 NotNight E July 13, 2019, 7:03 a.m. OK GNU C++14 TESTS 86 468 98099200 2800
64618893 mayaohua2003 E Nov. 10, 2019, 6:07 a.m. OK GNU C++14 TESTS 86 483 55296000 2800
48406332 eidan E Jan. 15, 2019, 4:09 a.m. OK GNU C++14 TESTS 86 530 62054400 2800
69807139 CYJian E Jan. 30, 2020, 2:31 a.m. OK GNU C++14 TESTS 86 546 110387200 2800
65688300 _user090203 E Nov. 25, 2019, 2:31 a.m. OK GNU C++14 TESTS 86 561 69836800 2800
65325633 nqiiii E Nov. 19, 2019, 12:47 a.m. OK GNU C++14 TESTS 86 561 106803200 2800
65690119 JioFell E Nov. 25, 2019, 4:09 a.m. OK GNU C++14 TESTS 86 576 67072000 2800
68228256 liuxiao E Jan. 5, 2020, 8:06 a.m. OK GNU C++14 TESTS 86 577 60723200 2800
63956411 jiangly E Nov. 1, 2019, 2:02 a.m. OK GNU C++17 TESTS 86 576 56627200 2800
63666108 AliShahali1382 E Oct. 28, 2019, 3:22 p.m. OK GNU C++17 TESTS 86 592 58880000 2800
63746165 iParsa E Oct. 29, 2019, 6:33 p.m. OK GNU C++17 TESTS 86 623 53350400 2800
63746803 Vahm E Oct. 29, 2019, 6:45 p.m. OK GNU C++17 TESTS 86 623 53350400 2800
65687644 manh9203 E Nov. 25, 2019, 1:49 a.m. OK GNU C++17 TESTS 86 624 164659200 2800
64772845 rushcheyo E Nov. 13, 2019, 1:38 a.m. OK GNU C++17 TESTS 86 655 147456000 2800
63698297 hanyuwei E Oct. 29, 2019, 6:22 a.m. OK GNU C++17 TESTS 86 685 87756800 2800
64307418 wucstdio E Nov. 5, 2019, 11:48 a.m. OK GNU C++17 TESTS 86 686 75571200 2800
60769193 henuyh E Sept. 18, 2019, 12:05 p.m. OK GNU C++17 TESTS 86 732 114688000 2800
63665795 AM. E Oct. 28, 2019, 3:16 p.m. OK GNU C++17 TESTS 86 779 106291200 2800
11306619 uwi E May 26, 2015, 7:11 p.m. OK Java 7 TESTS 86 1559 95232000 2800
11839837 Sumeet.Varma E June 29, 2015, 5:13 p.m. OK Java 7 TESTS 86 1872 144896000 2800
11303235 uwi E May 26, 2015, 6:27 p.m. OK Java 7 TESTS 86 2480 140083200 2800
11347618 Lewin E May 29, 2015, 3:25 p.m. OK Java 8 TESTS 86 1668 138854400 2800
11347514 Lewin E May 29, 2015, 3:17 p.m. OK Java 8 TESTS 86 1700 138854400 2800
13711529 YakutovDmitriy E Oct. 18, 2015, 11:21 a.m. OK Java 8 TESTS 86 1840 146739200 2800
42552791 U_Square E Sept. 6, 2018, 12:54 p.m. OK Java 8 TESTS 86 2152 170086400 2800
12090310 ccdd4211 E July 17, 2015, 2:54 a.m. OK Java 8 TESTS 86 2760 256307200 2800
11615499 AlexFetisov E June 17, 2015, 6:43 a.m. OK Java 8 TESTS 86 2807 268390400 2800
11296431 qwerty787788 E May 26, 2015, 5:51 p.m. OK Java 8 TESTS 86 2870 115200000 2800
11449394 AnatolyTolstobrov E June 5, 2015, 3:22 p.m. OK MS C# TESTS 86 2932 136089600 2800
58258043 vjudge3 E Aug. 4, 2019, 10:59 a.m. OK MS C++ TESTS 86 842 139264000 2800
11406781 SDil E June 3, 2015, 8:34 p.m. OK MS C++ TESTS 86 1075 73728000 2800
20905806 13048047792 E Sept. 25, 2016, 10:37 a.m. OK MS C++ TESTS 86 1092 209817600 2800
12873132 sister_what_hate_most E Sept. 6, 2015, 1:49 p.m. OK MS C++ TESTS 86 1621 195788800 2800
11309707 Auster E May 26, 2015, 9:14 p.m. OK MS C++ TESTS 86 1669 170291200 2800
11412893 White_Bear E June 4, 2015, 11:43 a.m. OK MS C++ TESTS 86 1809 149196800 2800
23327996 sdya E Dec. 25, 2016, 8:05 p.m. OK MS C++ TESTS 86 1825 136704000 2800
11360486 cmd E May 30, 2015, 7:54 p.m. OK MS C++ TESTS 86 1933 213299200 2800
11360519 cmd E May 30, 2015, 8:01 p.m. OK MS C++ TESTS 86 2090 213299200 2800
11360398 cmd E May 30, 2015, 7:43 p.m. OK MS C++ TESTS 86 2121 214835200 2800

remove filters

Back to search problems