Educational Codeforces Round 64 (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
1156 Educational Codeforces Round 64 (Rated for Div. 2) FINISHED False 7200 183482690 May 1, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6279 ) B Ugly Pairs PROGRAMMING dfs and similar greedy implementation sortings strings 1800

B'You are given a string, consisting of lowercase Latin letters. A pair of neighbouring letters in a string is considered ugly if these letters are also neighbouring in a alphabet. For example, string "abaca" contains ugly pairs at positions (1, 2) -- "ab" and (2, 3) -- "ba". Letters 'a ' and 'z ' aren 't considered neighbouring in a alphabet. Can you rearrange the letters of a given string so that there are no ugly pairs? You can choose any order of the letters of the given string but you can 't add any new letters or remove the existing ones. You can also leave the order the same. If there are multiple answers, print any of them. You also have to answer T separate queries. The first line contains a single integer T ( 1 <= T <= 100 ) -- the number of queries. Each of the next T lines contains string s (1 <= |s| <= 100) -- the string for the next query. It is guaranteed that it contains only lowercase Latin letters. Note that in hacks you have to set T = 1 . Print T lines. The i -th line should contain the answer to the i -th query. If the answer for the i -th query exists, then print such a rearrangment of letters of the given string that it contains no ugly pairs. You can choose any order of the letters of the given string but you can 't add any new letters or remove the existing ones. You can also leave the order the same. If there are multiple answers, print any of them. Otherwise print "No answer" for that query. In the first example answer "bdac" is also correct. The second example showcases the fact that only neighbouring in alphabet letters are not allowed. The same letter is ok. There are lots of valid answers for the third example. '...

Tutorials

66827

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53709665 Gassa B May 3, 2019, 2:56 p.m. OK D TESTS 17 31 0 1800
55237946 xcodevn B June 7, 2019, 9:22 a.m. OK D TESTS 17 31 0 1800
55237823 xcodevn B June 7, 2019, 9:19 a.m. OK D TESTS 17 31 0 1800
53793791 rr_ B May 5, 2019, 2:20 p.m. OK D TESTS 17 31 0 1800
53631279 avm B May 1, 2019, 3:37 p.m. OK D TESTS 17 31 0 1800
53626649 iica B May 1, 2019, 3:20 p.m. OK D TESTS 17 31 102400 1800
53643717 A_IGOR B May 1, 2019, 5:42 p.m. OK Delphi TESTS 17 30 0 1800
53665260 Denor B May 2, 2019, 9:59 a.m. OK Delphi TESTS 17 31 0 1800
53674677 _one_noob B May 2, 2019, 3:06 p.m. OK GNU C11 TESTS 17 30 0 1800
53650271 rainboy B May 1, 2019, 11:55 p.m. OK GNU C11 TESTS 17 30 0 1800
53630678 Nepumi B May 1, 2019, 3:34 p.m. OK GNU C11 TESTS 17 31 0 1800
53685835 kaiboy B May 3, 2019, 12:44 a.m. OK GNU C11 TESTS 17 31 0 1800
53685810 kaiboy B May 3, 2019, 12:42 a.m. OK GNU C11 TESTS 17 31 0 1800
53637267 pengin_2000 B May 1, 2019, 4:13 p.m. OK GNU C11 TESTS 17 31 0 1800
53634227 MYNAMEISSHARIFUL B May 1, 2019, 3:52 p.m. OK GNU C11 TESTS 17 31 0 1800
53623864 coderbd B May 1, 2019, 3:12 p.m. OK GNU C11 TESTS 17 31 0 1800
54484653 vjudge2 B May 22, 2019, 12:32 p.m. OK GNU C11 TESTS 17 46 0 1800
53670600 Noetu B May 2, 2019, 12:57 p.m. OK GNU C11 TESTS 17 46 0 1800
61042306 000what B Sept. 22, 2019, 1:43 a.m. OK GNU C++11 TESTS 17 15 0 1800
58830075 geniusjoe B Aug. 14, 2019, 5:31 p.m. OK GNU C++11 TESTS 17 15 0 1800
54420763 leaf1415 B May 20, 2019, 3:17 p.m. OK GNU C++11 TESTS 17 15 0 1800
54273813 SoiMae B May 17, 2019, 10:07 a.m. OK GNU C++11 TESTS 17 15 0 1800
53950888 luogu_bot2 B May 10, 2019, 9:27 a.m. OK GNU C++11 TESTS 17 15 0 1800
53842771 dybala21 B May 7, 2019, 8:40 a.m. OK GNU C++11 TESTS 17 15 0 1800
53774539 KarolloraK B May 5, 2019, 7:30 a.m. OK GNU C++11 TESTS 17 15 0 1800
53734727 M_sea B May 4, 2019, 8:54 a.m. OK GNU C++11 TESTS 17 15 0 1800
53724749 Master_Yi B May 4, 2019, 3:17 a.m. OK GNU C++11 TESTS 17 15 0 1800
63705834 slowman B Oct. 29, 2019, 8:23 a.m. OK GNU C++11 TESTS 17 15 0 1800
59585801 Vishal_Shrivastava B Aug. 27, 2019, 5:56 p.m. OK GNU C++14 TESTS 17 15 0 1800
60219286 lakshay_nasa B Sept. 7, 2019, 12:59 p.m. OK GNU C++14 TESTS 17 15 0 1800
61357722 code_kit B Sept. 27, 2019, 11:06 a.m. OK GNU C++14 TESTS 17 15 0 1800
61776365 Vishal_00_7 B Oct. 3, 2019, 11:53 a.m. OK GNU C++14 TESTS 17 15 0 1800
62538914 ZainaM B Oct. 14, 2019, 1:43 a.m. OK GNU C++14 TESTS 17 15 0 1800
62930113 lclpsoz B Oct. 19, 2019, 12:28 p.m. OK GNU C++14 TESTS 17 15 0 1800
64874024 Hpnes B Nov. 14, 2019, 9:10 a.m. OK GNU C++14 TESTS 17 15 0 1800
65274768 dtl8 B Nov. 17, 2019, 11:12 p.m. OK GNU C++14 TESTS 17 15 0 1800
65524868 kyuna B Nov. 22, 2019, 9:57 a.m. OK GNU C++14 TESTS 17 15 0 1800
59136573 nks719714 B Aug. 20, 2019, 12:52 p.m. OK GNU C++14 TESTS 17 15 0 1800
68135499 Kais_Hasan B Jan. 3, 2020, 6:44 p.m. OK GNU C++17 TESTS 17 15 0 1800
69085970 Anar B Jan. 19, 2020, 8:18 a.m. OK GNU C++17 TESTS 17 15 0 1800
68660871 Sadra B Jan. 12, 2020, 1:36 p.m. OK GNU C++17 TESTS 17 15 0 1800
67655141 amankrsingh B Dec. 26, 2019, 1:38 p.m. OK GNU C++17 TESTS 17 15 0 1800
65162154 vjudge3 B Nov. 16, 2019, 11:49 a.m. OK GNU C++17 TESTS 17 15 0 1800
65030823 Antygenius B Nov. 15, 2019, 9:47 a.m. OK GNU C++17 TESTS 17 15 0 1800
64479410 hot_guy B Nov. 7, 2019, 3:25 p.m. OK GNU C++17 TESTS 17 15 0 1800
63957100 daniel071292 B Nov. 1, 2019, 2:38 a.m. OK GNU C++17 TESTS 17 15 0 1800
61461875 xiaocanglan2 B Sept. 29, 2019, 8:51 a.m. OK GNU C++17 TESTS 17 15 0 1800
61456017 Karasu B Sept. 29, 2019, 6:17 a.m. OK GNU C++17 TESTS 17 15 0 1800
55565875 xiaopanpan B June 14, 2019, 3:25 p.m. OK Go TESTS 17 30 0 1800
53978866 Lancern B May 11, 2019, 6 a.m. OK Go TESTS 17 31 0 1800
53942860 emma B May 10, 2019, 4:32 a.m. OK Go TESTS 17 31 0 1800
53980052 ak_j17_258749 B May 11, 2019, 6:39 a.m. OK Go TESTS 17 31 716800 1800
61102157 synapse B Sept. 23, 2019, 7:23 a.m. OK Go TESTS 17 46 0 1800
54004004 kimbbakar B May 11, 2019, 6:24 p.m. OK Go TESTS 17 62 0 1800
54004024 kimbbakar B May 11, 2019, 6:25 p.m. OK Go TESTS 17 155 0 1800
65462876 bluesky111 B Nov. 21, 2019, 3:43 a.m. OK Java 11 TESTS 17 187 0 1800
59967795 Shady51 B Sept. 3, 2019, 9:52 p.m. OK Java 8 TESTS 17 108 0 1800
54780043 di_halt B May 28, 2019, 8:45 p.m. OK Java 8 TESTS 17 108 0 1800
53987371 abhi2601 B May 11, 2019, 10:28 a.m. OK Java 8 TESTS 17 108 0 1800
53711417 v1ct0r30 B May 3, 2019, 3:51 p.m. OK Java 8 TESTS 17 108 0 1800
53694189 Ikari_stream B May 3, 2019, 6:48 a.m. OK Java 8 TESTS 17 108 0 1800
56532520 AnandOza B July 4, 2019, 8:46 p.m. OK Java 8 TESTS 17 109 0 1800
60818875 ISSAM_LAKOUAM B Sept. 18, 2019, 10:08 p.m. OK Java 8 TESTS 17 109 0 1800
58569749 hasan5788 B Aug. 11, 2019, 9:34 a.m. OK Java 8 TESTS 17 109 0 1800
56409914 Immortal1738 B July 1, 2019, 10:30 p.m. OK Java 8 TESTS 17 109 0 1800
55834345 tmwilliamlin168 B June 20, 2019, 2:37 p.m. OK Java 8 TESTS 17 109 0 1800
58901356 Spheniscine B Aug. 16, 2019, 9:16 a.m. OK Kotlin TESTS 17 171 1228800 1800
58888982 Spheniscine B Aug. 16, 2019, 4:13 a.m. OK Kotlin TESTS 17 186 1331200 1800
58888051 Spheniscine B Aug. 16, 2019, 3:30 a.m. OK Kotlin TESTS 17 186 1331200 1800
58918938 Spheniscine B Aug. 16, 2019, 4:11 p.m. OK Kotlin TESTS 17 186 1433600 1800
58919506 Spheniscine B Aug. 16, 2019, 4:26 p.m. OK Kotlin TESTS 17 187 1433600 1800
53632472 sergmel B May 1, 2019, 3:42 p.m. OK Mono C# TESTS 17 62 3891200 1800
53837415 QuantumKnight B May 7, 2019, 4:34 a.m. OK Mono C# TESTS 17 62 3993600 1800
53904610 IleksaNott B May 9, 2019, 12:05 p.m. OK Mono C# TESTS 17 77 0 1800
54219075 eki B May 16, 2019, 1:43 a.m. OK Mono C# TESTS 17 77 307200 1800
53639261 Giangvp B May 1, 2019, 4:27 p.m. OK Mono C# TESTS 17 77 4403200 1800
54635531 TrabajoNocturno B May 25, 2019, 4:45 p.m. OK Mono C# TESTS 17 77 70348800 1800
53638474 mban259 B May 1, 2019, 4:21 p.m. OK Mono C# TESTS 17 93 4198400 1800
53634031 omikad B May 1, 2019, 3:51 p.m. OK Mono C# TESTS 17 109 4505600 1800
53659825 bbisnouse B May 2, 2019, 7:05 a.m. OK MS C++ TESTS 17 15 0 1800
58368326 vjudge1 B Aug. 6, 2019, 5:26 a.m. OK MS C++ TESTS 17 15 0 1800
53723262 vjudge5 B May 4, 2019, 2:05 a.m. OK MS C++ TESTS 17 15 614400 1800
53786462 scorpiowf B May 5, 2019, 10:23 a.m. OK MS C++ TESTS 17 30 0 1800
53623485 2xJelly B May 1, 2019, 3:11 p.m. OK MS C++ TESTS 17 30 0 1800
68896652 vjudge2 B Jan. 16, 2020, 4:42 a.m. OK MS C++ TESTS 17 30 0 1800
68894122 vjudge2 B Jan. 16, 2020, 3:39 a.m. OK MS C++ TESTS 17 30 0 1800
63504509 tarattata1 B Oct. 26, 2019, 6:16 p.m. OK MS C++ TESTS 17 30 0 1800
58369193 vjudge2 B Aug. 6, 2019, 5:50 a.m. OK MS C++ TESTS 17 30 0 1800
68937836 vjudge2 B Jan. 16, 2020, 1:27 p.m. OK MS C++ TESTS 17 31 0 1800
53723246 Ruben_tao B May 4, 2019, 2:05 a.m. OK MS C++ 2017 TESTS 17 15 0 1800
57925655 vjudge5 B July 29, 2019, 7 a.m. OK MS C++ 2017 TESTS 17 30 0 1800
53639681 fierytree B May 1, 2019, 4:30 p.m. OK MS C++ 2017 TESTS 17 30 0 1800
53633013 Sorin1932 B May 1, 2019, 3:45 p.m. OK MS C++ 2017 TESTS 17 30 0 1800
57186336 0-jij-0 B July 17, 2019, 8:49 a.m. OK MS C++ 2017 TESTS 17 30 0 1800
53969856 GorNix B May 10, 2019, 8:07 p.m. OK MS C++ 2017 TESTS 17 30 0 1800
53713190 CtrlAlt B May 3, 2019, 4:53 p.m. OK MS C++ 2017 TESTS 17 30 0 1800
53710990 Ancient_mage B May 3, 2019, 3:37 p.m. OK MS C++ 2017 TESTS 17 30 0 1800
53689176 aigudada B May 3, 2019, 3:25 a.m. OK MS C++ 2017 TESTS 17 30 0 1800
53807982 maozaozao B May 6, 2019, 3:28 a.m. OK MS C++ 2017 TESTS 17 30 33177600 1800
53622139 Jobless22 B May 1, 2019, 3:06 p.m. OK PyPy 2 TESTS 17 140 307200 1800
53628864 wolffd B May 1, 2019, 3:27 p.m. OK PyPy 2 TESTS 17 140 409600 1800
53629776 pajenegod B May 1, 2019, 3:31 p.m. OK PyPy 2 TESTS 17 140 716800 1800
57337448 thuutin B July 19, 2019, 4:44 p.m. OK PyPy 2 TESTS 17 140 1433600 1800
53641561 deadkey B May 1, 2019, 4:54 p.m. OK PyPy 2 TESTS 17 155 1843200 1800
53642917 c1729 B May 1, 2019, 5:21 p.m. OK PyPy 2 TESTS 17 156 2048000 1800
53623354 cherry_su B May 1, 2019, 3:10 p.m. OK PyPy 2 TESTS 17 171 1945600 1800
53629779 IndianSnakeCharmer B May 1, 2019, 3:31 p.m. OK PyPy 2 TESTS 17 171 2048000 1800
53641807 shehebe B May 1, 2019, 4:57 p.m. OK PyPy 2 TESTS 17 171 2867200 1800
53633498 allonsy_kim B May 1, 2019, 3:48 p.m. OK PyPy 2 TESTS 17 186 4096000 1800
54226783 bupt.wc B May 16, 2019, 6:44 a.m. OK PyPy 3 TESTS 17 124 409600 1800
53629723 quandum B May 1, 2019, 3:30 p.m. OK PyPy 3 TESTS 17 124 716800 1800
53626158 kdsuneraavinash B May 1, 2019, 3:18 p.m. OK PyPy 3 TESTS 17 139 307200 1800
53631859 Guvi_Aggy B May 1, 2019, 3:40 p.m. OK PyPy 3 TESTS 17 139 1024000 1800
53693055 dizballanze B May 3, 2019, 6:11 a.m. OK PyPy 3 TESTS 17 140 204800 1800
53740356 Regius B May 4, 2019, 1:27 p.m. OK PyPy 3 TESTS 17 140 307200 1800
53660021 ayshiff B May 2, 2019, 7:11 a.m. OK PyPy 3 TESTS 17 140 409600 1800
54527973 dilettante B May 23, 2019, 3:30 p.m. OK PyPy 3 TESTS 17 140 409600 1800
53633993 Pedantic B May 1, 2019, 3:50 p.m. OK PyPy 3 TESTS 17 140 819200 1800
53627261 HyperNeutrino B May 1, 2019, 3:22 p.m. OK PyPy 3 TESTS 17 140 921600 1800
53633685 Jagadish B May 1, 2019, 3:49 p.m. OK Python 2 TESTS 17 171 0 1800
54486995 shubhankarsharma00 B May 22, 2019, 1:35 p.m. OK Python 2 TESTS 17 171 0 1800
61311011 SoSooding B Sept. 26, 2019, 9:15 a.m. OK Python 2 TESTS 17 186 0 1800
53727349 one1l B May 4, 2019, 5:20 a.m. OK Python 2 TESTS 17 186 102400 1800
53630317 mgor B May 1, 2019, 3:33 p.m. OK Python 2 TESTS 17 186 102400 1800
53643157 wunder9l B May 1, 2019, 5:27 p.m. OK Python 2 TESTS 17 202 102400 1800
53712400 Helli.code B May 3, 2019, 4:20 p.m. OK Python 2 TESTS 17 202 102400 1800
54570339 16ucc056 B May 24, 2019, 6:54 p.m. OK Python 3 TESTS 17 93 0 1800
56407248 PlusZero B July 1, 2019, 8:10 p.m. OK Python 3 TESTS 17 108 0 1800
53683272 dau20 B May 2, 2019, 9:01 p.m. OK Python 3 TESTS 17 108 0 1800
54411662 snehalgupta B May 20, 2019, 10:09 a.m. OK Python 3 TESTS 17 108 0 1800
55294950 ranagulshan10 B June 8, 2019, 9:28 a.m. OK Python 3 TESTS 17 108 0 1800
53633052 joe_joe B May 1, 2019, 3:45 p.m. OK Python 3 TESTS 17 108 307200 1800
53712946 Chizhonkova B May 3, 2019, 4:42 p.m. OK Python 3 TESTS 17 108 307200 1800
56301747 anshuman16423 B June 30, 2019, 9:18 a.m. OK Python 3 TESTS 17 109 0 1800
55415660 evenharder B June 11, 2019, 1:58 a.m. OK Python 3 TESTS 17 109 0 1800
55406778 nikil B June 10, 2019, 5:01 p.m. OK Python 3 TESTS 17 109 0 1800
53644179 hogeover30 B May 1, 2019, 5:56 p.m. OK Ruby TESTS 17 62 102400 1800
53646964 rinzu B May 1, 2019, 7:43 p.m. OK Ruby TESTS 17 62 102400 1800
53634156 andreig B May 1, 2019, 3:51 p.m. OK Ruby TESTS 17 77 102400 1800
53622205 0w1 B May 1, 2019, 3:06 p.m. OK Ruby TESTS 17 124 102400 1800
55408330 kobae964 B June 10, 2019, 5:56 p.m. OK Rust TESTS 17 30 307200 1800
53631441 arzk B May 1, 2019, 3:38 p.m. OK Rust TESTS 17 31 102400 1800
56758656 yakamoto B July 9, 2019, 2:55 p.m. OK Scala TESTS 17 436 0 1800
53634016 Budstalion B May 1, 2019, 3:51 p.m. OK Scala TESTS 17 529 614400 1800

remove filters

Back to search problems