Codeforces Round 620 (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
1304 Codeforces Round 620 (Div. 2) FINISHED False 7200 155580911 Feb. 15, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18198 ) B Longest Palindrome PROGRAMMING brute force constructive algorithms greedy implementation strings 1100

B'Returning back to problem solving, Gildong is now studying about palindromes. He learned that a palindrome is a string that is the same as its reverse. For example, strings "pop", "noon", "x", and "kkkkkk" are palindromes, while strings "moon", "tv", and "abab" are not. An empty string is also a palindrome. Gildong loves this concept so much, so he wants to play with it. He has n distinct strings of equal length m . He wants to discard some of the strings (possibly none or all) and reorder the remaining strings so that the concatenation becomes a palindrome. He also wants the palindrome to be as long as possible. Please help him find one. The first line contains two integers n and m ( 1 <= n <= 100 , 1 <= m <= 50 ) -- the number of strings and the length of each string. Next n lines contain a string of length m each, consisting of lowercase Latin letters only. All strings are distinct. In the first line, print the length of the longest palindrome string you made. In the second line, print that palindrome. If there are multiple answers, print any one of them. If the palindrome is empty, print an empty line or don 't print this line at all. In the first example, "battab" is also a valid answer. In the second example, there can be 4 different valid answers including the sample output. We are not going to provide any hints for what the others are. In the third example, the empty string is the only valid palindrome string. '...

Tutorials

Codeforces Round #620 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71602248 JWoong149 B Feb. 22, 2020, 9:37 a.m. OK Clang++17 Diagnostics TESTS 94 61 4198400 1100
71555009 MOKASSAB B Feb. 21, 2020, 2:09 p.m. OK Clang++17 Diagnostics TESTS 94 62 5324800 1100
71195188 yeshendeyuea B Feb. 16, 2020, 4:18 a.m. OK Clang++17 Diagnostics TESTS 94 62 5324800 1100
71555425 zsz12251665 B Feb. 21, 2020, 2:16 p.m. OK FPC TESTS 94 31 512000 1100
71241994 touristnct B Feb. 16, 2020, 7:04 p.m. OK FPC TESTS 94 31 819200 1100
71152632 ristxnd B Feb. 15, 2020, 2:14 p.m. OK FPC TESTS 94 31 1126400 1100
71206807 chinaxjh B Feb. 16, 2020, 7:59 a.m. OK FPC TESTS 94 31 5836800 1100
71141465 chinaxjh B Feb. 15, 2020, 1:40 p.m. OK FPC TESTS 94 31 9420800 1100
71158174 iam43 B Feb. 15, 2020, 2:35 p.m. OK FPC TESTS 94 46 409600 1100
71555776 vjudge5 B Feb. 21, 2020, 2:22 p.m. OK FPC TESTS 94 46 512000 1100
71198024 hnust_wangjiangjian B Feb. 16, 2020, 5:27 a.m. OK GNU C11 TESTS 94 31 0 1100
71218575 JuliusCaesar B Feb. 16, 2020, 11:26 a.m. OK GNU C11 TESTS 94 31 0 1100
71229725 Dorothy_ B Feb. 16, 2020, 2:48 p.m. OK GNU C11 TESTS 94 31 0 1100
71238783 Amazing168 B Feb. 16, 2020, 5:51 p.m. OK GNU C11 TESTS 94 31 0 1100
71277960 Probot B Feb. 17, 2020, 12:48 p.m. OK GNU C11 TESTS 94 31 0 1100
71382418 vjudge4 B Feb. 18, 2020, 1:58 p.m. OK GNU C11 TESTS 94 31 0 1100
71385612 Arko_L B Feb. 18, 2020, 2:47 p.m. OK GNU C11 TESTS 94 31 0 1100
71564956 ArkoSen B Feb. 21, 2020, 5:01 p.m. OK GNU C11 TESTS 94 31 0 1100
71191722 NBelieve B Feb. 16, 2020, 2:13 a.m. OK GNU C11 TESTS 94 31 0 1100
71196595 hnust_yuanyefei B Feb. 16, 2020, 4:55 a.m. OK GNU C11 TESTS 94 31 0 1100
71639756 BiBaoLong B Feb. 23, 2020, 2:17 a.m. OK GNU C++11 TESTS 94 31 0 1100
71642184 aabbcchhn B Feb. 23, 2020, 4:09 a.m. OK GNU C++11 TESTS 94 31 0 1100
71639930 QinanXuan B Feb. 23, 2020, 2:28 a.m. OK GNU C++11 TESTS 94 31 0 1100
71639976 guava_r B Feb. 23, 2020, 2:32 a.m. OK GNU C++11 TESTS 94 31 0 1100
71640299 iSika B Feb. 23, 2020, 2:50 a.m. OK GNU C++11 TESTS 94 31 0 1100
71640450 vjudge4 B Feb. 23, 2020, 3:01 a.m. OK GNU C++11 TESTS 94 31 0 1100
71640587 zh2000 B Feb. 23, 2020, 3:09 a.m. OK GNU C++11 TESTS 94 31 0 1100
71640861 dekomori_sanae B Feb. 23, 2020, 3:25 a.m. OK GNU C++11 TESTS 94 31 0 1100
71640972 vjudge3 B Feb. 23, 2020, 3:32 a.m. OK GNU C++11 TESTS 94 31 0 1100
71641540 priority B Feb. 23, 2020, 3:55 a.m. OK GNU C++11 TESTS 94 31 0 1100
71195592 213ddw B Feb. 16, 2020, 4:30 a.m. OK GNU C++14 TESTS 94 15 0 1100
71216870 virus B Feb. 16, 2020, 10:55 a.m. OK GNU C++14 TESTS 94 15 204800 1100
71189144 H_On B Feb. 16, 2020, 12:01 a.m. OK GNU C++14 TESTS 94 30 204800 1100
71497668 manku_bhaiya B Feb. 20, 2020, 1:55 p.m. OK GNU C++14 TESTS 94 30 204800 1100
71393319 rapast B Feb. 18, 2020, 5:05 p.m. OK GNU C++14 TESTS 94 30 204800 1100
71257022 pramodjais123 B Feb. 17, 2020, 5:11 a.m. OK GNU C++14 TESTS 94 30 204800 1100
71212742 monu_kumar B Feb. 16, 2020, 9:37 a.m. OK GNU C++14 TESTS 94 30 204800 1100
71198641 jebouin B Feb. 16, 2020, 5:39 a.m. OK GNU C++14 TESTS 94 30 204800 1100
71181042 architgwl2000 B Feb. 15, 2020, 7:34 p.m. OK GNU C++14 TESTS 94 30 204800 1100
71175960 kt0107 B Feb. 15, 2020, 5:59 p.m. OK GNU C++14 TESTS 94 30 204800 1100
71217295 AhmadNidal B Feb. 16, 2020, 11:02 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71235199 B2ej5SjC B Feb. 16, 2020, 4:39 p.m. OK GNU C++17 TESTS 94 30 204800 1100
71255919 full_effort B Feb. 17, 2020, 4:32 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71346098 gospaleks B Feb. 18, 2020, 12:22 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71349896 Heisenberg_71 B Feb. 18, 2020, 3:11 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71351693 chenyang1 B Feb. 18, 2020, 4:14 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71395793 utkarshpatel500 B Feb. 18, 2020, 5:47 p.m. OK GNU C++17 TESTS 94 30 204800 1100
71479445 BlackHeart19 B Feb. 20, 2020, 7:46 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71489233 mrnlk B Feb. 20, 2020, 11:24 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71490161 SuhaibSawalha1 B Feb. 20, 2020, 11:44 a.m. OK GNU C++17 TESTS 94 30 204800 1100
71173685 synapse B Feb. 15, 2020, 5:24 p.m. OK Go TESTS 94 31 0 1100
71406975 toterpinguin B Feb. 18, 2020, 11:10 p.m. OK Go TESTS 94 46 0 1100
71285903 mminaev B Feb. 17, 2020, 3:11 p.m. OK Go TESTS 94 46 0 1100
71200510 B15DCDT131 B Feb. 16, 2020, 6:13 a.m. OK Go TESTS 94 46 0 1100
71174745 synapse B Feb. 15, 2020, 5:40 p.m. OK Go TESTS 94 46 0 1100
71150376 amarjeetanand B Feb. 15, 2020, 2:06 p.m. OK Go TESTS 94 46 0 1100
71143090 snow_bear_328 B Feb. 15, 2020, 1:44 p.m. OK Go TESTS 94 46 0 1100
71148608 jaimatadiletsrock B Feb. 15, 2020, 2:01 p.m. OK Go TESTS 94 46 13414400 1100
71621454 bqtrung B Feb. 22, 2020, 3:56 p.m. OK Go TESTS 94 61 0 1100
71185585 garg_vibhor B Feb. 15, 2020, 9:25 p.m. OK Java 11 TESTS 94 171 0 1100
71461367 Clowyy B Feb. 19, 2020, 8:29 p.m. OK Java 11 TESTS 94 186 0 1100
71153419 WaheguruAnurag B Feb. 15, 2020, 2:17 p.m. OK Java 11 TESTS 94 187 0 1100
71534913 noobie_code B Feb. 21, 2020, 7:37 a.m. OK Java 11 TESTS 94 202 0 1100
71442797 blind123 B Feb. 19, 2020, 2:18 p.m. OK Java 11 TESTS 94 202 0 1100
71393880 Boolatile B Feb. 18, 2020, 5:15 p.m. OK Java 11 TESTS 94 202 0 1100
71389435 acesine B Feb. 18, 2020, 3:53 p.m. OK Java 11 TESTS 94 202 0 1100
71286212 Anonymous B Feb. 17, 2020, 3:17 p.m. OK Java 11 TESTS 94 202 0 1100
71240079 future_code B Feb. 16, 2020, 6:19 p.m. OK Java 11 TESTS 94 202 0 1100
71230379 ThisIsJibon B Feb. 16, 2020, 3:01 p.m. OK Java 11 TESTS 94 202 0 1100
71286641 Navneet.deep B Feb. 17, 2020, 3:25 p.m. OK Java 8 TESTS 94 109 0 1100
71250947 bluesky111 B Feb. 17, 2020, 12:57 a.m. OK Java 8 TESTS 94 109 0 1100
71186584 ijxjdjd B Feb. 15, 2020, 10 p.m. OK Java 8 TESTS 94 109 0 1100
71185631 FlyingShadow B Feb. 15, 2020, 9:26 p.m. OK Java 8 TESTS 94 109 0 1100
71543834 jaynils B Feb. 21, 2020, 10:36 a.m. OK Java 8 TESTS 94 124 0 1100
71630200 ay839065 B Feb. 22, 2020, 7:10 p.m. OK Java 8 TESTS 94 124 0 1100
71592760 default911 B Feb. 22, 2020, 6:59 a.m. OK Java 8 TESTS 94 124 0 1100
71567155 jakejase2 B Feb. 21, 2020, 5:43 p.m. OK Java 8 TESTS 94 124 0 1100
71565892 OmarRadwan B Feb. 21, 2020, 5:17 p.m. OK Java 8 TESTS 94 124 0 1100
71546519 darshan287 B Feb. 21, 2020, 11:35 a.m. OK Java 8 TESTS 94 124 0 1100
71278072 GTrigger B Feb. 17, 2020, 12:50 p.m. OK JavaScript TESTS 94 31 1024000 1100
71141455 watarimaycry2 B Feb. 15, 2020, 1:40 p.m. OK JavaScript TESTS 94 46 0 1100
71171122 icebound B Feb. 15, 2020, 4:54 p.m. OK Kotlin TESTS 94 140 0 1100
71179063 Niloy_Sarkar B Feb. 15, 2020, 6:53 p.m. OK Kotlin TESTS 94 155 0 1100
71195290 KanhuKeNanu B Feb. 16, 2020, 4:21 a.m. OK Kotlin TESTS 94 155 204800 1100
71145544 ohoh430 B Feb. 15, 2020, 1:51 p.m. OK Kotlin TESTS 94 171 0 1100
71141721 SlavaG B Feb. 15, 2020, 1:41 p.m. OK Kotlin TESTS 94 171 819200 1100
71163021 viktorx B Feb. 15, 2020, 2:53 p.m. OK Kotlin TESTS 94 186 102400 1100
71195730 treasuryonly B Feb. 16, 2020, 4:34 a.m. OK Mono C# TESTS 94 62 204800 1100
71142362 Anastasiya_Andreevna B Feb. 15, 2020, 1:42 p.m. OK Mono C# TESTS 94 62 716800 1100
71163617 Ruban_Denic B Feb. 15, 2020, 2:55 p.m. OK Mono C# TESTS 94 62 2252800 1100
71171141 htspur B Feb. 15, 2020, 4:54 p.m. OK Mono C# TESTS 94 62 2764800 1100
71224909 T-D-K B Feb. 16, 2020, 1:26 p.m. OK Mono C# TESTS 94 62 3686400 1100
71149922 faxse B Feb. 15, 2020, 2:05 p.m. OK Mono C# TESTS 94 62 4300800 1100
71188059 SpinDOS B Feb. 15, 2020, 11 p.m. OK Mono C# TESTS 94 77 3686400 1100
71148270 shy3205 B Feb. 15, 2020, 1:59 p.m. OK Mono C# TESTS 94 77 3686400 1100
71153335 ansergeyg B Feb. 15, 2020, 2:17 p.m. OK Mono C# TESTS 94 77 3993600 1100
71545032 nrvg B Feb. 21, 2020, 11:03 a.m. OK Mono C# TESTS 94 77 4096000 1100
71594706 vjudge4 B Feb. 22, 2020, 7:32 a.m. OK MS C++ TESTS 94 31 0 1100
71146195 bj126627885 B Feb. 15, 2020, 1:53 p.m. OK MS C++ TESTS 94 31 0 1100
71146857 Goldexperienrce B Feb. 15, 2020, 1:55 p.m. OK MS C++ TESTS 94 31 0 1100
71148618 tranthanhtra B Feb. 15, 2020, 2:01 p.m. OK MS C++ TESTS 94 31 0 1100
71150938 MambaMentality B Feb. 15, 2020, 2:08 p.m. OK MS C++ TESTS 94 31 0 1100
71183730 YTICpoch B Feb. 15, 2020, 8:34 p.m. OK MS C++ TESTS 94 31 0 1100
71206115 ltnotfty B Feb. 16, 2020, 7:48 a.m. OK MS C++ TESTS 94 31 0 1100
71351026 vjudge3 B Feb. 18, 2020, 3:51 a.m. OK MS C++ TESTS 94 31 0 1100
71414548 vjudge5 B Feb. 19, 2020, 5 a.m. OK MS C++ TESTS 94 31 0 1100
71489544 vjudge4 B Feb. 20, 2020, 11:31 a.m. OK MS C++ TESTS 94 31 0 1100
71594503 vjudge4 B Feb. 22, 2020, 7:29 a.m. OK MS C++ 2017 TESTS 94 31 0 1100
71249812 paradoxhzy B Feb. 16, 2020, 11:51 p.m. OK MS C++ 2017 TESTS 94 31 0 1100
71227835 TsatskiPetski B Feb. 16, 2020, 2:15 p.m. OK MS C++ 2017 TESTS 94 31 0 1100
71160131 pichulia B Feb. 15, 2020, 2:42 p.m. OK MS C++ 2017 TESTS 94 31 0 1100
71153787 hnust_jinyan B Feb. 15, 2020, 2:19 p.m. OK MS C++ 2017 TESTS 94 31 0 1100
71143567 YinChuanSheng B Feb. 15, 2020, 1:46 p.m. OK MS C++ 2017 TESTS 94 31 0 1100
71227258 TsatskiPetski B Feb. 16, 2020, 2:05 p.m. OK MS C++ 2017 TESTS 94 31 102400 1100
71156174 15880711007 B Feb. 15, 2020, 2:28 p.m. OK MS C++ 2017 TESTS 94 31 102400 1100
71150819 dddttdCF B Feb. 15, 2020, 2:08 p.m. OK MS C++ 2017 TESTS 94 31 102400 1100
71615150 AlexIlin B Feb. 22, 2020, 1:47 p.m. OK MS C++ 2017 TESTS 94 31 307200 1100
71545259 denchik007orel57 B Feb. 21, 2020, 11:08 a.m. OK PascalABC.NET TESTS 94 311 716800 1100
71580431 Binario B Feb. 22, 2020, 12:57 a.m. OK Perl TESTS 94 62 0 1100
71156979 yoralbayev B Feb. 15, 2020, 2:31 p.m. OK PHP TESTS 94 61 409600 1100
71181848 mayakin B Feb. 15, 2020, 7:51 p.m. OK PHP TESTS 94 93 409600 1100
71140807 yamatoumi B Feb. 15, 2020, 1:38 p.m. OK PyPy 2 TESTS 94 140 1228800 1100
71227240 thech0sen1 B Feb. 16, 2020, 2:05 p.m. OK PyPy 3 TESTS 94 140 0 1100
71191155 konstruktor B Feb. 16, 2020, 1:49 a.m. OK PyPy 3 TESTS 94 140 0 1100
71177381 anshu271 B Feb. 15, 2020, 6:23 p.m. OK PyPy 3 TESTS 94 140 1331200 1100
71260131 gr.rassadnikov B Feb. 17, 2020, 6:26 a.m. OK PyPy 3 TESTS 94 140 1433600 1100
71255243 izhang05 B Feb. 17, 2020, 4:05 a.m. OK PyPy 3 TESTS 94 140 1433600 1100
71285318 artem_safin67 B Feb. 17, 2020, 3 p.m. OK PyPy 3 TESTS 94 140 1536000 1100
71607373 Awsaf_Sami B Feb. 22, 2020, 11:12 a.m. OK PyPy 3 TESTS 94 155 0 1100
71563717 kuldeep04 B Feb. 21, 2020, 4:39 p.m. OK PyPy 3 TESTS 94 155 0 1100
71532034 Gaurav_Patel B Feb. 21, 2020, 6:41 a.m. OK PyPy 3 TESTS 94 155 0 1100
71434913 Satwik_Tiwari B Feb. 19, 2020, 12:08 p.m. OK PyPy 3 TESTS 94 155 0 1100
71245156 elistark B Feb. 16, 2020, 8:30 p.m. OK Python 2 TESTS 94 171 0 1100
71511919 mgshuter62 B Feb. 20, 2020, 6:22 p.m. OK Python 2 TESTS 94 202 0 1100
71278827 ComptineDunAutreEte B Feb. 17, 2020, 1:05 p.m. OK Python 2 TESTS 94 202 0 1100
71264637 SoSooding B Feb. 17, 2020, 8:07 a.m. OK Python 2 TESTS 94 202 0 1100
71163291 Mike10 B Feb. 15, 2020, 2:54 p.m. OK Python 2 TESTS 94 202 0 1100
71163280 mshingote B Feb. 15, 2020, 2:54 p.m. OK Python 2 TESTS 94 202 0 1100
71531536 Karthik229 B Feb. 21, 2020, 6:31 a.m. OK Python 3 TESTS 94 109 0 1100
71281189 saikiran05 B Feb. 17, 2020, 1:48 p.m. OK Python 3 TESTS 94 109 0 1100
71619501 aakashdagar08 B Feb. 22, 2020, 3:13 p.m. OK Python 3 TESTS 94 109 307200 1100
71499220 ostroumov B Feb. 20, 2020, 2:19 p.m. OK Python 3 TESTS 94 109 307200 1100
71471462 Ueki B Feb. 20, 2020, 4:11 a.m. OK Python 3 TESTS 94 109 307200 1100
71453327 nvatuan B Feb. 19, 2020, 5:25 p.m. OK Python 3 TESTS 94 109 307200 1100
71444796 kashishmish9911 B Feb. 19, 2020, 2:51 p.m. OK Python 3 TESTS 94 109 307200 1100
71401581 yashk14 B Feb. 18, 2020, 7:45 p.m. OK Python 3 TESTS 94 109 307200 1100
71388223 div19 B Feb. 18, 2020, 3:31 p.m. OK Python 3 TESTS 94 109 307200 1100
71387313 I_Love_Nhi_Nguyen B Feb. 18, 2020, 3:15 p.m. OK Python 3 TESTS 94 109 307200 1100
71172719 kamil_hism B Feb. 15, 2020, 5:12 p.m. OK Ruby TESTS 94 62 307200 1100
71190927 clearlycloudy B Feb. 16, 2020, 1:39 a.m. OK Rust TESTS 94 31 0 1100
71142741 manta1130 B Feb. 15, 2020, 1:43 p.m. OK Rust TESTS 94 31 102400 1100
71571729 myduomilia B Feb. 21, 2020, 7:22 p.m. OK Rust TESTS 94 46 0 1100
71390838 toterpinguin B Feb. 18, 2020, 4:20 p.m. OK Rust TESTS 94 46 0 1100
71241664 mversic101 B Feb. 16, 2020, 6:56 p.m. OK Rust TESTS 94 46 0 1100
71146913 myomyomyo B Feb. 15, 2020, 1:55 p.m. OK Rust TESTS 94 46 0 1100
71356447 sansen B Feb. 18, 2020, 6:10 a.m. OK Rust TESTS 94 46 102400 1100

remove filters

Back to search problems