Educational Codeforces Round 75 (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
1251 Educational Codeforces Round 75 (Rated for Div. 2) FINISHED False 7200 165509687 Oct. 24, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11091 ) B Binary Palindromes PROGRAMMING greedy strings 1400

B"A palindrome is a string t which reads the same backward as forward (formally, t[i] = t[|t| + 1 - i] for all i in [1, |t|] ). Here |t| denotes the length of a string t . For example, the strings 010, 1001 and 0 are palindromes. You have n binary strings s_1, s_2, ... , s_n (each s_i consists of zeroes and/or ones). You can swap any pair of characters any number of times (possibly, zero). Characters can be either from the same string or from different strings -- there are no restrictions. Formally, in one move you: What is the maximum number of strings you can make palindromic simultaneously? The first line contains single integer Q ( 1 <= Q <= 50 ) -- the number of test cases. The first line on each test case contains single integer n ( 1 <= n <= 50 ) -- the number of binary strings you have. Next n lines contains binary strings s_1, s_2, ... , s_n -- one per line. It's guaranteed that 1 <= |s_i| <= 50 and all strings constist of zeroes and/or ones. Print Q integers -- one per test case. The i -th integer should be the maximum number of palindromic strings you can achieve simultaneously performing zero or more swaps on strings from the i -th test case. In the first test case, s_1 is palindrome, so the answer is 1 . In the second test case you can't make all three strings palindromic at the same time, but you can make any pair of strings palindromic. For example, let's make s_1 = text{0110} , s_2 = text{111111} and s_3 = text{010000} . In the third test case we can make both strings palindromic. For example, s_1 = text{11011} and s_2 = text{100001} . In the last test case s_2 is palindrome and you can make s_1 palindrome, for example, by swapping s_1[2] and s_1[3] . "...

Tutorials

70860

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64701699 RedLeaf B Nov. 11, 2019, 3:02 p.m. OK Clang++17 Diagnostics TESTS 17 46 1024000 1400
63413631 LeamyCodes B Oct. 26, 2019, 2:43 a.m. OK Clang++17 Diagnostics TESTS 17 62 3174400 1400
63326648 melery_kin B Oct. 24, 2019, 4:13 p.m. OK FPC TESTS 17 31 409600 1400
63326661 Just_Matvey B Oct. 24, 2019, 4:13 p.m. OK FPC TESTS 17 46 204800 1400
63366182 navyasree.8.2001 B Oct. 25, 2019, 7:34 a.m. OK GNU C11 TESTS 17 15 0 1400
63350126 umesh_chandra B Oct. 24, 2019, 9:17 p.m. OK GNU C11 TESTS 17 15 0 1400
63325520 OrangeIn-Month B Oct. 24, 2019, 4:08 p.m. OK GNU C11 TESTS 17 30 0 1400
64741889 Euphonium B Nov. 12, 2019, 12:15 p.m. OK GNU C11 TESTS 17 30 0 1400
63853488 jschr B Oct. 30, 2019, 4:31 p.m. OK GNU C11 TESTS 17 30 0 1400
63328387 Triumph_2000 B Oct. 24, 2019, 4:20 p.m. OK GNU C11 TESTS 17 30 0 1400
67078891 haitrinh B Dec. 17, 2019, 3:11 p.m. OK GNU C11 TESTS 17 30 0 1400
64668836 Euphonium B Nov. 11, 2019, 4:30 a.m. OK GNU C11 TESTS 17 31 0 1400
64439006 yellowh B Nov. 7, 2019, 3:09 a.m. OK GNU C11 TESTS 17 31 0 1400
65744992 Sagar3745 B Nov. 26, 2019, 11:53 a.m. OK GNU C11 TESTS 17 31 0 1400
63430356 Hust_Konnyaku B Oct. 26, 2019, 8:57 a.m. OK GNU C++11 TESTS 17 15 0 1400
67699670 vioalbert B Dec. 27, 2019, 2:04 p.m. OK GNU C++11 TESTS 17 15 0 1400
67315147 vjudge3 B Dec. 21, 2019, 5:36 a.m. OK GNU C++11 TESTS 17 15 0 1400
65312087 vjudge1 B Nov. 18, 2019, 3:43 p.m. OK GNU C++11 TESTS 17 15 0 1400
63695228 jangjie B Oct. 29, 2019, 5:08 a.m. OK GNU C++11 TESTS 17 15 0 1400
63356763 handsome_zlk B Oct. 25, 2019, 3:10 a.m. OK GNU C++11 TESTS 17 15 0 1400
63324012 easyeasyeasy B Oct. 24, 2019, 4:02 p.m. OK GNU C++11 TESTS 17 15 0 1400
63322205 swqeaaa B Oct. 24, 2019, 3:56 p.m. OK GNU C++11 TESTS 17 15 0 1400
66258581 Sodaine B Dec. 4, 2019, 7:20 a.m. OK GNU C++11 TESTS 17 15 1024000 1400
69811454 Ans_31 B Jan. 30, 2020, 4:32 a.m. OK GNU C++11 TESTS 17 30 0 1400
65263305 wvuvw B Nov. 17, 2019, 3:48 p.m. OK GNU C++14 TESTS 17 15 0 1400
65022477 balanda_135iq B Nov. 15, 2019, 5:57 a.m. OK GNU C++14 TESTS 17 15 0 1400
65265717 rainbowzzh B Nov. 17, 2019, 4:57 p.m. OK GNU C++14 TESTS 17 15 0 1400
65393122 m3h3d1 B Nov. 19, 2019, 6:04 p.m. OK GNU C++14 TESTS 17 15 0 1400
65553601 pushkar12 B Nov. 22, 2019, 8:06 p.m. OK GNU C++14 TESTS 17 15 0 1400
65797437 oolimry B Nov. 27, 2019, 5:40 a.m. OK GNU C++14 TESTS 17 15 0 1400
66046817 Love_dkq_Forever B Nov. 30, 2019, 3:26 p.m. OK GNU C++14 TESTS 17 15 0 1400
66987751 tejas_919 B Dec. 15, 2019, 6:52 p.m. OK GNU C++14 TESTS 17 15 0 1400
69426709 thenainesh B Jan. 23, 2020, 4:02 p.m. OK GNU C++14 TESTS 17 15 0 1400
69667473 bdyutish B Jan. 28, 2020, 11:52 a.m. OK GNU C++14 TESTS 17 15 0 1400
66233680 mapoona B Dec. 3, 2019, 3:21 p.m. OK GNU C++17 TESTS 17 15 0 1400
69595494 sea_26 B Jan. 27, 2020, 4:23 a.m. OK GNU C++17 TESTS 17 15 0 1400
66474437 paulica B Dec. 7, 2019, 7:56 p.m. OK GNU C++17 TESTS 17 15 0 1400
69508948 R.aZ.e B Jan. 25, 2020, 9:47 a.m. OK GNU C++17 TESTS 17 15 0 1400
68648642 Anon_mouS B Jan. 12, 2020, 9:58 a.m. OK GNU C++17 TESTS 17 15 0 1400
67688135 mp9107 B Dec. 27, 2019, 9:51 a.m. OK GNU C++17 TESTS 17 15 0 1400
67626204 me_loves_direction B Dec. 25, 2019, 10:02 p.m. OK GNU C++17 TESTS 17 15 0 1400
67608673 wjli B Dec. 25, 2019, 2:31 p.m. OK GNU C++17 TESTS 17 15 0 1400
66824400 bhavik_c B Dec. 14, 2019, 8:27 a.m. OK GNU C++17 TESTS 17 15 0 1400
66542226 Aman_Panwar B Dec. 9, 2019, 11:57 a.m. OK GNU C++17 TESTS 17 15 0 1400
64782449 qianhailong B Nov. 13, 2019, 7:47 a.m. OK Go TESTS 17 31 0 1400
63337137 maguroguma B Oct. 24, 2019, 5:02 p.m. OK Go TESTS 17 31 0 1400
63329621 pohzipohzi B Oct. 24, 2019, 4:26 p.m. OK Go TESTS 17 46 0 1400
63993570 thetest B Nov. 1, 2019, 1:53 p.m. OK Haskell TESTS 17 30 102400 1400
63994109 thetest B Nov. 1, 2019, 2:03 p.m. OK Haskell TESTS 17 46 102400 1400
64329141 Anonymous B Nov. 5, 2019, 6:32 p.m. OK Java 11 TESTS 17 171 0 1400
63871229 ankyy_0103 B Oct. 30, 2019, 5:34 p.m. OK Java 11 TESTS 17 171 0 1400
63611270 serafimkoo B Oct. 27, 2019, 5:20 p.m. OK Java 11 TESTS 17 171 0 1400
68049629 MaxHeap B Jan. 1, 2020, 6:09 p.m. OK Java 11 TESTS 17 186 0 1400
67112444 wrong_verdict B Dec. 17, 2019, 4:54 p.m. OK Java 11 TESTS 17 186 0 1400
63724828 TheSawan B Oct. 29, 2019, 12:24 p.m. OK Java 11 TESTS 17 186 0 1400
64061711 mansi_sampat B Nov. 2, 2019, 4:10 a.m. OK Java 11 TESTS 17 187 0 1400
63365769 cribabby B Oct. 25, 2019, 7:25 a.m. OK Java 11 TESTS 17 187 0 1400
63326791 kanupriyasingh B Oct. 24, 2019, 4:14 p.m. OK Java 11 TESTS 17 187 0 1400
69726568 alankritanand001 B Jan. 29, 2020, 12:27 p.m. OK Java 11 TESTS 17 202 0 1400
68082360 arsh1598 B Jan. 2, 2020, 2:52 p.m. OK Java 8 TESTS 17 108 0 1400
63960461 napoleon91 B Nov. 1, 2019, 4:52 a.m. OK Java 8 TESTS 17 108 0 1400
63697141 JoelWee B Oct. 29, 2019, 5:55 a.m. OK Java 8 TESTS 17 108 0 1400
63338651 pikapika00 B Oct. 24, 2019, 5:10 p.m. OK Java 8 TESTS 17 108 0 1400
67254961 af_saif B Dec. 19, 2019, 9:19 p.m. OK Java 8 TESTS 17 109 0 1400
64370669 Apurva021 B Nov. 6, 2019, 2:12 p.m. OK Java 8 TESTS 17 109 0 1400
64197436 navneet3dv B Nov. 4, 2019, 10:16 a.m. OK Java 8 TESTS 17 109 0 1400
64070294 james222424 B Nov. 2, 2019, 7:10 a.m. OK Java 8 TESTS 17 109 0 1400
63940561 shivang_1234 B Oct. 31, 2019, 5:20 p.m. OK Java 8 TESTS 17 109 0 1400
63689330 Amerisma B Oct. 29, 2019, 1:16 a.m. OK Java 8 TESTS 17 109 0 1400
63383697 Android31 B Oct. 25, 2019, 1:12 p.m. OK JavaScript TESTS 17 61 2252800 1400
63356002 Spheniscine B Oct. 25, 2019, 2:40 a.m. OK Kotlin TESTS 17 109 0 1400
63355971 Spheniscine B Oct. 25, 2019, 2:38 a.m. OK Kotlin TESTS 17 124 0 1400
64664495 yuranich B Nov. 11, 2019, 12:32 a.m. OK Kotlin TESTS 17 140 0 1400
63690465 mendel_vv B Oct. 29, 2019, 2:13 a.m. OK Kotlin TESTS 17 140 0 1400
63330604 Akaiyo B Oct. 24, 2019, 4:31 p.m. OK Kotlin TESTS 17 155 0 1400
63327203 nopopon B Oct. 24, 2019, 4:15 p.m. OK Kotlin TESTS 17 155 0 1400
63408185 mouez B Oct. 25, 2019, 9:41 p.m. OK Mono C# TESTS 17 46 307200 1400
63334173 faxse B Oct. 24, 2019, 4:48 p.m. OK Mono C# TESTS 17 46 409600 1400
69401054 ynsh B Jan. 23, 2020, 8:50 a.m. OK Mono C# TESTS 17 61 307200 1400
69450982 mban259 B Jan. 24, 2020, 6:12 a.m. OK Mono C# TESTS 17 61 921600 1400
63928188 hloya B Oct. 31, 2019, 1:35 p.m. OK Mono C# TESTS 17 62 512000 1400
63324504 Tan42 B Oct. 24, 2019, 4:04 p.m. OK Mono C# TESTS 17 62 614400 1400
69843423 ngtkana B Jan. 30, 2020, 1:45 p.m. OK Mono C# TESTS 17 62 3993600 1400
64331604 m1_k3 B Nov. 5, 2019, 7:36 p.m. OK Mono C# TESTS 17 62 4505600 1400
63337198 plasma-effect B Oct. 24, 2019, 5:02 p.m. OK Mono C# TESTS 17 77 5734400 1400
63548613 vjudge4 B Oct. 27, 2019, 11:08 a.m. OK MS C++ TESTS 17 15 0 1400
68936120 vjudge4 B Jan. 16, 2020, 12:54 p.m. OK MS C++ TESTS 17 30 0 1400
68841164 vjudge3 B Jan. 15, 2020, 5:50 a.m. OK MS C++ TESTS 17 30 0 1400
63529862 vjudge2 B Oct. 27, 2019, 6:24 a.m. OK MS C++ TESTS 17 30 0 1400
63937991 vjudge3 B Oct. 31, 2019, 4:31 p.m. OK MS C++ TESTS 17 30 0 1400
63787476 vjudge5 B Oct. 30, 2019, 12:43 p.m. OK MS C++ TESTS 17 30 0 1400
65622079 vjudge2 B Nov. 24, 2019, 6:34 a.m. OK MS C++ TESTS 17 30 819200 1400
68844003 vjudge1 B Jan. 15, 2020, 6:47 a.m. OK MS C++ TESTS 17 31 0 1400
68844529 vjudge3 B Jan. 15, 2020, 6:57 a.m. OK MS C++ TESTS 17 31 0 1400
68845557 vjudge1 B Jan. 15, 2020, 7:17 a.m. OK MS C++ TESTS 17 31 0 1400
63357883 taekop B Oct. 25, 2019, 3:49 a.m. OK MS C++ 2017 TESTS 17 30 0 1400
63530240 vjudge5 B Oct. 27, 2019, 6:30 a.m. OK MS C++ 2017 TESTS 17 30 0 1400
64793344 Flubbar B Nov. 13, 2019, 12:01 p.m. OK MS C++ 2017 TESTS 17 30 0 1400
63709168 dbelov B Oct. 29, 2019, 9:25 a.m. OK MS C++ 2017 TESTS 17 30 0 1400
64574013 SonZer0 B Nov. 9, 2019, 10:11 a.m. OK MS C++ 2017 TESTS 17 30 307200 1400
65301872 vjudge5 B Nov. 18, 2019, 1:32 p.m. OK MS C++ 2017 TESTS 17 30 307200 1400
64362253 Y_is_sunshine B Nov. 6, 2019, 12:02 p.m. OK MS C++ 2017 TESTS 17 31 0 1400
65924596 chetanag35 B Nov. 28, 2019, 5:42 p.m. OK MS C++ 2017 TESTS 17 31 0 1400
64429750 alyona_k B Nov. 6, 2019, 8:42 p.m. OK MS C++ 2017 TESTS 17 31 0 1400
64199997 Mad112233 B Nov. 4, 2019, 11:10 a.m. OK MS C++ 2017 TESTS 17 31 0 1400
63427999 bl4ckc4t B Oct. 26, 2019, 8:22 a.m. OK PyPy 2 TESTS 17 139 1536000 1400
63327173 Mukundan314 B Oct. 24, 2019, 4:15 p.m. OK PyPy 2 TESTS 17 140 1638400 1400
64176562 pie. B Nov. 3, 2019, 9:15 p.m. OK PyPy 2 TESTS 17 155 1024000 1400
65906085 yumtam B Nov. 28, 2019, 10:58 a.m. OK PyPy 2 TESTS 17 156 921600 1400
63862974 SoSooding B Oct. 30, 2019, 4:59 p.m. OK PyPy 2 TESTS 17 171 1126400 1400
64587707 a11b11c11 B Nov. 9, 2019, 1:47 p.m. OK PyPy 2 TESTS 17 186 3379200 1400
64120971 akifpatel B Nov. 3, 2019, 1:16 a.m. OK PyPy 2 TESTS 17 186 4403200 1400
68749073 aaa_bbb_ccc B Jan. 14, 2020, 6 a.m. OK PyPy 2 TESTS 17 202 2048000 1400
63434276 iamprayush B Oct. 26, 2019, 10:06 a.m. OK PyPy 2 TESTS 17 202 2969600 1400
63849213 bhishma B Oct. 30, 2019, 3:13 p.m. OK PyPy 2 TESTS 17 234 4710400 1400
63338818 hase_0o0 B Oct. 24, 2019, 5:12 p.m. OK PyPy 3 TESTS 17 140 2355200 1400
68770565 tamato B Jan. 14, 2020, 11:42 a.m. OK PyPy 3 TESTS 17 155 1945600 1400
63329170 ngsm B Oct. 24, 2019, 4:24 p.m. OK PyPy 3 TESTS 17 155 1945600 1400
63488078 _Kee B Oct. 26, 2019, 2:01 p.m. OK PyPy 3 TESTS 17 155 2457600 1400
63352017 vinhntndu B Oct. 24, 2019, 10:43 p.m. OK PyPy 3 TESTS 17 156 3072000 1400
69866983 mitribunskiy B Jan. 30, 2020, 8:56 p.m. OK PyPy 3 TESTS 17 171 2355200 1400
63380836 maramsumanth B Oct. 25, 2019, 12:25 p.m. OK PyPy 3 TESTS 17 186 2355200 1400
63325358 syphon B Oct. 24, 2019, 4:08 p.m. OK PyPy 3 TESTS 17 186 2355200 1400
65950117 cftt B Nov. 29, 2019, 10:28 a.m. OK PyPy 3 TESTS 17 186 3481600 1400
67103573 tushartyagi8750 B Dec. 17, 2019, 4:12 p.m. OK PyPy 3 TESTS 17 186 3584000 1400
63335187 elistark B Oct. 24, 2019, 4:53 p.m. OK Python 2 TESTS 17 187 0 1400
63322229 uddeshya.singh B Oct. 24, 2019, 3:56 p.m. OK Python 2 TESTS 17 187 0 1400
63371066 andinet B Oct. 25, 2019, 9:23 a.m. OK Python 3 TESTS 17 108 307200 1400
63346190 eugalt B Oct. 24, 2019, 7:22 p.m. OK Python 3 TESTS 17 108 307200 1400
68462510 darkshadow07 B Jan. 9, 2020, 6:38 p.m. OK Python 3 TESTS 17 109 0 1400
64683631 UR5ANO B Nov. 11, 2019, 11:01 a.m. OK Python 3 TESTS 17 109 0 1400
64354184 situ B Nov. 6, 2019, 9:33 a.m. OK Python 3 TESTS 17 109 0 1400
63916489 IQuant B Oct. 31, 2019, 10:14 a.m. OK Python 3 TESTS 17 109 0 1400
63884267 FlyingBag65 B Oct. 30, 2019, 11:16 p.m. OK Python 3 TESTS 17 109 0 1400
63690393 Salmonize B Oct. 29, 2019, 2:09 a.m. OK Python 3 TESTS 17 109 0 1400
63665106 ACE317 B Oct. 28, 2019, 3:02 p.m. OK Python 3 TESTS 17 109 0 1400
63423472 ZxCv B Oct. 26, 2019, 7:08 a.m. OK Python 3 TESTS 17 109 0 1400
63552563 yizheng B Oct. 27, 2019, 12:02 p.m. OK Rust TESTS 17 31 0 1400
65425287 yuya178 B Nov. 20, 2019, 10:28 a.m. OK Rust TESTS 17 46 204800 1400
63978413 sophiya.ruban B Nov. 1, 2019, 9:20 a.m. OK Scala TESTS 17 468 0 1400

remove filters

Back to search problems