Codeforces Round 302 (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
543 Codeforces Round 302 (Div. 1) FINISHED False 7200 306595804 May 7, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1414 ) C Remembering Strings PROGRAMMING bitmasks dp 2600

B'You have multiset of n strings of the same length, consisting of lowercase English letters. We will say that those strings are easy to remember if for each string there is some position i and some letter c of the English alphabet, such that this string is the only string in the multiset that has letter c in position i. For example, a multiset of strings {"abc", "aba", "adc", "ada"} are not easy to remember. And multiset {"abc", "ada", "ssa"} is easy to remember because: You want to change your multiset a little so that it is easy to remember. For aij coins, you can change character in the j-th position of the i-th string into any other lowercase letter of the English alphabet. Find what is the minimum sum you should pay in order to make the multiset of strings easy to remember. The first line contains two integers n, m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920) -- the number of strings in the multiset and the length of the strings respectively. Next n lines contain the strings of the multiset, consisting only of lowercase English letters, each string 's length is m. Next n lines contain m integers each, the i-th of them contains integers ai1, xe2 x80 x89ai2, xe2 x80 x89..., xe2 x80 x89aim (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89aij xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). Print a single number -- the answer to the problem.'...

Tutorials

Editorial Codeforces Round #302

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
11272271 vjudge5 C May 26, 2015, 1:28 a.m. OK FPC TESTS 51 31 8499200 2600
12203341 seek C July 23, 2015, 4:37 p.m. OK FPC TESTS 51 109 4403200 2600
11144674 tototototot C May 19, 2015, 1:53 p.m. OK FPC TESTS 51 218 4300800 2600
11140927 ez_cjb C May 19, 2015, 6:32 a.m. OK FPC TESTS 51 218 4300800 2600
11278218 louisja1 C May 26, 2015, 12:12 p.m. OK FPC TESTS 51 233 4198400 2600
11272130 vjudge5 C May 26, 2015, 12:56 a.m. OK FPC TESTS 51 234 4198400 2600
11028625 Alex_2oo8 C May 7, 2015, 5:32 p.m. OK FPC TESTS 51 530 4403200 2600
50340973 chaorenhaha C Feb. 23, 2019, 2:10 a.m. OK FPC TESTS 51 1294 4403200 2600
11041038 mirecek3 C May 8, 2015, 11:45 a.m. OK GNU C TESTS 51 31 4198400 2600
13895823 130705009 C Oct. 27, 2015, 3:55 p.m. OK GNU C++ TESTS 51 15 4198400 2600
14494953 Relax C Nov. 26, 2015, 3:19 p.m. OK GNU C++ TESTS 51 15 8396800 2600
11069168 shaojiepao C May 11, 2015, 10:57 a.m. OK GNU C++ TESTS 51 15 8806400 2600
11452900 arthurpd C June 5, 2015, 11 p.m. OK GNU C++ TESTS 51 15 10342400 2600
14032833 Bugday C Nov. 2, 2015, 7:16 p.m. OK GNU C++ TESTS 51 15 16793600 2600
11087304 aaaaajack C May 13, 2015, 10:33 a.m. OK GNU C++ TESTS 51 30 4198400 2600
11065660 Walid_Amin C May 10, 2015, 7:26 p.m. OK GNU C++ TESTS 51 30 4198400 2600
11051370 diegoximenes C May 9, 2015, 3:26 a.m. OK GNU C++ TESTS 51 30 4198400 2600
12007453 y9052541 C July 11, 2015, 11:22 a.m. OK GNU C++ TESTS 51 30 9318400 2600
28547593 Kerpoo C July 14, 2017, 12:02 p.m. OK GNU C++ TESTS 51 30 12083200 2600
13074297 kailash SVK.Jr nik1234 C Sept. 17, 2015, 6:02 p.m. OK GNU C++11 TESTS 51 15 4198400 2600
11035726 pavel.savchenkov C May 7, 2015, 8:26 p.m. OK GNU C++11 TESTS 51 15 4198400 2600
21561159 123_123_123_123 C Oct. 18, 2016, 8:37 a.m. OK GNU C++11 TESTS 51 15 6348800 2600
17165611 freebsdx C April 5, 2016, 2:43 a.m. OK GNU C++11 TESTS 51 15 6451200 2600
11411257 vjudge1 C June 4, 2015, 8:36 a.m. OK GNU C++11 TESTS 51 15 8396800 2600
16219180 agural C Feb. 20, 2016, 2:28 a.m. OK GNU C++11 TESTS 51 15 16793600 2600
12569617 Duxar C Aug. 17, 2015, 3:35 a.m. OK GNU C++11 TESTS 51 30 4198400 2600
11361158 ziggy C May 30, 2015, 9:44 p.m. OK GNU C++11 TESTS 51 30 4198400 2600
11028469 Shef C May 7, 2015, 5:30 p.m. OK GNU C++11 TESTS 51 30 4198400 2600
43388659 vjudge5 C Sept. 24, 2018, 10:24 p.m. OK GNU C++11 TESTS 51 31 4198400 2600
31731106 the_silliest C Oct. 26, 2017, 7:21 a.m. OK GNU C++14 TESTS 51 15 4403200 2600
31730895 the_silliest C Oct. 26, 2017, 7:11 a.m. OK GNU C++14 TESTS 51 15 4403200 2600
27708761 2360 C June 10, 2017, 3:28 p.m. OK GNU C++14 TESTS 51 15 4403200 2600
36153118 Jubair_2147483647 C March 10, 2018, 2:13 p.m. OK GNU C++14 TESTS 51 15 6246400 2600
21349917 marX C Oct. 11, 2016, 3:25 a.m. OK GNU C++14 TESTS 51 15 6246400 2600
28957856 cjtoribio C July 28, 2017, 4:19 p.m. OK GNU C++14 TESTS 51 15 14745600 2600
28181546 rawatds C July 1, 2017, 12:09 a.m. OK GNU C++14 TESTS 51 30 6144000 2600
43388751 Humayan_Kabir C Sept. 24, 2018, 10:30 p.m. OK GNU C++14 TESTS 51 31 4403200 2600
43388669 Humayan_Kabir C Sept. 24, 2018, 10:25 p.m. OK GNU C++14 TESTS 51 31 4403200 2600
51560922 Heltion C March 20, 2019, 7:54 a.m. OK GNU C++14 TESTS 51 31 5222400 2600
59649553 ymatsux C Aug. 29, 2019, 7:34 a.m. OK GNU C++17 TESTS 51 31 4403200 2600
49483743 charlie_yan C Feb. 5, 2019, 2:54 a.m. OK GNU C++17 TESTS 51 31 11366400 2600
38017981 Omar_Morsi C May 8, 2018, 10:46 a.m. OK GNU C++17 TESTS 51 46 7884800 2600
49271055 PugachAG C Jan. 31, 2019, 2:08 p.m. OK GNU C++17 TESTS 51 46 7987200 2600
49483441 charlie_yan C Feb. 5, 2019, 2:25 a.m. OK GNU C++17 TESTS 51 46 8704000 2600
49463175 charlie_yan C Feb. 4, 2019, 1:58 p.m. OK GNU C++17 TESTS 51 46 8704000 2600
55306598 imAnik C June 8, 2019, 2:52 p.m. OK GNU C++17 TESTS 51 46 9625600 2600
60926223 roll_no_1 C Sept. 20, 2019, 12:21 p.m. OK GNU C++17 TESTS 51 46 16998400 2600
47621347 BackOnTrack C Dec. 28, 2018, 12:56 p.m. OK GNU C++17 TESTS 51 61 8396800 2600
57123543 congmingyige C July 16, 2019, 2:51 a.m. OK GNU C++17 TESTS 51 62 4198400 2600
11053945 uwi C May 9, 2015, 10:43 a.m. OK Java 7 TESTS 51 234 0 2600
11029996 pashka C May 7, 2015, 5:48 p.m. OK Java 7 TESTS 51 295 0 2600
11031966 ilyakor C May 7, 2015, 6:14 p.m. OK Java 7 TESTS 51 405 0 2600
11053108 uwi C May 9, 2015, 8:56 a.m. OK Java 7 TESTS 51 561 0 2600
12547432 ACLhj C Aug. 15, 2015, 12:30 p.m. OK Java 7 TESTS 51 1279 0 2600
11057621 peter31415 C May 9, 2015, 7:43 p.m. OK Java 7 TESTS 51 1419 0 2600
11271653 tehqin C May 25, 2015, 11:18 p.m. OK Java 7 TESTS 51 1731 0 2600
11039478 A.Elahi C May 8, 2015, 8:24 a.m. OK Java 8 TESTS 51 139 0 2600
16280550 alibaba C Feb. 22, 2016, 4:40 p.m. OK Java 8 TESTS 51 233 140595200 2600
37499594 beginner1010 C April 20, 2018, 11:23 p.m. OK Java 8 TESTS 51 249 156364800 2600
16877847 Sumeet.Varma C March 22, 2016, 9:03 p.m. OK Java 8 TESTS 51 265 20684800 2600
11072626 hama-du C May 11, 2015, 6:03 p.m. OK Java 8 TESTS 51 280 0 2600
11096019 pretorium C May 14, 2015, 7:55 a.m. OK Java 8 TESTS 51 295 0 2600
12323738 bubble000000 C Aug. 3, 2015, 9:08 a.m. OK Java 8 TESTS 51 296 0 2600
11600639 llyang C June 16, 2015, 1:11 a.m. OK Java 8 TESTS 51 296 0 2600
11091614 Pimpom C May 13, 2015, 5:29 p.m. OK Java 8 TESTS 51 296 0 2600
11027785 qwerty787788 C May 7, 2015, 5:22 p.m. OK Java 8 TESTS 51 327 0 2600
11034114 azukun C May 7, 2015, 6:57 p.m. OK MS C# TESTS 51 967 10649600 2600
11093876 AcmerArthur C May 14, 2015, 12:25 a.m. OK MS C++ TESTS 51 30 4198400 2600
11516312 logickaiser C June 10, 2015, 2:02 a.m. OK MS C++ TESTS 51 31 4198400 2600
14355683 8rfuz C Nov. 20, 2015, 8:15 a.m. OK MS C++ TESTS 51 46 8396800 2600
14355335 8rfuz C Nov. 20, 2015, 7:45 a.m. OK MS C++ TESTS 51 46 8396800 2600
52727975 vjudge5 C April 14, 2019, 2:12 a.m. OK MS C++ TESTS 51 93 4198400 2600
16660272 SemperIdem C March 11, 2016, 8:08 p.m. OK MS C++ TESTS 51 93 4198400 2600
11386188 josdas C June 2, 2015, 6:06 a.m. OK MS C++ TESTS 51 93 4300800 2600
11185414 Mano C May 21, 2015, 6:58 a.m. OK MS C++ TESTS 51 108 8396800 2600
11601013 SDil C June 16, 2015, 2:43 a.m. OK MS C++ TESTS 51 109 16793600 2600
11041097 AleksanderBalobanov C May 8, 2015, 11:51 a.m. OK MS C++ TESTS 51 171 4198400 2600

remove filters

Back to search problems