Codeforces Round 326 (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
587 Codeforces Round 326 (Div. 1) FINISHED False 9000 292253363 Oct. 15, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1090 ) F Duff is Mad PROGRAMMING data structures strings 3000

B"Duff is mad at her friends. That's why she sometimes makes Malek to take candy from one of her friends for no reason! She has n friends. Her i-th friend's name is si (their names are not necessarily unique). q times, she asks Malek to take candy from her friends. She's angry, but also she acts with rules. When she wants to ask Malek to take candy from one of her friends, like k, she chooses two numbers l and r and tells Malek to take exactly candies from him/her, where occur(t, xe2 x80 x89s) is the number of occurrences of string t in s. Malek is not able to calculate how many candies to take in each request from Duff. That's why she asked for your help. Please tell him how many candies to take in each request. The first line of input contains two integers n and q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The next n lines contain the names. i-th of them contains an string si, consisting of lowercase English letters (). The next q lines contain the requests. Each of them contains three integers, l, xe2 x80 x89r and k (says that Malek should take candies from Duff's k-th friend). Print the answer to each request in one line."...

Tutorials

Codeforces Round #326 (Editorial)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
32343334 yylidiw F Nov. 15, 2017, 11:25 p.m. OK GNU C++ TESTS 87 234 29286400 3000
17310716 jiry_2 F April 14, 2016, 6:39 a.m. OK GNU C++ TESTS 87 296 32153600 3000
18595206 jiaqiyang F June 19, 2016, 9:48 a.m. OK GNU C++ TESTS 87 296 77414400 3000
14123027 dancho F Nov. 7, 2015, 11:37 a.m. OK GNU C++ TESTS 87 311 48640000 3000
15491709 Philipsweng F Jan. 22, 2016, 6:12 a.m. OK GNU C++ TESTS 87 327 47206400 3000
26602354 sherco F April 23, 2017, 11:21 a.m. OK GNU C++ TESTS 87 327 49561600 3000
17296697 SanSiroWaltz F April 13, 2016, 2:01 a.m. OK GNU C++ TESTS 87 358 26624000 3000
13723202 ErdemKirez F Oct. 19, 2015, 7:26 a.m. OK GNU C++ TESTS 87 358 67379200 3000
13723177 ErdemKirez F Oct. 19, 2015, 7:24 a.m. OK GNU C++ TESTS 87 358 75673600 3000
13723196 ErdemKirez F Oct. 19, 2015, 7:25 a.m. OK GNU C++ TESTS 87 373 56729600 3000
63373219 cuizhuyefei F Oct. 25, 2019, 10:07 a.m. OK GNU C++11 TESTS 87 124 27238400 3000
64552126 ilnil F Nov. 9, 2019, 12:31 a.m. OK GNU C++11 TESTS 87 140 23347200 3000
69621717 luogu_bot4 F Jan. 27, 2020, 2:41 p.m. OK GNU C++11 TESTS 87 155 27340800 3000
67601301 Lagoon_ F Dec. 25, 2019, 12:02 p.m. OK GNU C++11 TESTS 87 171 182579200 3000
49816543 luogu_bot5 F Feb. 12, 2019, 6:16 a.m. OK GNU C++11 TESTS 87 202 35225600 3000
64696865 cjy2003 F Nov. 11, 2019, 1:36 p.m. OK GNU C++11 TESTS 87 202 166912000 3000
57884160 lopare F July 28, 2019, 9:05 a.m. OK GNU C++11 TESTS 87 249 27750400 3000
57816979 py_ultron F July 26, 2019, 8:16 p.m. OK GNU C++11 TESTS 87 249 27750400 3000
67498077 star_magic_young F Dec. 24, 2019, 1:33 a.m. OK GNU C++11 TESTS 87 249 78336000 3000
67163001 XieRujian F Dec. 18, 2019, 2:35 p.m. OK GNU C++11 TESTS 87 249 148992000 3000
68945215 PinkRabbit F Jan. 16, 2020, 3:53 p.m. OK GNU C++14 TESTS 87 155 27648000 3000
63422512 zsyzsy F Oct. 26, 2019, 6:52 a.m. OK GNU C++14 TESTS 87 156 24166400 3000
68945061 PinkRabbit F Jan. 16, 2020, 3:50 p.m. OK GNU C++14 TESTS 87 156 27648000 3000
37463674 lxlxl F April 19, 2018, 1:46 p.m. OK GNU C++14 TESTS 87 171 210227200 3000
31672516 FizzyDavid F Oct. 24, 2017, 7:42 a.m. OK GNU C++14 TESTS 87 187 30310400 3000
40985947 ReaLNero1 F July 30, 2018, 8:16 p.m. OK GNU C++14 TESTS 87 218 28364800 3000
64321914 Toxel F Nov. 5, 2019, 3:56 p.m. OK GNU C++14 TESTS 87 218 29081600 3000
59639110 shamimjucse F Aug. 28, 2019, 11:39 p.m. OK GNU C++14 TESTS 87 233 56012800 3000
63132137 zhouzhendong F Oct. 22, 2019, 2:35 p.m. OK GNU C++14 TESTS 87 234 237363200 3000
58942359 Scut82 F Aug. 17, 2019, 7:28 a.m. OK GNU C++14 TESTS 87 249 20377600 3000
69872542 Marckess F Jan. 31, 2020, 1:28 a.m. OK GNU C++17 TESTS 87 233 29900800 3000
63938780 AliShahali1382 F Oct. 31, 2019, 4:47 p.m. OK GNU C++17 TESTS 87 280 26521600 3000
63641795 Elegia F Oct. 28, 2019, 8:19 a.m. OK GNU C++17 TESTS 87 311 24371200 3000
68847549 __JuRuo F Jan. 15, 2020, 7:54 a.m. OK GNU C++17 TESTS 87 311 245248000 3000
57917339 Benq F July 29, 2019, 2:21 a.m. OK GNU C++17 TESTS 87 327 31129600 3000
59634345 _c_k_r_ F Aug. 28, 2019, 7:48 p.m. OK GNU C++17 TESTS 87 373 58060800 3000
68847888 luogu_bot1 F Jan. 15, 2020, 8 a.m. OK GNU C++17 TESTS 87 404 245248000 3000
66529035 AprilGrimoire F Dec. 9, 2019, 6:45 a.m. OK GNU C++17 TESTS 87 405 43417600 3000
68046457 kostia244 F Jan. 1, 2020, 4:41 p.m. OK GNU C++17 TESTS 87 405 190771200 3000
63938516 AliShahali1382 F Oct. 31, 2019, 4:43 p.m. OK GNU C++17 TESTS 87 421 26521600 3000
14216160 AlexFetisov F Nov. 12, 2015, 3:43 p.m. OK Java 8 TESTS 87 2058 72704000 3000
13919355 AndreiNet F Oct. 28, 2015, 4:47 p.m. OK Java 8 TESTS 87 2324 104857600 3000
13654714 liymsheep F Oct. 15, 2015, 10:14 p.m. OK Java 8 TESTS 87 3853 19763200 3000
13654785 liymsheep F Oct. 15, 2015, 10:26 p.m. OK Java 8 TESTS 87 3977 19763200 3000

remove filters

Back to search problems