Educational Codeforces Round 84 (Rated for Div. 2)

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
1327 Educational Codeforces Round 84 (Rated for Div. 2) FINISHED False 7200 152378710 March 23, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 436 ) G Letters and Question Marks PROGRAMMING bitmasks dp string suffix structures 2900

B'You are given a string S and an array of strings [t_1, t_2, ... , t_k] . Each string t_i consists of lowercase Latin letters from a to n; S consists of lowercase Latin letters from a to n and no more than 14 question marks. Each string t_i has its cost c_i -- an integer number. The value of some string T is calculated as sum limits_{i = 1}^{k} F(T, t_i) cdot c_i , where F(T, t_i) is the number of occurences of string t_i in T as a substring. For example, F( text{aaabaaa}, text{aa}) = 4 . You have to replace all question marks in S with pairwise distinct lowercase Latin letters from a to n so the value of S is maximum possible. The first line contains one integer k ( 1 <= k <= 1000 ) -- the number of strings in the array [t_1, t_2, ... , t_k] . Then k lines follow, each containing one string t_i (consisting of lowercase Latin letters from a to n) and one integer c_i ( 1 <= |t_i| <= 1000 , -10^6 <= c_i <= 10^6 ). The sum of lengths of all strings t_i does not exceed 1000 . The last line contains one string S ( 1 <= |S| <= 4 cdot 10^5 ) consisting of lowercase Latin letters from a to n and question marks. The number of question marks in S is not greater than 14 . Print one integer -- the maximum value of S after replacing all question marks with pairwise distinct lowercase Latin letters from a to n. '...

Tutorials

Educational Codeforces Round 84 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
74281413 s_h_shahin G March 25, 2020, 11:04 a.m. OK GNU C++11 TESTS 100 61 151040000 2900
74577321 nimom G March 27, 2020, 4:02 p.m. OK GNU C++11 TESTS 100 62 150220800 2900
74577147 nimom G March 27, 2020, 4 p.m. OK GNU C++11 TESTS 100 62 150220800 2900
74576976 nimom G March 27, 2020, 3:58 p.m. OK GNU C++11 TESTS 100 62 150220800 2900
74281390 s_h_shahin G March 25, 2020, 11:03 a.m. OK GNU C++11 TESTS 100 109 150630400 2900
74229574 vamhacker G March 24, 2020, 6:02 p.m. OK GNU C++11 TESTS 100 311 139264000 2900
74521052 haojiandan G March 27, 2020, 3:09 a.m. OK GNU C++11 TESTS 100 982 133324800 2900
74388122 Glu_TtoNy G March 26, 2020, 1 p.m. OK GNU C++11 TESTS 100 1091 133427200 2900
74388024 vjudge3 G March 26, 2020, 1 p.m. OK GNU C++11 TESTS 100 1091 133427200 2900
74271266 AutumnKite G March 25, 2020, 8:56 a.m. OK GNU C++11 TESTS 100 1092 152780800 2900
74331621 elManco G March 25, 2020, 7:41 p.m. OK GNU C++14 TESTS 100 77 153395200 2900
74185559 DeadPillow G March 24, 2020, 10:04 a.m. OK GNU C++14 TESTS 100 171 266649600 2900
74362594 iefnah06 G March 26, 2020, 7:43 a.m. OK GNU C++14 TESTS 100 358 134451200 2900
74179985 alexander86 G March 24, 2020, 8:55 a.m. OK GNU C++14 TESTS 100 530 32358400 2900
74202955 alexander86 G March 24, 2020, 1:14 p.m. OK GNU C++14 TESTS 100 561 32358400 2900
74180486 alexander86 G March 24, 2020, 9:02 a.m. OK GNU C++14 TESTS 100 607 32358400 2900
74249028 heyuhhh G March 25, 2020, 1:35 a.m. OK GNU C++14 TESTS 100 701 132505600 2900
74192540 luogu_bot2 G March 24, 2020, 11:27 a.m. OK GNU C++14 TESTS 100 951 132505600 2900
74192453 PinkRabbit G March 24, 2020, 11:26 a.m. OK GNU C++14 TESTS 100 951 132505600 2900
74211867 rainboy G March 24, 2020, 2:39 p.m. OK GNU C++14 TESTS 100 1013 263884800 2900
74150875 Marckess G March 23, 2020, 11 p.m. OK GNU C++17 TESTS 100 46 29798400 2900
74151038 Marckess G March 23, 2020, 11:07 p.m. OK GNU C++17 TESTS 100 46 135884800 2900
74151391 Marckess G March 23, 2020, 11:23 p.m. OK GNU C++17 TESTS 100 62 29696000 2900
74148291 mraron G March 23, 2020, 9:36 p.m. OK GNU C++17 TESTS 100 62 166297600 2900
74577399 nimom G March 27, 2020, 4:03 p.m. OK GNU C++17 TESTS 100 77 150323200 2900
74148323 mraron G March 23, 2020, 9:37 p.m. OK GNU C++17 TESTS 100 77 166297600 2900
74213782 Phortox G March 24, 2020, 2:59 p.m. OK GNU C++17 TESTS 100 108 133324800 2900
74144596 Noureldin G March 23, 2020, 8:18 p.m. OK GNU C++17 TESTS 100 109 161587200 2900
74312792 triple__a G March 25, 2020, 4:17 p.m. OK GNU C++17 TESTS 100 124 131993600 2900
74205780 ftiasch G March 24, 2020, 1:42 p.m. OK GNU C++17 TESTS 100 140 131993600 2900
74262690 neal G March 25, 2020, 7:02 a.m. OK GNU C++17 (64) TESTS 100 108 135475200 2900
74520175 vjudge1 G March 27, 2020, 2:49 a.m. OK GNU C++17 (64) TESTS 100 186 139673600 2900
74161952 ecnerwala G March 24, 2020, 4:48 a.m. OK GNU C++17 (64) TESTS 100 249 139468800 2900
74363139 iefnah06 G March 26, 2020, 7:50 a.m. OK GNU C++17 (64) TESTS 100 265 139468800 2900
74363046 iefnah06 G March 26, 2020, 7:49 a.m. OK GNU C++17 (64) TESTS 100 280 134451200 2900
74519412 Asagami G March 27, 2020, 2:30 a.m. OK GNU C++17 (64) TESTS 100 1075 139673600 2900
74333174 MinakoKojima G March 25, 2020, 8:03 p.m. OK GNU C++17 (64) TESTS 100 1170 133734400 2900
74158603 LiSA G March 24, 2020, 3:26 a.m. OK GNU C++17 (64) TESTS 100 1216 135065600 2900
74176368 UniverseofHK G March 24, 2020, 8:09 a.m. OK GNU C++17 (64) TESTS 100 1247 133836800 2900
74261327 neal G March 25, 2020, 6:41 a.m. OK GNU C++17 (64) TESTS 100 1279 135475200 2900
74547750 happy15 G March 27, 2020, 10:32 a.m. OK Java 11 TESTS 100 405 6553600 2900
74201162 fetetriste G March 24, 2020, 12:56 p.m. OK Java 8 TESTS 100 3416 438374400 2900
74153435 sansen G March 24, 2020, 12:44 a.m. OK Rust TESTS 100 2417 270233600 2900
74153277 sansen G March 24, 2020, 12:37 a.m. OK Rust TESTS 100 3198 270336000 2900

remove filters

Back to search problems