Educational Codeforces Round 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
600 Educational Codeforces Round 2 FINISHED False 7200 283186799 Nov. 27, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6279 ) C Make Palindrome PROGRAMMING constructive algorithms greedy strings 1800

B'A string is called palindrome if it reads the same from left to right and from right to left. For example "kazak", "oo", "r" and "mikhailrubinchikkihcniburliahkim" are palindroms, but strings "abb" and "ij" are not. You are given string s consisting of lowercase Latin letters. At once you can choose any position in the string and change letter in that position to any other lowercase letter. So after each changing the length of the string doesn 't change. At first you can change some letters in s. Then you can permute the order of letters as you want. Permutation doesn 't count as changes. You should obtain palindrome with the minimal number of changes. If there are several ways to do that you should get the lexicographically (alphabetically) smallest palindrome. So firstly you should minimize the number of changes and then minimize the palindrome lexicographically. The only line contains string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) consisting of only lowercase Latin letters. Print the lexicographically smallest palindrome that can be obtained with the minimal number of changes.'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65908302 vjudge2 C Nov. 28, 2019, 11:55 a.m. OK Clang++17 Diagnostics TESTS 66 140 15052800 1800
56788357 LaSWeeG C July 10, 2019, 9:25 a.m. OK Delphi TESTS 66 77 409600 1800
56770318 LaSWeeG C July 9, 2019, 9:09 p.m. OK Delphi TESTS 66 92 409600 1800
38761456 chaorenhaha C May 30, 2018, 6:06 a.m. OK FPC TESTS 66 342 4403200 1800
38761445 chaorenhaha C May 30, 2018, 6:06 a.m. OK FPC TESTS 66 342 4403200 1800
34816610 rainboy C Feb. 1, 2018, 6:47 p.m. OK GNU C TESTS 66 15 2048000 1800
34791682 amolpratap007 C Feb. 1, 2018, 6:24 a.m. OK GNU C TESTS 66 15 3891200 1800
20010961 arts C Aug. 20, 2016, 7:10 p.m. OK GNU C TESTS 66 30 2048000 1800
34778636 preliminary C Jan. 31, 2018, 6:56 p.m. OK GNU C TESTS 66 30 2252800 1800
20362176 avinash_47 C Sept. 3, 2016, 1:14 p.m. OK GNU C TESTS 66 31 204800 1800
20970237 vjudge5 C Sept. 28, 2016, 2:38 p.m. OK GNU C TESTS 66 31 512000 1800
18391946 return007 C June 12, 2016, 1:52 p.m. OK GNU C TESTS 66 31 2457600 1800
36399813 cristinamateescu C March 18, 2018, 10:07 p.m. OK GNU C TESTS 66 31 3481600 1800
18988170 vjudge5 C July 9, 2016, 3:13 p.m. OK GNU C TESTS 66 46 0 1800
27012799 vjudge3 C May 11, 2017, 12:37 p.m. OK GNU C++ TESTS 66 15 0 1800
18981519 vjudge4 C July 9, 2016, 8:05 a.m. OK GNU C++ TESTS 66 15 0 1800
30322278 vjudge2 C Sept. 14, 2017, 7:46 a.m. OK GNU C++ TESTS 66 15 204800 1800
30306105 vjudge4 C Sept. 13, 2017, 12:01 p.m. OK GNU C++ TESTS 66 15 204800 1800
27014496 vjudge5 C May 11, 2017, 1:42 p.m. OK GNU C++ TESTS 66 15 204800 1800
19508132 vjudge4 C July 30, 2016, 3:39 a.m. OK GNU C++ TESTS 66 15 204800 1800
19478819 vjudge3 C July 29, 2016, 11:42 a.m. OK GNU C++ TESTS 66 15 204800 1800
18984087 vjudge4 C July 9, 2016, 10:51 a.m. OK GNU C++ TESTS 66 15 204800 1800
18764937 makeitdone C June 28, 2016, 9:22 a.m. OK GNU C++ TESTS 66 15 204800 1800
18540739 SoiMae C June 17, 2016, 10:43 a.m. OK GNU C++ TESTS 66 15 204800 1800
33844087 alexey.orlov C Jan. 1, 2018, 9:02 a.m. OK GNU C11 TESTS 66 15 2048000 1800
55530940 shanto_muk C June 13, 2019, 1:34 p.m. OK GNU C11 TESTS 66 623 0 1800
67042431 tushar3105 C Dec. 16, 2019, 7:58 p.m. OK GNU C11 TESTS 66 624 204800 1800
36145504 raduklb C March 10, 2018, 9:29 a.m. OK GNU C11 TESTS 66 733 2048000 1800
18994365 vjudge1 C July 10, 2016, 3:12 a.m. OK GNU C++11 TESTS 66 15 0 1800
30333777 igand C Sept. 14, 2017, 4:41 p.m. OK GNU C++11 TESTS 66 15 204800 1800
27284560 JNS C May 22, 2017, 1:04 p.m. OK GNU C++11 TESTS 66 15 204800 1800
19535167 fsps60312 C July 31, 2016, 9:44 a.m. OK GNU C++11 TESTS 66 15 204800 1800
18988098 ziggy C July 9, 2016, 3:07 p.m. OK GNU C++11 TESTS 66 15 204800 1800
30614131 vjudge3 C Sept. 22, 2017, 12:24 p.m. OK GNU C++11 TESTS 66 15 307200 1800
19010155 happycat C July 10, 2016, 12:59 p.m. OK GNU C++11 TESTS 66 15 409600 1800
19051506 uselessaddress C July 12, 2016, 12:57 p.m. OK GNU C++11 TESTS 66 15 409600 1800
26867567 colins C May 4, 2017, 8:43 p.m. OK GNU C++11 TESTS 66 15 512000 1800
32096723 lorentz. C Nov. 6, 2017, 1:20 p.m. OK GNU C++11 TESTS 66 15 614400 1800
27682972 JoseAcv2 C June 9, 2017, 5:49 a.m. OK GNU C++14 TESTS 66 15 204800 1800
22173054 xiaowuc1 C Nov. 12, 2016, 6:22 a.m. OK GNU C++14 TESTS 66 15 204800 1800
30303974 DoubleX C Sept. 13, 2017, 10:21 a.m. OK GNU C++14 TESTS 66 15 204800 1800
29703335 WYK1823376647 C Aug. 23, 2017, 9:49 a.m. OK GNU C++14 TESTS 66 15 204800 1800
30381798 ayushtiku5 C Sept. 16, 2017, 11:21 a.m. OK GNU C++14 TESTS 66 15 204800 1800
30311054 vjudge2 C Sept. 13, 2017, 3:54 p.m. OK GNU C++14 TESTS 66 15 204800 1800
39688849 sunliwei C June 27, 2018, 2 a.m. OK GNU C++14 TESTS 66 15 409600 1800
31696294 Fazle C Oct. 25, 2017, 1:03 a.m. OK GNU C++14 TESTS 66 15 512000 1800
31956463 int3xcc C Nov. 1, 2017, 4:06 p.m. OK GNU C++14 TESTS 66 15 512000 1800
38471412 modric19 C May 20, 2018, 11:22 p.m. OK GNU C++14 TESTS 66 15 512000 1800
61560430 jt_112 C Sept. 30, 2019, 3:22 p.m. OK GNU C++17 TESTS 66 30 512000 1800
56016518 praveenojha33 C June 24, 2019, 9:42 p.m. OK GNU C++17 TESTS 66 30 512000 1800
54485362 megomago C May 22, 2019, 12:51 p.m. OK GNU C++17 TESTS 66 30 512000 1800
39650360 BadDuck C June 25, 2018, 1:11 p.m. OK GNU C++17 TESTS 66 30 512000 1800
69072559 Naseem17 C Jan. 18, 2020, 11:34 p.m. OK GNU C++17 TESTS 66 30 716800 1800
59391680 sparsh_sinha C Aug. 24, 2019, 8:48 a.m. OK GNU C++17 TESTS 66 30 819200 1800
67599603 TheNineTails C Dec. 25, 2019, 11:25 a.m. OK GNU C++17 TESTS 66 30 1126400 1800
66082547 Prometheus C Dec. 1, 2019, 1:32 a.m. OK GNU C++17 TESTS 66 30 1331200 1800
38785498 aryanc403 C May 30, 2018, 9:17 p.m. OK GNU C++17 TESTS 66 30 3891200 1800
36273088 vjudge5 C March 14, 2018, 11:30 a.m. OK GNU C++17 TESTS 66 30 7884800 1800
20915851 jura__ C Sept. 25, 2016, 9:31 p.m. OK Haskell TESTS 66 46 10752000 1800
19170795 pavel.rosputko C July 16, 2016, 9:46 a.m. OK Haskell TESTS 66 249 25395200 1800
19170817 pavel.rosputko C July 16, 2016, 9:48 a.m. OK Haskell TESTS 66 280 19046400 1800
65246566 ankyy_0103 C Nov. 17, 2019, 10:38 a.m. OK Java 11 TESTS 66 202 0 1800
18011780 cs1235 C May 20, 2016, 11:48 p.m. OK Java 7 TESTS 66 623 39219200 1800
27166487 MaxHeap C May 16, 2017, 6:03 p.m. OK Java 8 TESTS 66 109 0 1800
62829482 cn355 C Oct. 17, 2019, 7:14 p.m. OK Java 8 TESTS 66 124 0 1800
62228861 Shady51 C Oct. 9, 2019, 7:52 p.m. OK Java 8 TESTS 66 124 0 1800
62228567 Shady51 C Oct. 9, 2019, 7:47 p.m. OK Java 8 TESTS 66 124 0 1800
55472566 Vishal_dhanani C June 11, 2019, 7:47 p.m. OK Java 8 TESTS 66 124 0 1800
47853562 wigor C Jan. 2, 2019, 7:29 p.m. OK Java 8 TESTS 66 124 0 1800
46623495 vaibhavpulastya C Dec. 4, 2018, 7:14 p.m. OK Java 8 TESTS 66 124 0 1800
45417823 KulikAlex C Nov. 7, 2018, 3:20 p.m. OK Java 8 TESTS 66 124 0 1800
42757940 poiuytrewq C Sept. 11, 2018, 8:37 a.m. OK Java 8 TESTS 66 124 0 1800
41645240 IDzekh C Aug. 16, 2018, 8:13 a.m. OK Java 8 TESTS 66 124 0 1800
18741219 leonidvasilyev C June 26, 2016, 6:19 p.m. OK JavaScript TESTS 66 78 6041600 1800
18716672 leonidvasilyev C June 25, 2016, 9:24 a.m. OK JavaScript TESTS 66 108 10035200 1800
41649176 Slamur C Aug. 16, 2018, 10:43 a.m. OK Kotlin TESTS 66 171 0 1800
39637732 QuantumKnight C June 25, 2018, 4:20 a.m. OK Mono C# TESTS 66 61 6860800 1800
60714601 NEvOl C Sept. 17, 2019, 9:59 a.m. OK Mono C# TESTS 66 77 5529600 1800
64349165 Kirundel C Nov. 6, 2019, 7:37 a.m. OK Mono C# TESTS 66 78 6348800 1800
69963365 ngtkana C Feb. 1, 2020, 12:03 p.m. OK Mono C# TESTS 66 639 1228800 1800
28004673 artsin666 C June 24, 2017, noon OK MS C# TESTS 66 46 11571200 1800
30663892 alexanderanchishkin C Sept. 24, 2017, 11:13 a.m. OK MS C# TESTS 66 451 3276800 1800
21973710 ovProphet C Nov. 1, 2016, 4:44 p.m. OK MS C++ TESTS 66 15 204800 1800
30638736 AIChannel C Sept. 23, 2017, 10:51 a.m. OK MS C++ TESTS 66 15 614400 1800
32413813 JKSamir C Nov. 17, 2017, 8:42 p.m. OK MS C++ TESTS 66 15 819200 1800
34446479 vjudge3 C Jan. 22, 2018, 12:19 p.m. OK MS C++ TESTS 66 15 2252800 1800
34706717 vjudge4 C Jan. 30, 2018, 11:35 a.m. OK MS C++ TESTS 66 15 2252800 1800
34686232 vjudge5 C Jan. 29, 2018, 5:36 p.m. OK MS C++ TESTS 66 15 2252800 1800
34685829 vjudge1 C Jan. 29, 2018, 4:56 p.m. OK MS C++ TESTS 66 15 2252800 1800
34679458 vjudge5 C Jan. 29, 2018, 3:43 p.m. OK MS C++ TESTS 66 15 2252800 1800
34446561 vjudge3 C Jan. 22, 2018, 12:22 p.m. OK MS C++ TESTS 66 15 2252800 1800
34446517 vjudge1 C Jan. 22, 2018, 12:21 p.m. OK MS C++ TESTS 66 15 2252800 1800
64361789 vjudge5 C Nov. 6, 2019, 11:55 a.m. OK MS C++ 2017 TESTS 66 31 409600 1800
56145482 minder_zjl C June 27, 2019, 6:02 a.m. OK MS C++ 2017 TESTS 66 31 409600 1800
53999949 max.pojidaev C May 11, 2019, 4 p.m. OK MS C++ 2017 TESTS 66 46 0 1800
60047815 siwei C Sept. 4, 2019, 9:38 p.m. OK MS C++ 2017 TESTS 66 46 819200 1800
57511753 CtrlAlt C July 22, 2019, 2:05 p.m. OK MS C++ 2017 TESTS 66 62 204800 1800
31173255 Vvalter C Oct. 9, 2017, 4:51 p.m. OK PyPy 2 TESTS 66 124 5324800 1800
46136127 icesin C Nov. 24, 2018, 5:56 a.m. OK PyPy 2 TESTS 66 140 2560000 1800
28651034 sragavan C July 18, 2017, 12:35 a.m. OK PyPy 2 TESTS 66 1450 31027200 1800
42997002 chiefsan C Sept. 17, 2018, 12:26 p.m. OK PyPy 3 TESTS 66 155 5120000 1800
55413731 scambret C June 10, 2019, 11:02 p.m. OK PyPy 3 TESTS 66 155 7475200 1800
45172216 omarnvidia C Nov. 1, 2018, 1:15 p.m. OK PyPy 3 TESTS 66 155 8601600 1800
20915207 jura__ C Sept. 25, 2016, 8:23 p.m. OK PyPy 3 TESTS 66 202 5529600 1800
62325425 Kadtsin_vs C Oct. 10, 2019, 6:16 p.m. OK PyPy 3 TESTS 66 202 12595200 1800
63270658 AvinashKartik C Oct. 24, 2019, 3:49 a.m. OK PyPy 3 TESTS 66 218 8396800 1800
50026880 adshin21 C Feb. 16, 2019, 6:21 p.m. OK PyPy 3 TESTS 66 265 10854400 1800
66082986 Prometheus C Dec. 1, 2019, 2:02 a.m. OK PyPy 3 TESTS 66 296 9011200 1800
67304894 cameliapatilea C Dec. 20, 2019, 8:38 p.m. OK PyPy 3 TESTS 66 1903 10752000 1800
28284306 tskolm C July 4, 2017, 3:42 p.m. OK Python 2 TESTS 66 93 6963200 1800
20680295 taras.y.sereda C Sept. 17, 2016, 11:10 a.m. OK Python 2 TESTS 66 108 819200 1800
20680023 taras.y.sereda C Sept. 17, 2016, 10:58 a.m. OK Python 2 TESTS 66 108 921600 1800
22511304 BCS C Nov. 26, 2016, 2:06 p.m. OK Python 2 TESTS 66 124 716800 1800
31173252 Vvalter C Oct. 9, 2017, 4:51 p.m. OK Python 2 TESTS 66 124 3174400 1800
24135869 Punctualiti C Jan. 25, 2017, 7:13 p.m. OK Python 2 TESTS 66 155 6860800 1800
37465601 vjudge1 C April 19, 2018, 2:53 p.m. OK Python 2 TESTS 66 155 8294400 1800
45458763 SoSooding C Nov. 8, 2018, 9:44 p.m. OK Python 2 TESTS 66 187 819200 1800
41024710 ReaLNero1 C July 31, 2018, 2:14 p.m. OK Python 2 TESTS 66 202 819200 1800
24248631 hammerov C Jan. 29, 2017, 1:42 p.m. OK Python 3 TESTS 66 77 5734400 1800
18175256 denis0077 C May 31, 2016, 10:33 p.m. OK Python 3 TESTS 66 77 5939200 1800
31945959 QWERTYQAZXC C Nov. 1, 2017, 10:29 a.m. OK Python 3 TESTS 66 93 921600 1800
26360952 sandra.t C April 14, 2017, 3:33 p.m. OK Python 3 TESTS 66 108 5939200 1800
30728910 quasimodo C Sept. 25, 2017, 2:33 p.m. OK Python 3 TESTS 66 109 1228800 1800
33917639 neverlucky C Jan. 5, 2018, 8:04 a.m. OK Python 3 TESTS 66 109 6656000 1800
30022678 Chilli C Sept. 3, 2017, 1:42 a.m. OK Python 3 TESTS 66 124 819200 1800
31003973 mpcque C Oct. 4, 2017, 10:18 p.m. OK Python 3 TESTS 66 124 1331200 1800
20915197 jura__ C Sept. 25, 2016, 8:22 p.m. OK Python 3 TESTS 66 124 3379200 1800
20040714 DimPas C Aug. 22, 2016, 7:35 a.m. OK Python 3 TESTS 66 124 5836800 1800
20779156 gluschenkokaterina C Sept. 20, 2016, 3:16 p.m. OK Scala TESTS 66 468 10137600 1800

remove filters

Back to search problems