Technocup 2017 - Elimination Round 3

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
748 Technocup 2017 - Elimination Round 3 FINISHED False 7200 249166499 Dec. 25, 2016, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1876 ) D Santa Claus and a Palindrome PROGRAMMING constructive algorithms data structures greedy 2000

B"Santa Claus likes palindromes very much. There was his birthday recently. k of his friends came to him to congratulate him, and each of them presented to him a string si having the same length n. We denote the beauty of the i-th string by ai. It can happen that ai is negative -- that means that Santa doesn't find this string beautiful at all. Santa Claus is crazy about palindromes. He is thinking about the following question: what is the maximum possible total beauty of a palindrome which can be obtained by concatenating some (possibly all) of the strings he has? Each present can be used at most once. Note that all strings have the same length n. Recall that a palindrome is a string that doesn't change after one reverses it. Since the empty string is a palindrome too, the answer can't be negative. Even if all ai's are negative, Santa can obtain the empty string. The first line contains two positive integers k and n divided by space and denoting the number of Santa friends and the length of every string they've presented, respectively (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k, xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000; n xc2 xb7k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000). k lines follow. The i-th of them contains the string si and its beauty ai ( xe2 x80 x89- xe2 x80 x8910 xe2 x80 x89000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910 xe2 x80 x89000). The string consists of n lowercase English letters, and its beauty is integer. Some of strings may coincide. Also, equal strings can have different beauties. In the only line print the required maximum possible beauty. In the first example Santa can obtain abbaaaxyxaaabba by concatenating strings 5, 2, 7, 6 and 3 (in this order). "...

Tutorials

Codeforces Round 389 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
48168292 Khanh_Moriaty D Jan. 10, 2019, 4:08 a.m. OK FPC TESTS 62 93 9523200 2000
24144688 Gray_58 D Jan. 26, 2017, 9:39 a.m. OK FPC TESTS 62 405 8499200 2000
23345074 SelfBreathing D Dec. 26, 2016, 5:14 p.m. OK GNU C++ TESTS 62 62 3686400 2000
23341564 djq_cpp D Dec. 26, 2016, 2:05 p.m. OK GNU C++ TESTS 62 62 5632000 2000
25053960 vjudge2 D Feb. 26, 2017, 12:28 p.m. OK GNU C++ TESTS 62 62 6144000 2000
25139520 vjudge2 D March 2, 2017, 3:41 a.m. OK GNU C++ TESTS 62 62 6348800 2000
36294788 vjudge4 D March 15, 2018, 9:42 a.m. OK GNU C++ TESTS 62 62 7577600 2000
25051436 vjudge1 D Feb. 26, 2017, 11:26 a.m. OK GNU C++ TESTS 62 62 7680000 2000
25057342 vjudge5 D Feb. 26, 2017, 2:27 p.m. OK GNU C++ TESTS 62 78 11673600 2000
23376820 Gromah D Dec. 28, 2016, 11:47 a.m. OK GNU C++ TESTS 62 78 30515200 2000
25055293 vjudge1 D Feb. 26, 2017, 1:11 p.m. OK GNU C++ TESTS 62 93 5836800 2000
27439784 SoSad D May 30, 2017, 4:29 a.m. OK GNU C++ TESTS 62 93 7065600 2000
23833409 2013300262 D Jan. 15, 2017, 8:18 a.m. OK GNU C++11 TESTS 62 46 3584000 2000
46739643 frodakcin D Dec. 8, 2018, 12:18 a.m. OK GNU C++11 TESTS 62 46 15667200 2000
23330363 arcanae D Dec. 26, 2016, 12:01 a.m. OK GNU C++11 TESTS 62 61 6041600 2000
23536965 chitanda D Jan. 4, 2017, 2:02 p.m. OK GNU C++11 TESTS 62 61 9318400 2000
61069536 zuhiul D Sept. 22, 2019, 12:13 p.m. OK GNU C++11 TESTS 62 62 1945600 2000
57877714 lopare D July 28, 2019, 6:18 a.m. OK GNU C++11 TESTS 62 62 2867200 2000
57813275 py_ultron D July 26, 2019, 6:25 p.m. OK GNU C++11 TESTS 62 62 2867200 2000
23945916 renegade_warrior D Jan. 19, 2017, 2:03 p.m. OK GNU C++11 TESTS 62 62 4096000 2000
23367839 179000 D Dec. 27, 2016, 10:03 p.m. OK GNU C++11 TESTS 62 62 5017600 2000
31184890 platypus179 D Oct. 10, 2017, 8:55 a.m. OK GNU C++11 TESTS 62 62 5939200 2000
27434237 fqw D May 29, 2017, 6:31 p.m. OK GNU C++14 TESTS 62 46 1331200 2000
30995373 Darui99 D Oct. 4, 2017, 3:03 p.m. OK GNU C++14 TESTS 62 46 2764800 2000
23503284 Nebuchadnezzar D Jan. 2, 2017, 5:04 p.m. OK GNU C++14 TESTS 62 46 3481600 2000
26645023 Coder_404 D April 24, 2017, 4:21 p.m. OK GNU C++14 TESTS 62 46 3686400 2000
26645004 Coder_404 D April 24, 2017, 4:20 p.m. OK GNU C++14 TESTS 62 46 3686400 2000
54984129 z3r0dmg D June 2, 2019, 2:44 p.m. OK GNU C++14 TESTS 62 46 3993600 2000
27662211 ginshin D June 8, 2017, 3:22 a.m. OK GNU C++14 TESTS 62 46 3993600 2000
23463804 _Mr_Fab D Dec. 31, 2016, 6:05 a.m. OK GNU C++14 TESTS 62 46 4096000 2000
27563105 Momentaiii D June 4, 2017, 11:34 a.m. OK GNU C++14 TESTS 62 46 4198400 2000
25059037 aozil110 D Feb. 26, 2017, 3:46 p.m. OK GNU C++14 TESTS 62 46 4710400 2000
52205362 vjudge4 D April 1, 2019, 5:14 p.m. OK GNU C++17 TESTS 62 46 5529600 2000
61560849 Bohun D Sept. 30, 2019, 3:30 p.m. OK GNU C++17 TESTS 62 61 4096000 2000
55398295 grand_zeno D June 10, 2019, 12:49 p.m. OK GNU C++17 TESTS 62 61 4505600 2000
41653060 Tosic D Aug. 16, 2018, 12:56 p.m. OK GNU C++17 TESTS 62 61 6451200 2000
56291920 m1sch3f D June 30, 2019, 2:04 a.m. OK GNU C++17 TESTS 62 62 1843200 2000
63776149 Hadi_A D Oct. 30, 2019, 9:36 a.m. OK GNU C++17 TESTS 62 62 2150400 2000
64773839 chuducanhchy D Nov. 13, 2019, 2:31 a.m. OK GNU C++17 TESTS 62 62 2764800 2000
68287014 Phortox D Jan. 5, 2020, 6:57 p.m. OK GNU C++17 TESTS 62 62 2969600 2000
47854791 dragonsoul D Jan. 2, 2019, 8:36 p.m. OK GNU C++17 TESTS 62 62 3584000 2000
62306560 aditya_sheth D Oct. 10, 2019, 1:20 p.m. OK GNU C++17 TESTS 62 62 3788800 2000
23405130 JialinOuyang D Dec. 29, 2016, 6:29 p.m. OK Java 8 TESTS 62 156 20889600 2000
23404846 JialinOuyang D Dec. 29, 2016, 6:13 p.m. OK Java 8 TESTS 62 156 20889600 2000
23410327 JialinOuyang D Dec. 29, 2016, 10:30 p.m. OK Java 8 TESTS 62 156 20992000 2000
23404919 JialinOuyang D Dec. 29, 2016, 6:17 p.m. OK Java 8 TESTS 62 156 20992000 2000
23515989 prashanth_rebala D Jan. 3, 2017, 12:13 p.m. OK Java 8 TESTS 62 171 20889600 2000
23410292 JialinOuyang D Dec. 29, 2016, 10:26 p.m. OK Java 8 TESTS 62 171 20992000 2000
23404782 JialinOuyang D Dec. 29, 2016, 6:09 p.m. OK Java 8 TESTS 62 171 20992000 2000
25363104 Ahmad_Elsagheer D March 9, 2017, 3:14 p.m. OK Java 8 TESTS 62 202 20992000 2000
23358888 MazzForces D Dec. 27, 2016, 12:28 p.m. OK Java 8 TESTS 62 202 21094400 2000
58913449 LAKOUAM_IMAD D Aug. 16, 2019, 1:58 p.m. OK Java 8 TESTS 62 233 18944000 2000
24244025 wp32pw D Jan. 29, 2017, 9:59 a.m. OK MS C++ TESTS 62 46 3891200 2000
23359954 MrFog D Dec. 27, 2016, 1:33 p.m. OK MS C++ TESTS 62 61 6758400 2000
25100925 vjudge1 D Feb. 28, 2017, 12:52 p.m. OK MS C++ TESTS 62 62 6758400 2000
25104654 vjudge4 D Feb. 28, 2017, 3:47 p.m. OK MS C++ TESTS 62 109 6656000 2000
23302086 KocherginDaniil D Dec. 25, 2016, 10:46 a.m. OK MS C++ TESTS 62 124 3788800 2000
23301889 Gmacem D Dec. 25, 2016, 10:44 a.m. OK MS C++ TESTS 62 156 5427200 2000
23880982 Powelitel D Jan. 16, 2017, 12:01 p.m. OK MS C++ TESTS 62 264 9318400 2000
23348943 mayakin D Dec. 26, 2016, 9:34 p.m. OK PHP TESTS 62 218 18022400 2000
23904137 LordVoldebug D Jan. 17, 2017, 2:32 p.m. OK PyPy 2 TESTS 62 405 31641600 2000
23347817 cugel D Dec. 26, 2016, 8:04 p.m. OK PyPy 3 TESTS 62 249 30822400 2000
25552131 mstczuo D March 16, 2017, 2:35 p.m. OK Python 2 TESTS 62 296 9011200 2000
23395342 franckmy D Dec. 29, 2016, 9:50 a.m. OK Python 2 TESTS 62 311 8499200 2000
66481205 NocturneBflat D Dec. 8, 2019, 2:44 a.m. OK Python 3 TESTS 62 389 4915200 2000

remove filters

Back to search problems